Latex Installation How-to
Unix
Tex
Latex is installed by default under the vast majority of Linux distribution. Anyway you can install the package downloading it on the Latex project page or using apt-get command in Debian distributions
texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended lmodern latex-beamer
To be able to write in catalan or spanish languages using accents and all this stuff you will need to install through synaptic: latex-ucs (deprecated, now included by default). As well as include in your documents:
IMPORTANT: Remember installing hyphenation on your language ((1) texlive-lang-spanish, (2) babel is already in Ubuntu defaults)
Enum examples style: you may need to install lingmacros.sty (see how to intall new style files)
Beamer
sudo apt-get install latex-beamer
Latex editor
There are several Latex editors.
Gnome: Gedit Latex Plugin (lite and fast option, requires rubber, python, python-gtk… view online FAQ or INSTALL file).
Not installation needed, just download and extract in $HOME/.gnome2/gedit/plugins (also available in Ubuntu repositories , apt-get, but doesn’t work well DO IT MANUALLY).
File tools.xml contains toos. Here is mine:
<tool description=”Cognitionis PDF Special” extensions=”.tex” id=”7″ label=”PDF Special”>
<job mustSucceed=”true” postProcessor=”GenericPostProcessor”>
rm -f $directory/*~ $directory/*.backup $directory/*.log $directory/*.blg $directory/*.bbl $directory/*.aux $directory/*.dvi $directory/*.toc $directory/*.out $directory/*.nav $directory/*.snm
</job>
<job mustSucceed=”true” postProcessor=”LaTeXPostProcessor”>
latex -interaction batchmode -src “$filename”
</job>
<job mustSucceed=”false” postProcessor=”GenericPostProcessor”>
bibtex $shortname.aux
</job>
<job mustSucceed=”true” postProcessor=”LaTeXPostProcessor”>
latex -interaction batchmode -src “$filename”
</job>
<job mustSucceed=”true” postProcessor=”LaTeXPostProcessor”>
latex -interaction batchmode -src “$filename”
</job>
<job mustSucceed=”true” postProcessor=”GenericPostProcessor”>
dvipdf $shortname.dvi
</job>
<job mustSucceed=”true” postProcessor=”GenericPostProcessor”>
rm -f $directory/*~ $directory/*.backup $directory/*.log $directory/*.blg $directory/*.bbl $directory/*.aux $directory/*.dvi $directory/*.toc $directory/*.out $directory/*.nav $directory/*.snm
</job>
</tool>
BUG TO SOLVE IN LAST VERSION 0.2rc1:
(DEPRECATED) File settings.xml contains any profile information. Here is mine:
<profile accel="" icon="pixmaps/compile-pdf.png" name="PDF Special" viewer="gnome-open "%e.pdf""> <job command=" rm -f *~ *.backup *.log *.blg *.bbl *.aux *.dvi *.toc *.out *.nav *.snm" processor="default" stopper="True"/> <job command="latex -interaction batchmode -src "%f"" processor="latex" stopper="True"/> <job command="bibtex "%e.aux"" processor="default" stopper="False"/> <job command="latex -interaction batchmode -src "%f"" processor="latex" stopper="True"/> <job command="latex -interaction batchmode -src "%f"" processor="default" stopper="True"/> <job command="dvipdf "%e.dvi"" processor="default" stopper="True"/> <job command=" rm -f *~ *.backup *.log *.blg *.bbl *.aux *.dvi *.toc *.out *.nav *.snm" processor="default" stopper="True"/> </profile>
Multi-platform: TexMaker (good option)
One of the best for KDE is Kile (also available using apt-get).
TIP1: If you want to write accents or lenguage specific chars in Kile you have to install: sudo apt-get install kile-i18n-es and sudo apt-get install kile-i18n-ca. If don’t work go System->Administration->Language support and enable complex char support. reboot. If not try: vim /etc/default/locale and remove “valencia” and do sudo dpkg-reconfigure locales.
TIP2:If you want to use spell correctors you can install ispell using apt-get (ispell ispanish, ispell icatalan…)
Windows
Tex
Latex is not installed by default. The most common Tex implementation for Windows is Miktex.
Latex editor
The most common Latex editor for Windows is TeXnic-Center.