location: Diff for "TeX"

Institute of Mathematics - PublicMathWiki:

Differences between revisions 22 and 25 (spanning 3 versions)
Revision 22 as of 2009-08-21 15:54:59
Size: 3363
Editor: dcaspar
Comment:
Revision 25 as of 2010-06-11 11:46:42
Size: 4656
Editor: raos
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
== General Documentation ==
A short introduction to LaTeX (in German): http://developer.kde.org/~kdvi/DVI/l2kurz.dvi
= TeX/LaTeX Documentation =
 * A short introduction to LaTeX (in German): http://developer.kde.org/~kdvi/DVI/l2kurz.dvi
Line 11: Line 11:
== UZH: mathletter / frutiger fonts ==
=== MikTeX 2.7 (Windows) ===
= 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.

= UZH: mathletter / frutiger fonts =
== MikTeX 2.7 (Windows) ==
Line 34: Line 56:
=== TeXLive (Ubuntu) === == TeXLive (Ubuntu) ==
Line 51: Line 73:
== Frequently used programs ==
 * [[public/TeX/kdvi|KDVI]]
= Math UZH Logo in Beamer Class =
Line 54: Line 75:
== Tips and tricks ==
=== Converting .eps-files (automatically) to .pdf-files ===
 * [[TeX/epstopdf|epstopdf]]
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.
Line 58: Line 77:
=== 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]]
Add the following lines right below the `\documentclass` line
Line 64: Line 80:
[user@host] pdflatex omega.tex \pgfdeclareimage[height=0.5cm]{logo}{imath-tex-logo}
\logo{\pgfuseimage{logo}}
Line 66: Line 83:
View the PDF File in Acrobat Reader.
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}
}}}

TeX



TeX/LaTeX Documentation

Frequently used questions and programs

Count words in a latex documents

Kile: File > Statistics

kdvi

Tips and tricks

Converting .eps-files (automatically) to .pdf-files

Include a movie in a PDF Document

Example: omega.tex omega.mpg omega.pdf

[user@host] pdflatex omega.tex

View the PDF File 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

      2. 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
      3. 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

      2. 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 imath-tex-logo.png and 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}

PublicMathWiki: TeX (last edited 2014-05-07 13:53:55 by crose)