Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
LaTeX template for any thesis at the TU Darmstadt
branch: master
Failed to load latest commit information.
bibliography added the rest
chapters added the rest
data added the rest
features added the rest
images added the rest
.gitignore add ds_store fix
header.tex added the rest
thesis.pdf update pdf
thesis.tex added the rest
title.tex added the rest

TU Darmstadt LaTex Thesis Template

This was the template for one of my theses at the TU Darmstadt.

Table of Content

How to use

  1. Download tud-design packages from the physics department

  2. Download the fonts for corporate design. You need a student account for the university in order to download the fonts. This step is optional. Template will also work without the fonts

  3. Install the packages as described in the manual

  4. Edit the template from this repo according to your needs

  5. Run latex

  6. Run makeglossaries thesis from the command line to sort and typeset glossaries and list of acronyms/symbols

  7. Run biblatex

  8. Run latex for the last time and enjoy the output


All features can be used in any LaTeX document and don't depend on the tud classes.

To-do notes

Very useful while writing the thesis. Don't forget to delete them before printing the final copy. Enable to-do notes with the todonotes package. I usually use the inline style.

\todo[inline]{This is a sample to-do note}

To-do notes

Print a list with your open to-do notes using the following command.


To-do list

Colors for corporate design

Define your own colors for later use in graphs or text.



