Sep 12, 2010

LaTeX notes.

* Useful color themes for  beamer (\usecolortheme{...}):
albatross, beetle, crane, dolphin, dove, fly, lily, orchid, rose, seagull, seahorse, whale.

* Problem with the "babel" package in TeXLive.
\usepackage[spanish]{babel}
Option clash for package babel. \usepackage
The package "hyphen-Spanish" must be installed, to do this type in terminal:
felipe@dagobah:~$ sudo apt-get install texlive-lang-spanish

* Changing the line spacing:
\baselinestretch{2.0}
The argument is the scale factor. In the above example, a double-spaced was established.

* Installing the "mnsymbol" package.
Download mnsymbol.zip (http://www.ctan.org/tex-archive/fonts/mnsymbol/).
felipe@dagobah:~/Downloads$ unzip mnsymbol.zip
felipe@dagobah:~/Downloads$ cd mnsymbol/tex/
felipe@dagobah:~/Downloads/mnsymbol/tex$ latex MnSymbol.ins
felipe@dagobah:~/Downloads/mnsymbol/tex$ sudo mkdir -p /usr/share/texmf-texlive/tex/latex/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol/tex$ sudo mkdir -p /usr/share/texmf-texlive/fonts/source/public/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol/tex$ sudo mkdir -p /usr/share/texmf-texlive/doc/latex/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol/tex$ sudo cp MnSymbol.sty /usr/share/texmf-texlive/tex/latex/MnSymbol/MnSymbol.sty
felipe@dagobah:~/Downloads/mnsymbol/tex$ cd ..
felipe@dagobah:~/Downloads/mnsymbol$ sudo cp source/* /usr/share/texmf-texlive/fonts/source/public/MnSymbol/
felipe@dagobah:~/Downloads/mnsymbol$ sudo cp MnSymbol.pdf README /usr/share/texmf-texlive/doc/latex/MnSymbol/
felipe@dagobah:~/Downloads/mnsymbol$ sudo mkdir -p /usr/share/texmf-texlive/fonts/map/dvips/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo mkdir -p /usr/share/texmf-texlive/fonts/enc/dvips/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo mkdir -p /usr/share/texmf-texlive/fonts/type1/public/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo mkdir -p /usr/share/texmf-texlive/fonts/tfm/public/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo cp enc/MnSymbol.map /usr/share/texmf-texlive/fonts/map/dvips/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo cp enc/*.enc /usr/share/texmf-texlive/fonts/enc/dvips/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo cp pfb/*.pfb /usr/share/texmf-texlive/fonts/type1/public/MnSymbol
felipe@dagobah:~/Downloads/mnsymbol$ sudo cp tfm/* /usr/share/texmf-texlive/fonts/tfm/public/MnSymbol

Regenerate the indexes and enable MnSymbol:
felipe@dagobah:~$ sudo mktexlsr
felipe@dagobah:~$ sudo updmap-sys --enable MixedMap MnSymbol.map

Now, the following code can be compiled:
\documentclass{report}
\usepackage{MnSymbol}
\begin{document}
$\int_V \sigma \delta\epsilon dV$
\end{document}


* Mixing one-column and two-column for figures and tables.
\begin{table*} ... \end{table*}
\begin{figure*} ... \end{figure*}


* Inverse and forward search in Kile editor, follow the following steps in order to enable this option for DVI docs:
"Settings -> Configure Kile".
Click "Tools -> Build -> LaTeX".
Select the "Modern" configuration.
Clear and set the options to: -interaction=nonstopmode -src %source.
Click "ForwardDVI" in the list, and select the "Embedded Viewer" configuration.
Click OK.
Click "LaTeX" in the build toolbar menu, and click "ForwardDVI" in the view toolbar menu.
Open "Settings -> Configure Kile".
Click "DVI Specials".
Select Kile as the editor.
Click OK.

No comments:

Post a Comment