Installation of new LaTeX classes

Let us assume that you are installing the dcsarticle class.

Unix systems

  1. 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).

  2. Set an environment variable:

    # export TEXINPUTS=.:$HOME/share/latex//
    

    The double slash at the end means that all subdirectories will be also scanned.

  3. Test the configuration:

    # kpsewhich dcsarticle.cls
    /home/voytek/share/LaTeX/dcsarticle.cls
    

Windows systems

We suggest to use MiKTeX distribution of TeX system.

  1. 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).

  2. Run MiKTeX –> Maintenance –> Settings program and add the directory to the list of MiKTeX root directories:

    ../../_images/miktex-conf.png
  3. In the General tab click Refresh FNDB and press OK.

  4. 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.