For tables I used the ctable package. It allows to specify a seperate caption for the toc and therefore enables citations inside the table's caption. It also allows us to write footnotes directly below the table to further explain certain facts.

    caption = Technical data of the Mitsubishi i-MiEV \cite{imiev_daten},
    cap = Technical Data of the Mitsubishi i-MiEV,
    label   = tab:data_imiev,
    pos = htb
    {\tnote[1]{Data measured in NEDC}}
    {\FL Description & Specification & Value
        \ML \multirow{4}*{Dimensions} & Length & 3475 mm
        \NN & Width & 1475 mm
        \NN & Height & 1610 mm
        \NN & Wheel base & 2550 mm
        \ML \multirow{5}*{Load capacity} & Luggage space & 227 / 860 liters
        \NN & Curb weight & 1110 kg
        \NN & Permissible maximum weight & 1450 kg
        \NN & Payload & 340 kg
        \NN & Seats & 4 People
        \ML \multirow{3}*{Driving characteristics} & Energy consumption & 135 Wh/km
        \NN & Range & 150 km\tmark[1]
        \NN & max. Velocity & 130 km/h
        \ML \multirow{5}*{Battery data} & Nominal voltage & 330 V
        \NN & Electric charge & 50 Ah
        \NN & Theoret. energy & 16500 Wh
        \NN & Mass & 165 kg
        \NN & Energy density & 100 Wh/kg
        \ML \multirow{3}*{Motor data} & Typ & Permanent Synchronous Motor
        \NN & Nominal power & 35 kW
        \NN & max. Torque & 180 Nm



The big advantage of LaTex is how nicely complex equations are handled.

Equation for extraterrestrial radiation. Taken from Renewable and Efficient Electric Power Systems by Gilbert M. Masters on page 432, 7.43.

  \glsentrytext{I0} = \frac{24}{\pi} \glsentrytext{SC} \left[1+0,034\cos\left(\frac{360\glsentrytext{n}}{365}\right)\right](\cos \glsentrytext{L} \cos \glsentrytext{delta} \sin \glsentrytext{HSR} + \glsentrytext{HSR} \sin \glsentrytext{L} \sin \glsentrytext{delta})

Equation for average wind power. Taken from Betrieb von Kleinwindkraftanlagen - ein Überblick über Markt, Technik und Wirtschaftlichkeit by W. Halbhuber on page 95.

    \overline P_w = \frac{c_1}{T} \int_0^T v_w^3\,dt \ne c_1 \left(\frac{1}{T}\int_0^T v_w\,dt\right)^3 = c_1 \cdot \overline{v}_w^3.


List of acronyms

Define your acronyms.

\newacronym{CO2}{CO\ensuremath{_\textnormal{2}}}{Carbon dioxide}
\newacronym{NEDC}{NEDC}{New European Driving Cycle}

% Print acronyms
\printglossary[type=acronym, title=Acronyms, toctitle=Acronyms, style=mystyle]

Acronyms without style

Add an optional custom style

% Define custom style for glossaries
  % full stop after every description
    % put the glossary in a longtable environment:
  % left alignment, no white in front und three columns
    % have nothing after \begin{theglossary}:
  % uncomment following line if you want headings
    % \renewcommand*{\glossaryheader}{\bfseries Symbol & \bfseries Unit & \bfseries Description \endhead}%
    % have nothing between glossary groups (next two commands):
    % Suppress the vertical gap at the start of each group
    % set how each entry should appear:
        \glstarget{##1}{##2}    % Name
        & ##4                           % Symbol
        & ##3                           % Description
        % & ##5                       % Page list
        \\% end of row
    % Sub entries treated the same as level 0 entries:

Acronyms with style

List of symbols

\newglossaryentry{D}{name=\ensuremath{D}, symbol={}, description={Examination days}, type=symbolslist}
\newglossaryentry{I0}{name=\ensuremath{\bar I_{\textnormal{0}}}, symbol={kWh/m\ensuremath{^2} per day}, description={Average solar irradiance}, type=symbolslist}
\newglossaryentry{SC}{name=\ensuremath{SC}, symbol={W/m\ensuremath{^2}}, description={Solar constant}, type=symbolslist}
\newglossaryentry{n}{name=\ensuremath{n}, symbol={}, description={Day in a year}, type=symbolslist}
\newglossaryentry{L}{name=\ensuremath{L}, symbol={\ensuremath{^\circ}}, description={Latitude}, type=symbolslist}
\newglossaryentry{delta}{name=\ensuremath{\delta}, symbol={\ensuremath{^\circ}}, description={Declination of the sun}, type=symbolslist}
\newglossaryentry{HSR}{name=\ensuremath{H_{\textnormal{SR}}}, symbol={}, description={Hour angle at sunrise (+) and sunset (-)}, type=symbolslist}

% Print list of symbols
\printglossary[type=symbolslist, style=mystyle]


Beautiful graphs

Line graph

            xlabel= Wind speed in m/s,
            ylabel= Relative frequency in \%,
            xmin = 0,
            xmax = 25,
            ymin = 0,
            ymax = 30,
            width= 120mm,
            height = 80mm,
            %legend columns=-1,
            axis x line = bottom,
            axis y line = left,
            legend style = {draw = none, cells={anchor=west}}
            \addplot+[mark=none, blau_2b, very thick] file {data/weibull_k1.dat};
            \addplot+[mark=none, gruen_4b, very thick] file {data/weibull_k1_5.dat};
            \addplot+[mark=none, orange_6b, very thick] file {data/weibull_k2.dat};
            \addplot+[mark=none, rot_8b, very thick] file {data/weibull_k3.dat};
            \legend{k=1, {k=1,5}, k=2, k=3}
    \caption[Weibull distribution with varying scaling factor]{Weibull distribution with varying scaling factor $\bar v_\textnormal{w} = 4\,\textnormal{m/s}$, scaling factor $A = 4,51\,\textnormal{m/s}$ and varying form parameter $k$}

Line graph

Bar charts

            xlabel = Month,
            xmin = 0.5,
            xmax = 13.5,
            ymin = 0,
            ymax = 35,
            axis x line* = bottom,
            axis y line* = left,
            ylabel= New electric vehicles,
            width= 0.9\textwidth,
            height = 0.6\textwidth,
            ymajorgrids = true,
            bar width = 5mm,
            xticklabels = \empty,
            extra x ticks = {1,2,3,4,5,6,7,8,9,10,11,12,13},
            extra x tick labels = {Jan '09, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, Jan '10},
            \addplot+[mark=none, blau_2b, very thick] coordinates {
    \caption[New electric vehicles between Januar 2010 and Januar 2011]{New electric vehicles between Januar 2010 and Januar 2011 \cite{sa-neuzulassungen}}

Simple bar chart

Stacked bar charts

            ybar stacked,
            xlabel= Year,
            ylabel = Energy in GWh,
            ymajorgrids = true,
            width = 0.9\textwidth,
            height = 0.5\textwidth,
            xmin = 1999.5,
            xmax = 2009.5,
            ymin = 0,
            ymax = 70000,
            axis x line* = bottom,
            axis y line* = left,
            xticklabels = none,
            extra x ticks = {2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009},
            extra x tick labels = {2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009},
            legend style = {at={(0.5, 1.025)}, anchor = south, legend columns = -1, draw=none, area legend},  
      area legend,
            scaled ticks = false,
            y tick label style = {/pgf/number format/use comma}
            \addplot+[mark=none, fill=blau_2b, draw = blau_2b, bar width = 8mm] table[x=year, y=ror] {data/stacked-bar-chart.dat};
            \addplot+[mark=none, fill=lila_10b, draw = lila_10b, bar width = 8mm] table[x=year, y=storage] {data/stacked-bar-chart.dat};
            \addplot+[mark=none, fill=orange_6b, draw = orange_6b, bar width = 8mm] table[x=year, y=thermal] {data/stacked-bar-chart.dat};
            \addplot+[mark=none, fill=gruen_4b, draw = gruen_4b, bar width = 8mm] table[x=year, y=renewable] {data/stacked-bar-chart.dat};
            \legend{\gls{ROR}, Storage power plant, Thermal power station, Renewable energy}
    \caption[Energy production in Austria]{Energy production in Austria \cite{econtrol2011}}

Stacked bar chart

Pie charts

  % slice
  \draw[thick] (0,0) -- (#1:1) arc (#1:#2:1) -- cycle;
  % outer label
  \node[label=\midangle:#4] at (\midangle:1) {};
  % inner label
  \pgfmathparse{max(\temp,-0.5) + 0.8}
  \node at (\midangle:\innerpos) {#3};

    \foreach \p/\t in {5/Shot break, 19/Rotor, 7/Gear + Generator, 18/remaining Housing, 20/Tower, 6/Power connection, 8/Basement, 3/Misc, 14/Operation}
    \caption[Break down of the CO$_2$ emissions of a wind turbine]{Break down of the CO$_2$ emissions of a wind turbine \cite{kaltschmitt2006}}

Pie chart

Two y-axes

            scale only axis,
            xlabel= Trips in 2010,
            width = 0.8\textwidth,
            height = 0.5\textwidth,
            ylabel= Covered distance in km,
            % height = 80mm,
            ymin = 0,
            ymax = 800,
            xmin = 0,
            xmax = 111,
            bar width = 0.5mm,
            axis x line* = bottom,
            axis y line* = left,
            bar shift = -0.25mm,
            y tick label style = {/pgf/number format/use comma},
            legend style = {at={(0.5, 1.025)}, anchor = south east, legend columns = -1, draw=none, area legend},
            area legend
            \addplot+[mark=none, blau_2b] table[x=number, y=km] {data/ev.dat};
            \addplot+[line legend, sharp plot, dashed, line width = 2pt, mark=none, draw = blau_2b] coordinates{(0,150) (111,150)};
            \legend{Kilometers, max. range (150 km)}
            scale only axis,
            width = 0.8\textwidth,
            height = 0.5\textwidth,
            axis y line* = right,
            axis x line = none,
            ylabel = Immobilization time between two trips in hours,
            % height = 80mm,
            xmin = 0,
            xmax = 111,
            ymin = 0,
            ymax = 410,
            bar width = 0.5mm,
            bar shift = 0.25mm,
            legend style = {at={(0.5, 1.025)}, anchor = south west, legend columns = -1, draw=none, area legend},
            area legend
            \addplot+[mark=none, gruen_4b] table[x=number, y=time] {data/ev.dat};
            \addplot+[line legend, sharp plot, dashed, line width = 2pt, mark=none, draw = gruen_4b] coordinates{(0,8) (111,8)};
            \legend{Immobilization time, Charging time (8h)}
    \caption[Covered distance and immobilization time between trips of my awesome electric vehicle]{Covered distance per trip and immobilization time between two trips of my awesome electric vehicle in 2010}

Two y-axes

Text replacement

Before Without text replacement

        \psfrag{c}[c][c]{Incidence angle}
    \caption[Geometric conditions between solar irradiation and alignment of the photovoltaic panel]{Geometric conditions between solar irradiation and alignment of the photovoltaic panel \cite{masters04}}

After Text replacement

Electronic circuits

    circuit ee IEC,
    set inductor graphic=var inductor IEC graphic,
    scale = 0.85,
    \draw (0,0) to [current source] (0,3);
    \draw (0,3) to [current direction={info=$I_\textnormal{Ph}$}] (2,3);
    \draw (2,3) -- (4,3);
    \draw (2,3) to [current direction={info={$I_\textnormal{D}$}}] (2,1.5) to [diode] (2,0);
    \draw (0,0) to (8,0);
    \draw (4,0) to [resistor={info={$R_\textnormal{P}$}}] (4,3);
    \draw (4,3) to [resistor={info={$R_\textnormal{S}$}}] (6,3);
    \draw (6,3) to [current direction={info={$I_\textnormal{L}$}}] (8,3);
    \draw (8,3) to [resistor={info={$R_\textnormal{L}$}}](8,0);
    \draw [->] (6,2.8) -- (6,0.2);
    \draw (6,1.5) node[anchor=west]{$U_\textnormal{L}$};

Electronic circuits

Custom styled bibliography

Before Custom bib before

\usepackage[style=numeric, firstinits=true, backend=bibtex]{biblatex}
\DefineBibliographyStrings{ngerman}{urlseen={abgerufen am}}


After Custom bib after


Clemens v. Loewenich and Johannes Werner for creating the tud classes.

Something went wrong with that request. Please try again.