LaTeX Installation on Debian
It is relatively easy to install
LaTeX on Debian, only few post-setup
configurations are needed.
# apt-get install tetex-base tetex-bin tetex-extra
# apt-get install texmaker
# apt-get install lacheck auctex
All following procedures are for Chinese-font support only
First install
necessary packages.
# apt-get install dvipdfm-cjk-cmap auctex context-el
# apt-get install cjk-latex dvipdfm-cjk dvipdfmx
# apt-get install gbkfonts texmf-zh tetex-base tetex-bin tetex-extra
Install Chinese fonts for LaTeX.
# install-gbkfonts /usr/share/fonts/truetype/simsun.ttf gbksong
# install-gbkfonts /usr/share/fonts/truetype/simli.ttf gbkli
# install-gbkfonts /usr/share/fonts/truetype/simyou.ttf gbkyou
# install-gbkfonts /path/to/winfonts/simhei.ttf gbkhei
These commands will install various Chinese fonts. Note that simsun.ttf cannot be replaced by simsun.ttc! After installation, these fonts could be found in the directory /usr/share/texmf-zh/. These fonts can be removed by commands like
# remove-gbkfonts gbksong
For advanced Chinese support of pdf files LaTeX generates, we could use dvipdfmx to compile dvi files.
# apt-get install cmap-adobe-gb1 cmap-adobe-cns1
# apt-get install gs-cjk-resource
Modify /etc/texmf/texmf.d/50dvipdfmx.cnf, comment the second line. Run update-texmf as root. Now dvipdfmx is ready. See /usr/share/doc/dvipdfmx/README.Debian for reference.
Install beamer, a LaTeX extension for slides.
- Download beamer, pgf, xcolor from CTAN and extract them.
- Copy extracted directories of beamer, pgf and xcolor to texmf/tex/latex/
- Run "texhash" and "mktexlsr", the installation is completed.