Size: 133
Comment:
|
Size: 11182
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= TeX = = Include Movies = * [[http://www.uoregon.edu/~noeckel/PDFmovie.html|movie15]] - available in standard TeX installation. |
= LaTeX = ---- . <<NewPage(subTopicTemplate, Neues Subtopic, @SELF)>> ---- <<TableOfContents>> = TeX/LaTeX Documentation = * A short introduction to LaTeX (in German): http://developer.kde.org/~kdvi/DVI/l2kurz.dvi = UZH Style Templates = If you are working with the I-MATH SunRay Terminals, you can right away use the templates for letters and presentations provided below. == Letter == The official LaTeX templates for correspondence are located at `/scratch/templates/latex/korrespondenz/`. Copy the desired template to your home directory (see below for a preview of each template), or any other suitable location (Do not edit the files in `/scratch/templates/latex/korrespondenz/`) and edit it with your favorite LaTeX editor. Please make sure that the return address (Institute of Mathematics) is mentioned on the envelope! Preview of templates: * UZH Brief deutsch mit Absender ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-de-mit-absender.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-de-mit-absender.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/korrespondenz/uzhbrief-de-mit-absender.tex|tex]]) * UZH Brief deutsch ohne Absender ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-de-ohne-absender.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-de-ohne-absender.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/korrespondenz/uzhbrief-de-ohne-absender.tex|tex]]) * UZH Letter English with Sender ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-en-mit-absender.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-en-mit-absender.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/korrespondenz/uzhbrief-en-mit-absender.tex|tex]]) * UZH Letter English without Sender ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-en-ohne-absender.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzhbrief-en-ohne-absender.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/korrespondenz/uzhbrief-en-ohne-absender.tex|tex]]) Please replace the text enclosed by angle brackets (`<>`) with the appropriate information. == Presentation == The official LaTeX templates for correspondence are located at `/scratch/templates/latex/praesentation/`. Copy the desired template to your home directory (see below for a preview of each template), or any other suitable location (Do not edit the files in `/scratch/templates/latex/praesentation/`) and edit it with your favorite LaTeX editor. * UZH Praesentation deutsch (informell) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-de-informal.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-de-informal.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/praesentation/uzh-praesentation-de-informal.tex|tex]]) * UZH Praesentation deutsch ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-de.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-de.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/praesentation/uzh-praesentation-de.tex|tex]]) * UZH Presentation English (informal) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-en-informal.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-en-informal.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/praesentation/uzh-praesentation-en-informal.tex|tex]]) * UZH Presentation English ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-en.pdf|pdf]]) ([[https://wiki.math.uzh.ch/public/LaTeX?action=AttachFile&do=get&target=uzh-praesentation-en.ps|ps]]) ([[http://www.math.uzh.ch/doc/latex/praesentation/uzh-praesentation-en.tex|tex]]) == Installation of Corporate Design Templates == You have to perform the steps below only when using the LaTeX on your Notebook or Personal Computer. If you are working with the I-MATH SunRay Terminals, see [[#Letter]] and [[#Presentation]] === Windows === This instruction assumes that the latest MikTeX is installed including KOMA-Script, lastpage, mptopdf, and arial package. In order to ensure you're running the latest version or installing missing packages, start the MikTeX Package Administrator found under `Start|All Programs|MikTeX X.Y|Maintenance (Admin)|Package Manager (Admin)` and run the Update Wizard found under `Task|Update Wizard`. Please refer to the MikTeX Documentation for further information on this topic by pointing your browser to [[http://www.miktex.org/docs]]. ==== Letter Templates ==== Download the LaTeX Letter templates from [[http://www.math.uzh.ch/doc/latex/config/nmathletter.zip|math www]] (see Notes: 1). Unzip the package, and copy the entire `nmathletter` directory to `C:\Program Files\MiKTeX X.Y\tex\latex`. Go to `Start|All Programs|MiKTeX X.Y|Maintenance (Admin)|Settings (Admin)` and click in the first tab on `Refresh FNDB`. ==== Beamer Templates ==== Download the LaTeX Beamer templates from [[http://www.math.uzh.ch/doc/latex/config/mathbeamer.zip|math www]] (see Notes: 1). Unzip the package, and copy the entire `mathbeamer` directory to `C:\Program Files\MiKTeX X.Y\tex\latex`. Go to `Start|All Programs|MiKTeX X.Y|Maintenance (Admin)|Settings (Admin)` and click in the first tab on `Refresh FNDB`. === Ubuntu === You need to have installed the following Ubuntu packages: * texlive-fonts-extra In order to install the Arial font type on a command line: `sudo getnonfreefonts-sys arial-urw` ==== Letter Templates ==== Download the LaTeX Letter templates from [[http://www.math.uzh.ch/doc/latex/config/nmathletter.zip|math www]] (see Notes: 1). Unzip the package, and copy the entire `nmathletter` directory `/usr/local/share/texmf/tex/latex`. Download [[http://prdownload.berlios.de/koma-script3/koma-script-20120729.tds.zip]] and save it to `/usr/local/share/texmf/` and unzip the file in that directory. Run `sudo mktexlsr` in order to update the search database of latex. ==== Beamer Templates ==== Download the LaTeX Beamer templates from [[http://www.math.uzh.ch/doc/latex/config/mathbeamer.zip|math www]] (see Notes: 1). Unzip the package, and copy the entire `mathbeamer` directory to `/usr/local/share/texmf/tex/latex`. Run `sudo mktexlsr` in order to update the search database of latex. === MacOS X === You need to have the latest MacTeX installed. MacTeX can be obtained [[http://www.tug.org/mactex/downloading.html|here]]. Further, it is assumed you have installed ''getnonfreefonts'' (download and installation instructions can be found [[http://tug.org/fonts/getnonfreefonts/|here]]). ==== Installing the Arial Font ==== Open a terminal and type `getnonfreefonts-sys arial-urw` (This requires administrator privileges). The Arial font will be downloaded and automagically installed. ==== Letter Templates ==== Download the LaTeX Letter templates from [[http://www.math.uzh.ch/doc/latex/config/nmathletter.zip|math www]]. Unzip the package, and copy the entire `nmathletter` directory `/usr/local/texlive/texmf-local/tex/latex/local`. Run `mktexlsr` as administrator in order to update the search database of latex. ==== Beamer Templates ==== Download the LaTeX Beamer templates from [[http://www.math.uzh.ch/doc/latex/config/mathbeamer.zip|math www]]. Unzip the package, and copy the entire `mathbeamer` directory to `/usr/local/texlive/texmf-local/tex/latex/local`. Run `mktexlsr` as adminstrator in order to update the search database of latex. = UZH Logo = If you want to include the UZH logo in a LaTeX document, download [[http://www.math.uzh.ch/doc/latex/logo/uzhlogo.zip|this zip file]]. Read the `README.pdf` file for instructions. = Frequently used questions and programs = == Count words in a latex documents == {{{ Kile: File > Statistics }}} == kdvi == * [[public/TeX/kdvi|KDVI]] = Tips and tricks = == Looking for symbol == * http://detexify.kirelabs.org/classify.html == 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: [[https://wiki.math.uzh.ch/public/TeX?action=AttachFile&do=get&target=movie.pdf|movie.pdf]] == Converting LaTeX to HTML, XML, OpenOffice, Word == * TeX4HT: http://www.tug.org/applications/tex4ht/mn.html * Sun Ray: call the commandline utilities in a terminal. * All possible filters: `ls -l /usr/share/tex4ht` * Converting a LaTeX Document to MS Word: {{{ # Create an OpenOffice File mk4ht oolatex filename.tex }}} * Open 'filename.odt' in OpenOffice and save it as Microsoft Word/97 file. = Grafic / Drawing = == xfig == * old, powerfull and strange * lmgtfy (Google): http://lmgtfy.com/?q=xfig+latex == inkscape == * modern drwaing application * http://famelis.wordpress.com/2011/04/12/latex-and-inkscape/ * http://wiki.inkscape.org/wiki/index.php/LaTeX * F.e.: {{{ Save your image, eg as “image.svg”. In addition, in Inkscape go to the option File -> Save a Copy and chose PDF as your output format in the same folder as the SVG. In the PDF options popup that comes right after select the options: * PDF+LaTeX: Omit text in PDF and create LaTeX file * Export area is drawing Save and go to your LaTeX document. \begin{figure} \centering \def\svgwidth{\columnwidth} % sets the image width, this is optional \input{image.pdf_tex} \end{figure} }}} = Kile = == Path setting == Kile users should make sure, that under `Settings|Configure Kile|Tools|Build` for ''LaTeX'' and ''PDFLaTeX'' the command is `/usr/sepp/bin/latex` resp. `/usr/sepp/bin/pdflatex`. = Notes = 1) To access links named 'math www', you have to be inside of I-MATH or use a browser via http://institute.math.uzh.ch |
LaTeX
TeX/LaTeX Documentation
A short introduction to LaTeX (in German): http://developer.kde.org/~kdvi/DVI/l2kurz.dvi
UZH Style Templates
If you are working with the I-MATH SunRay Terminals, you can right away use the templates for letters and presentations provided below.
Letter
The official LaTeX templates for correspondence are located at /scratch/templates/latex/korrespondenz/.
Copy the desired template to your home directory (see below for a preview of each template), or any other suitable location (Do not edit the files in /scratch/templates/latex/korrespondenz/) and edit it with your favorite LaTeX editor.
Please make sure that the return address (Institute of Mathematics) is mentioned on the envelope!
Preview of templates:
Please replace the text enclosed by angle brackets (<>) with the appropriate information.
Presentation
The official LaTeX templates for correspondence are located at /scratch/templates/latex/praesentation/.
Copy the desired template to your home directory (see below for a preview of each template), or any other suitable location (Do not edit the files in /scratch/templates/latex/praesentation/) and edit it with your favorite LaTeX editor.
Installation of Corporate Design Templates
You have to perform the steps below only when using the LaTeX on your Notebook or Personal Computer. If you are working with the I-MATH SunRay Terminals, see #Letter and #Presentation
Windows
This instruction assumes that the latest MikTeX is installed including KOMA-Script, lastpage, mptopdf, and arial package. In order to ensure you're running the latest version or installing missing packages, start the MikTeX Package Administrator found under Start|All Programs|MikTeX X.Y|Maintenance (Admin)|Package Manager (Admin) and run the Update Wizard found under Task|Update Wizard. Please refer to the MikTeX Documentation for further information on this topic by pointing your browser to http://www.miktex.org/docs.
Letter Templates
Download the LaTeX Letter templates from math www (see Notes: 1). Unzip the package, and copy the entire nmathletter directory to C:\Program Files\MiKTeX X.Y\tex\latex.
Go to Start|All Programs|MiKTeX X.Y|Maintenance (Admin)|Settings (Admin) and click in the first tab on Refresh FNDB.
Beamer Templates
Download the LaTeX Beamer templates from math www (see Notes: 1). Unzip the package, and copy the entire mathbeamer directory to C:\Program Files\MiKTeX X.Y\tex\latex.
Go to Start|All Programs|MiKTeX X.Y|Maintenance (Admin)|Settings (Admin) and click in the first tab on Refresh FNDB.
Ubuntu
You need to have installed the following Ubuntu packages:
- texlive-fonts-extra
In order to install the Arial font type on a command line: sudo getnonfreefonts-sys arial-urw
Letter Templates
Download the LaTeX Letter templates from math www (see Notes: 1). Unzip the package, and copy the entire nmathletter directory /usr/local/share/texmf/tex/latex. Download http://prdownload.berlios.de/koma-script3/koma-script-20120729.tds.zip and save it to /usr/local/share/texmf/ and unzip the file in that directory.
Run sudo mktexlsr in order to update the search database of latex.
Beamer Templates
Download the LaTeX Beamer templates from math www (see Notes: 1). Unzip the package, and copy the entire mathbeamer directory to /usr/local/share/texmf/tex/latex.
Run sudo mktexlsr in order to update the search database of latex.
MacOS X
You need to have the latest MacTeX installed. MacTeX can be obtained here. Further, it is assumed you have installed getnonfreefonts (download and installation instructions can be found here).
Installing the Arial Font
Open a terminal and type
getnonfreefonts-sys arial-urw
(This requires administrator privileges). The Arial font will be downloaded and automagically installed.
Letter Templates
Download the LaTeX Letter templates from math www. Unzip the package, and copy the entire nmathletter directory /usr/local/texlive/texmf-local/tex/latex/local.
Run mktexlsr as administrator in order to update the search database of latex.
Beamer Templates
Download the LaTeX Beamer templates from math www. Unzip the package, and copy the entire mathbeamer directory to /usr/local/texlive/texmf-local/tex/latex/local.
Run mktexlsr as adminstrator in order to update the search database of latex.
UZH Logo
If you want to include the UZH logo in a LaTeX document, download this zip file. Read the README.pdf file for instructions.
Frequently used questions and programs
Count words in a latex documents
Kile: File > Statistics
kdvi
Tips and tricks
Looking for symbol
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. 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: movie.pdf
Converting LaTeX to HTML, XML, OpenOffice, Word
- Sun Ray: call the commandline utilities in a terminal.
All possible filters: ls -l /usr/share/tex4ht
- Converting a LaTeX Document to MS Word:
# Create an OpenOffice File mk4ht oolatex filename.tex
Open 'filename.odt' in OpenOffice and save it as Microsoft Word/97 file.
Grafic / Drawing
xfig
- old, powerfull and strange
lmgtfy (Google): http://lmgtfy.com/?q=xfig+latex
inkscape
- modern drwaing application
- F.e.:
Save your image, eg as “image.svg”. In addition, in Inkscape go to the option File -> Save a Copy and chose PDF as your output format in the same folder as the SVG. In the PDF options popup that comes right after select the options: * PDF+LaTeX: Omit text in PDF and create LaTeX file * Export area is drawing Save and go to your LaTeX document. \begin{figure} \centering \def\svgwidth{\columnwidth} % sets the image width, this is optional \input{image.pdf_tex} \end{figure}
Kile
Path setting
Kile users should make sure, that under Settings|Configure Kile|Tools|Build for LaTeX and PDFLaTeX the command is /usr/sepp/bin/latex resp. /usr/sepp/bin/pdflatex.
Notes
1) To access links named 'math www', you have to be inside of I-MATH or use a browser via http://institute.math.uzh.ch