ETH Zurich - Homepage Welcome  
  News & Events | About Us | People
  Research | Education | Publications
  Groups (Chairs) | Open Positions | Library
ETH Zurich - D-UWIS - IACETH

This page has moved to https://wiki.iac.ethz.ch/Public/DissLatex

Remark This document is original written in German german flaf. Because of the success, i decided to translate it to English, but I've to say, that my English isn't very good, sorry. I would be glad about some corrections.

Valid HTML 4.01!

Dissertation with Latex

This isn't a Latex-help in the common sense. But it should help by some specific things around using Latex for writing a dissertation (PhD-Thesis) and other similar documents. The layouts correspond to the styles of the ETH and/or IACETH (the institute where I'm working), but it shouldn't be a problem to use other styles.

At the bottom you will find some examples (which are still in German), which shows and explains the most things.

Computer specific things are related to UNIX/Linux

content


Preparation

Files for Latex may be edited be any text editor. Some of them give special advantages like highlighting of syntax structure. A good one is Xemacs or his brother Emacs. Both are a little bit cryptic but are very fast if you understand them. The same thing is also true for Latex itself.

Many things in latex are outsourced. In this case you have to explain your computer where it can find the different things (eg.: style files). The following settings should work on the IACETH and explain how you have to configure your computer (if it is a UNIX/Linux machine.

Unix
Add the following settings to the file ~/.login and do a re-login after it. Probably the settings will also work in files like .cshrc or so.
Linux
The environment variable TEXINPUTS needs the following entries: /usr/local/lib/tex/inputs and /home/yourname/tex

structure

It's a good idea to have a short main document. For this you can out-source the single chapters into own files with the command \include{file.tex}. The outsourced files may also contain an other \include statement.

Attention: a imported file always produce a page break!

special chapters

Index

To create an index you need the following things.

references

You need:

cross references

With \label{name} you can mark any kind of object (or location). After that you can use \pageref{name} to refer to the page of the named item or \ref{name} for the chapter-numbering (or figure/table if it is used inside their environment).

content, table and figure index

Just include \tableofcontents, \listoftables resp. \listoffigures at the place where it should appear.

Create / Compilation

Latex don't use any kind of WYSIWYG behavior. You just edit the pure code. After that you have to compile the whole thing to have the final document. For that you need some additional programs (which are mostly installed on many UNIX/Linux systems). The following command sequence (UNIX/Linux) should give you the result your looking for. Be careful where the file extensions are necessary and where they are not allowed!

1. latex diss_main.tex first compilation
2. bibtex diss_main create the reference index
3. makeindex diss_main create the index
4. latex diss_main.tex second compilation (insert the references)
5. latex diss_main.tex third compilation (page numbering)
6. dvips -odiss_main.ps diss_main.dvi convert from dvi to postscript
7. gv diss_main.ps look at the new postscript
8. dvipdf diss_main.dvi diss_main.pdf convert it to .pdf

The file names refer to the examples which is available under documents.

Remark

Tips

The example dissertation includes to all used packages a small explanation.

Commands

Latex allows to simplify things which are used often. It's a decision of style how often you will use this things. Very often they make it harder to read the code of the document (especially after a break of some month or for other person which see it the first time). On the other hand they make it easier to create a consistent layout.
All this commands are defined before the \begin{document} statement. It's also a good idea to export them to an own file an import them with \input{comdef.tex}
Here some tips and examples


Tips Windows

Based on notes by R. Schefold

  1. Download and install mikTeX on your system.
  2. Download and install WinEdt. Memeber of the IACETH may ask Hans Hirter for a serial number.
  3. In WinEdt, choose Options->Configurations->MikTex direct!
  4. Open the file main tex file in WinEdt
  5. Compilation

Instead of WinEdt the TeXnicCenter from toolscenter.org can be used.


Links

  • Overhead slides with the package beamer (by Andrew Mertz and William Slough).
  • Font selection (by Walter Schmidt).

documents

commonETH-files
bibliography (.bst)example dissertation (German)

Poster with Latex

Based on notes by Mark Liniger.


Mail Home Mäder
Mittelbauinfos
April 23. 2010 counter