Installation of new LaTeX classes
Let us assume that you are installing the dcsarticle class.
Unix systems
Create a directory for the class files and copy all
*.cls
,*.sty
and other accompanying files to it (let it be/home/voytek/share/latex
).Set an environment variable:
# export TEXINPUTS=.:$HOME/share/latex//
The double slash at the end means that all subdirectories will be also scanned.
Test the configuration:
# kpsewhich dcsarticle.cls /home/voytek/share/LaTeX/dcsarticle.cls
Windows systems
We suggest to use MiKTeX distribution of TeX system.
Create your own local TeX Directory Structure, e.q.:
C:\Home\Voytek\texmf │ ├── bibtex │ ├── bib │ └── bst └── tex └── latex └── PACKAGE
Files for different classes can be located in subdirectories of
latex
directory (PACKAGE
).Run MiKTeX –> Maintenance –> Settings program and add the directory to the list of MiKTeX root directories:
In the General tab click Refresh FNDB and press OK.
Test the configuration:
Start
cmd.exe
and run:C:\> "C:\Program Files\MiKTeX 2.9\miktex\bin\kpsewhich.exe" dcsarticle.cls C:/Home/Voytek/texmf/tex/latex/dcsarticle.cls
Create an example LaTeX document using the class and compile it.