= TeX = ---- . <> ---- <> = TeX/LaTeX Documentation = * A short introduction to LaTeX (in German): http://developer.kde.org/~kdvi/DVI/l2kurz.dvi = Frequently used questions and programs = == Count words in a latex documents == {{{ Kile: File > Statistics }}} == kdvi == * [[public/TeX/kdvi|KDVI]] = Tips and tricks = == Converting .eps-files (automatically) to .pdf-files == * [[TeX/epstopdf|epstopdf]] == Include a movie in a PDF Document == * [[http://www.uoregon.edu/~noeckel/PDFmovie.html|movie15]] Example: [[attachment:omega.tex]] [[attachment:omega.mpg]] [[attachment:omega.pdf]] {{{ [user@host] pdflatex omega.tex }}} View the PDF File in Acrobat Reader. It probably won't work on the Sun Ray Terminals. === Example === * movie.tex {{{ \documentclass[12pt,landscape]{article} \usepackage{geometry} \geometry{verbose,letterpaper} \usepackage{movie15} \usepackage{hyperref} \begin{document} Whispering-gallery mode in a quarter circle: \begin{figure}[ht] \includemovie[ poster, text={\small(2-twist-spun.mp4)} ]{6cm}{4.8cm}{2-twist-spun.mp4} \end{figure} \end{document} }}} * To include a Youtube Flash movie, convert it to mp4: * Video example: http://www.youtube.com/watch?v=6lIM9p6XOKo * Convert it online: http://keepvid.com * Download the MP4 version: http://keepvid.com/?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6lIM9p6XOKo * compile: {{{ pdflatex movie.tex }}} * View in acrobat reader = UZH: mathletter / frutiger fonts = == MikTeX 2.7 (Windows) == * Copy `mathletter.cls`, `unisiegel.eps`, `unisiegel.pdf` (see `/scratch/software/tex/unibrief-0.3/`) into a subdirectory of your MikTeX-Installation. For example, copy the files to `C:\Program Files\MiKTeX 2.7\tex\uzh` if you installed MikTeX into the folder `C:\Program Files\MiKTeX 2.7\`. * Install the frutiger fonts: * Copy the content of `/scratch/software/tex/ifi/frutiger.tar.gz` to your MikTeX installation directory as follows: || files/folders to copy from 'frutiger.tar.gz' || directory where to copy the files to || in our example, you would copy the files/folders to || || {{{texmf\dvips\base\frutiger.map}}} || {{{fonts\map\dvips}}} || {{{C:\Program Files\MiKTeX 2.7\fonts\map\dvips}}} || || {{{texmf\fonts}}} || {{{fonts}}} || {{{C:\Program Files\MiKTeX 2.7\fonts}}} || || {{{texmf\tex\latex\base}}} || {{{tex\latex}}} || {{{C:\Program Files\MiKTeX 2.7\tex\latex}}} || * Open a shell and execute the following commands in the given order: 1. {{{mktexlsr}}} 1. {{{initexmf --edit-config-file updmap}}} . This opens up a file called {{{updmap.cfg}}}. Add the following line to the file, save and close it. {{{ Map frutiger.map }}} 1. {{{updmap}}} * Done! You can test the mathletter document class with the following example document: http://www.math.uzh.ch/fileadmin/math/divers/mathletter.tex. == TeXLive (Ubuntu) == * Copy `mathletter.cls`, `unisiegel.eps`, `unisiegel.pdf` (see `/scratch/software/tex/unibrief-0.3/`) into a subdirectory of your TeXLive-Installation. For example, copy the files to `/usr/share/texmf-local/tex/latex/mathletter` if you installed TeXLive into the folder `/usr/share/texmf-local`. * Install the frutiger fonts: * Copy the content of `/scratch/software/tex/ifi/frutiger.tar.gz` to your TeXLive installation directory as follows: || files/folders to copy from 'frutiger.tar.gz' || directory where to copy the files to || in our example, you would copy the files/folders to || || {{{texmf\dvips\base\frutiger.map}}} || {{{fonts/map/dvips}}} || {{{/usr/share/texmf-local/fonts/map/dvips}}} || || {{{texmf\fonts}}} || {{{fonts}}} || {{{/usr/share/texmf-local/fonts}}} || || {{{texmf\tex\latex\base}}} || {{{tex/latex}}} || {{{/usr/share/texmf-local/tex/latex}}} || * Open a shell and execute the following commands in the given order: 1. {{{sudo mktexlsr}}} 1. {{{sudo updmap-sys --enable Map frutiger.map}}} * Done! You can test the mathletter document class with the following example document: http://www.math.uzh.ch/fileadmin/math/divers/mathletter.tex. = Math UZH Logo in Beamer Class = In order to include the Math UZH logo in your presentation, download the files [[attachment:imath-tex-logo.png]] and [[attachment:imath-tex-logo.eps]] to the directory where your LaTeX presentation source file resides. Add the following lines right below the `\documentclass` line {{{ \pgfdeclareimage[height=0.5cm]{logo}{imath-tex-logo} \logo{\pgfuseimage{logo}} }}} After processing the file with LaTeX, the DVI or PDF will show the logo on every frame. == Example == {{{ \documentclass{beamer} \pgfdeclareimage[height=0.5cm]{logo}{imath-tex-logo} \logo{\pgfuseimage{logo}} \begin{document} \begin{frame}{TITLE 1} \begin{itemize} \item Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar. \item Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar. \end{itemize} \end{frame} \begin{frame}{TITLE 2} \begin{itemize} \item Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar. \item Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar. \end{itemize} \end{frame} \end{document} }}} = LaTeX Templates Conforming the Corporate Design = You will find ready-to-use LaTeX templates in `/scratch/software/tex/templates` conforming the UZH Corporate Design. The folder `Korrespondenz` contains templates for letters, the folder `Praesentation` templates for presentation/beamer material. == How to use the Templates == Copy the desired template to your home directory, or any other suitable location (Do not edit the files in /scratch/software/tex/templates) and edit it with your favorite LaTeX editor. If you use the letter templates, please replace the text enclosed by angle brackets (`<>`) with the appropriate information.