Skip to main content

Posts

Showing posts with the label latex

Installing latex-beamer on local directory

First, let the latex aware of the new local directory: Check out the current configuration file by:kpsewhich texmf.cnf Copy the texmf.cnf into /home/userName/texmf Modify the texmf.cnf by add the new directory into the variable TEXMF into texmf.cnf set up the environment variable TEXMFCNF=/home/userName/texmf either in bashrc or cshrc Notice that kpsewhich texmf.cnf will return the new local directory after that By doing so, from now on, latex is going to check the local directory for any style file. Now, assume the local installation directory is going to be /home/userName/texmf/ Download latex-beamer-versionNumber.tar.gz Create directories /home/userName/texmf/tex/latex/ ln -s /path/to/latex-beamer-versionNumber.tar.gz /home/userName/texmf/tex/latex/ Extract the latex beamer over ther, i.e. tar -xzvf latex-beamer-versionNumber.tar.gz sudo update-texmf sudo texhash

Open pdf in pagewidth mode

I like to open a pdf file in fit width mode and without the taskbar, etc. One may use the following latex cod \usepackage{hyperref} % link from toc \hypersetup{ pdfstartview=FitH, % Fit, FitH, FitV, FitR, FitB, FitBH, FitBV pdfpagemode=None, % None FullScreen UseThumbs UseOutlines colorlinks=true, % false: boxed links; true: colored links linkcolor=blue, % color of internal links } See Also: http://www.andy-roberts.net/misc/latex/pdftutorial.html

LaTeX command for writting a matrix

One can use either array environment or matrix environment provided by amsmath package for writting a matrix in LaTeX. The main difference is that the array environment can hold as many columns as you want, but matrix environment can hold at most 10 columns. Depending on what kind of delimiters you want, the amsmath package provides 5 matrix environments, i.e. for pmatrix (parentheses), bmatrix (square brackets), Bmatrix (curly braces), vmatrix (vertical brackets), and Vmatrix (double vertical braces).

Installing and using Emacs, AUCTeX, RefTeX, preview-latex

Typing Latex in Emacs is easier with the help of AUCTeX, RefTeX and preview-latex Installation of AUCTex, RefTex and preview-latex Using Most commonly used command: C-c ( ; it is used to label an object. C-c ) ; it is used to reference an object. C-c [ RET keyword; it is used to find the reference \cite C-c = to explore table of content C-c C-p C-d; it is used to turn on preview-latex C-c C-p C-c C-d; it is used to turn off preview-latex