Start code for tikz picture

    \begin{tikzpicture}[node distance=1.5cm,scale=0.70,transform shape,font=\sffamily] 
	    \tikzstyle{every node}=[draw,rectangle, rounded corners, minimum height=2.5em] 
	    \node (1) at (0,0) {Master}; 
	    \node (2) [left=of 1] {Slave}; 
	    \node (3) [right=of 1] {Slave}; 
	    \node (4) [above=1.5cm of 1] {Slave}; 
	    \draw (2) -- (1) node[midway,below] {x}; 
	    \draw (3) -- (1) node[midway,below] {x}; 
	    \draw (4) -- (1) node[midway,left] {x}; 

hints for listings



inside of options setting and you can define where you get bold code parts. For Example

 |this is new|

would print the middle line in bold font.

page margins do not fit


this code sketch was used to print A4 pages for a cd label.

Serifen oder Serifenlos (Groteske/Sans Serif)?

Compare code samples with basicstyle=\small and basicstyle=\small\sffamily.

new commands

Witout parameter


With on parameter


With two parameters


With optional parameter

if called as \ovec[m]{x} it will take m as parameter #2 otherwise it takes n.

If there is a problem that after the insertion of the new command the text is added with no space character between the following text you can enforce a space character after the command with



where a space is following behind the second backslash.

ensure math mode


new enviroments


install custom .cls or .sty files

The easiest way is to copy new files under your home directory. For example if you download a new package named with contained .sty etc files.

 mkdir ~/texmf/tex/latex/asdf
 cp asdf.sty ... ~/texmf/tex/latex/asdf

Thats all.

or I found another way if the above does not work:

special characters

short reference for latex

 \documentclass[a5paper] {article}

 your text

default classes

\documentclass{class} \documentclass[opt1,opt2,...]{class}

document structure


Title of document

 \title{this is the first line
and this the second line
of the title } \author{ Foo Bar \and{} Another Foobar } \date{March 2008} \maketitle

Table of contents



Preface will be not numbered but add into table of contents


 \chapter{further blabla}

Summary after title

With 'abstract' and after \maketitle

changeable section names


change of the numbering of pages


top- and bottomline


multiple columns

    text in 2 columns
 \end {multicols}

Text structuring


 \item asdf
 \item qwer
 \item asdf
 \item qwer
 \item asdf
 \item qwer

unformated text

 Bei der URL \url|| gibt es was feines.

To print a whole file as unformated text use



    Der Mensch kann tun was er will, aber er kann nicht wollen was er will.

font sizes


word separation






figures and tabulars (Abbildungen und Tafeln)

  % content
  \caption{subtext for figure}

 \caption[shorttitle]{text under figure}

To change the automatic text which appears e.g. Fig. 23.11


The figure* and tabular* commands use the whole space if the text is a two column one.

To position the object use:


where pos is

 h here
 t top
 b bottom
 p page

feet notes

 \footnote{see paper xy on}

end notes

appear at the end of the chapter and will be created with


 end of chapter

links and references


but no numeration at all to have the ability of movements of the objects.

 look at the fine picture \ref{imagewhereyoucanseesomething}. There you can see ...



Better references with package 'varioref':

 Das Bild zeigt \vref{fig:lkj} zeigt ...
creates different text in dependence of the distance of the reference to its destination.

References to external documents with package 'xr'.

 Wie wir in Abschnitt \ref{mypapername:asdf} zeigen ...