normal orientation should be consistent now
[engrid.git] / manual / main.tex
blobd188c116d9ce092c74870f28c7aa35dfe2ed4a3e
1 \documentclass[british]{book}
2 \usepackage[T1]{fontenc}
3 \usepackage{ucs}
4 \usepackage[utf8x]{inputenc}
5 \makeatletter
6 \usepackage{amsmath}
7 \usepackage{amsfonts}
8 \usepackage{graphicx}
9 \usepackage{amssymb}
10 \usepackage{calc,layouts}
11 \usepackage{titlesec}
12 \usepackage{fancyhdr}
13 \usepackage{xspace}
14 \usepackage{color}
15 \usepackage{ifthen}
16 \usepackage{boxedminipage}
17 \usepackage{lastpage}
18 \usepackage{setspace}
19 \usepackage{natbib}
20 \usepackage[german,british]{babel}
22 \setlength\textheight{220mm}
23 \setlength\textwidth{155mm}
24 \setlength\evensidemargin{15mm}
25 \setlength\oddsidemargin{15mm}
26 \setlength\topmargin{-15mm}
27 \setlength\headheight{15mm}
28 \setlength\parindent{0mm}
29 \setlength\parskip{2mm}
31 \usepackage[T1]{fontenc}
32 \usepackage[scaled]{helvet}
33 \renewcommand*\familydefault{\sfdefault}
34 \linespread{1.3}\selectfont
36 \setcounter{secnumdepth}{5}
37 \titleformat{\section}{\LARGE \bf}{\hspace{-20mm}\parbox[b]{20mm}{\thesection}}{0mm}{}
38 \titleformat{\subsection}{\Large \bf}{\hspace{-20mm}\parbox[b]{20mm}{\thesubsection}}{0mm}{}
39 \titleformat{\subsubsection}{\large \bf}{\hspace{-20mm}\parbox[b]{20mm}{\thesubsubsection}}{0mm}{}
40 \titleformat{\paragraph}{\bf}{\hspace{-20mm}\parbox[b]{20mm}{\theparagraph}}{0mm}{}
41 \titleformat{\subparagraph}{}{\hspace{-20mm}\parbox[b]{20mm}{\thesubparagraph}}{0mm}{}
43 \renewcommand\l@section{\vspace{3mm}\bfseries\@dottedtocline{1}{0mm}{10mm}}
44 \renewcommand\l@subsection{\normalfont\@dottedtocline{2}{0mm}{15mm}}
45 \renewcommand\l@subsubsection{\normalfont\@dottedtocline{2}{0mm}{20mm}}
46 \renewcommand\bibsection{\section{\refname}}
48 \newcommand\makeengitstitle
50 \pagestyle{empty}
52 \hspace{0mm}
53 \begin{minipage}[t]{130mm}
55 \vspace{3mm}
56 \begin{center}
57 \includegraphics[width=75mm]{logo_engits.png}
58 $~$\\
59 \vspace{10mm}
60 \large
61 \begin{tabular}{l}
62 \begin{tabular}{l}
63 \vspace{-1mm} enGits GmbH\\
64 \iflanguage{british} {
65 \vspace{-1mm} Postfach 32\\
66 \vspace{-1mm} 79670 Todtnau\\
67 \vspace{0mm} Germany\\
70 \iflanguage{german} {
71 \vspace{-1mm} Postfach 32\\
72 \vspace{-1mm} 79670 Todtnau\\
73 \vspace{0mm} Deutschland\\
76 \end{tabular}\\
77 \begin{tabular}{lcl}
78 \iflanguage{german} {
79 \vspace{-1mm} Telefon & : & +49 (0)7671 992 511 0 \\
80 \vspace{-1mm} Telefax & : & +49 (0)7671 992 511 2 \\
81 \vspace{-1mm} E-Mail & : & info@engits.com \\
84 \iflanguage{british} {
85 \vspace{-1mm} phone & : & +49 (0)7671 992 511 0 \\
86 \vspace{-1mm} fax & : & +49 (0)7671 992 511 0 \\
87 \vspace{-1mm} email & : & info@engits.com \\
90 \end{tabular}\\
91 \end{tabular}
92 \vspace{3mm}$~$\\
93 \end{center}
95 \end{minipage}
97 \begin{minipage}[c][100mm][c]{130mm}
98 \begin{center}
100 \begin{spacing}{1.5}
101 \bf
102 \huge
103 \engitstitle
104 \end{spacing}
106 \end{center}
107 \end{minipage}
109 \begin{minipage}{130mm}
110 \begin{center}
111 \begin{tabular}{|p{2cm}|p{81mm}|}
112 \hline
113 \iflanguage{british}{title}{}
114 \iflanguage{german}{Titel}{}
115 & \engitstitle \\
116 \hline
117 \iflanguage{british}{date}{}
118 \iflanguage{german}{Datum}{}
119 & \engitsdate \\
120 \hline
121 \iflanguage{british}{author}{}
122 \iflanguage{german}{Autor}{}
123 & \engitsauthor \\
124 \hline
125 \iflanguage{british}{version & \engitsversion \\}{}
126 \iflanguage{german}{Version & \ifthenelse{\equal{\engitsversion}{draft}}{Entwurf}{\engitsversion} \\}{}
127 \hline
128 \end{tabular}
129 \end{center}
130 \end{minipage}
131 \clearpage
132 \pagestyle{fancy}
135 %\newenvironment{engitsstandard}{\setlength\parskip{2mm}}{\setlength\parskip{2mm}}
136 \newenvironment{engitstoc}{\setlength\parskip{0mm}}{\setlength\parskip{2mm}}
138 \pagestyle{fancy}
139 \fancyhf{}
140 \fancyhfoffset{0mm}
141 \fancyhfoffset[LO,LE]{20mm}
142 \fancyhead[LE,LO]{
143 \includegraphics[width=50mm]{logo_engits.png}
145 \fancyhead[RE,RO]{
146 \begin{minipage}[b]{12cm}
147 \begin{flushright}
148 {\bf\engitstitle} \\ \engitsauthor \\
149 \iflanguage{british}{version \engitsversion, }{}
150 \iflanguage{german}{Version \ifthenelse{\equal{\engitsversion}{draft}}{Entwurf, }{\engitsversion, }}{}
151 \engitsdate
152 \end{flushright}
153 \end{minipage}
155 \fancyfoot[RE,RO]{
156 \iflanguage{british}{page \thepage {} of \pageref{LastPage}}{}
157 \iflanguage{german}{Seite \thepage {} von \pageref{LastPage}}{}
160 \newcommand\eg{ENGRID\ }
161 \newcommand\foam{OpenFOAM\textsuperscript{\textregistered}\ }
162 \newcommand\netgen{NETGEN\ }
163 \newcommand\egv{1.0}
164 \newcommand\sqt{\char`\"{}}
165 \newcommand\eqt{\char`\"{}\ }
166 \newcommand\arr{\guillemotright\ }
167 \newcommand\menu[1]{\textcolor{blue}{\it \hspace{5mm} #1}}
169 \definecolor{darkred}{rgb}{0.5,0,0}
171 \newcommand\important[1]
173 $~$\\
174 \begin{minipage}{15mm}
175 \includegraphics[width=1cm]{figures/important}
176 \end{minipage}
177 \begin{minipage}{110mm}
178 \begin{flushleft}
179 {\textcolor{darkred}{#1}}
180 \end{flushleft}
181 \end{minipage}
183 \vspace{3mm}
186 \makeatother
187 \usepackage{babel}
189 \newcommand\comment[2]{{\color{red}{\bf#1}\it#2}}
191 \begin{document}
192 \newcommand\engitsversion{draft}
193 \newcommand\engitsauthor{O. Gloth}
194 \newcommand\engitstitle{enGrid manual}
195 \newcommand\engitsdate{\today}
196 \selectlanguage{british}
197 \makeengitstitle
198 \clearpage
200 Copyright \copyright 2008 enGits GmbH.\\
201 Permission is granted to copy, distribute and/or modify this document under the
202 terms of the GNU Free Documentation License, Version~1.2 or any later version
203 published by the Free Software Foundation; with
204 no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of
205 the license is included in the section entitled
206 \char`\"{}GNU~Free~Documentation~License\char`\"{}.
207 \clearpage
209 \begin{engitstoc}
210 \tableofcontents{}
211 \end{engitstoc}
212 \clearpage
214 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
215 % include all chapters here
216 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
217 \input{introduction}
218 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
220 \chapter{Tutorials}
221 \include{tutorial_01}
223 \appendix
225 \chapter{GNU Free Documentation License}
227 \include{gpl}
229 %\addcontentsline{toc}{section}{References}
231 \begin{flushleft}
232 \bibliographystyle{plain}
233 \bibliography{engits}
234 \par\end{flushleft}
235 \end{document}