source: trunk/Documentation/Developer/PluginHowTo/HowToDeveloper.tex @ 845

Last change on this file since 845 was 845, checked in by Arno Wacker, 12 years ago

PluginHowTo

  • Major style update - now looks fancy (chapter 1 demonstrates how it should look)
  • Minor exemplary changes in chapter 2 (this is pretty much a construction site here..)
File size: 4.4 KB
Line 
1\documentclass[11pt, a4paper, titlepage]{scrbook}
2
3\usepackage[latin1]{inputenc}
4\usepackage[english]{babel}
5\usepackage{graphicx}
6\usepackage{booktabs}
7\usepackage{geometry}
8\usepackage{setspace}
9\usepackage{fancyhdr}
10\usepackage{url}
11\usepackage{wrapfig}
12\usepackage{color}
13\usepackage{colortbl}
14\usepackage{eso-pic}
15
16%\usepackage[automark]{scrpage2}
17%\usepackage[absolute]{textpos}
18
19
20\geometry{a4paper, portrait, left=2cm, right=2cm, top=2cm, bottom=2cm, includefoot}
21
22%\pagestyle{headings}
23%\pagestyle{scrheadings}
24\pagestyle{fancy} %eigener Seitenstil
25\fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
26\fancyhead[L]{\leftmark} %Kopfzeile links
27\fancyhead[C]{\AddToShipoutPicture*{\BackgroundHeaderPic}} %zentrierte Kopfzeile
28\fancyhead[R]{\rightmark} %Kopfzeile rechts
29
30\fancyfoot[C]{\AddToShipoutPicture*{\BackgroundFooterPic}} %zentrierte Fußzeile
31\fancyfoot[EL,OR]{\thepage} %Seitennummer
32\fancyfoot[ER,OL]{\includegraphics[height=0.5cm]{figures/ct2Logo.png}}
33
34\renewcommand{\headrulewidth}{2pt} %obere Trennlinie
35\renewcommand{\footrulewidth}{2pt} %untere Trennlinie
36
37\renewcommand{\headrule}{{\color{orange}\hrule width\headwidth height\headrulewidth \vskip-\headrulewidth}}
38\renewcommand{\footrule}{{\color{orange}\vskip-\footruleskip\vskip-\footrulewidth\hrule width\headwidth height\footrulewidth\vskip\footruleskip}}
39
40
41\makeatletter
42\newcommand\BackgroundHeaderPic{
43%\AddToShipoutPicture{%
44    \setlength{\@tempdimb}{1.9cm}%
45    \setlength{\@tempdimc}{28.4cm}%
46    \setlength{\unitlength}{1pt}%
47    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
48        \parbox[b][\headheight]{\headwidth}{%
49            \includegraphics[width=\headwidth, height=\headheight]{figures/ct2Header.png}%
50        }
51    }
52}
53
54\newcommand\BackgroundFooterPic{
55%\AddToShipoutPicture{%
56    \setlength{\@tempdimb}{1.9cm}%
57    \setlength{\@tempdimc}{1.8cm}%
58    \setlength{\unitlength}{1pt}%
59    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
60        \parbox[b][0.8cm]{\headwidth}{%
61            \includegraphics[width=\headwidth, height=0.8cm]{figures/ct2Footer.png}%
62        }
63    }
64}
65
66\makeatother
67
68% finetune the gaps between figure and text in the subfigure environment (basically close the gap as much as possible)
69%\renewcommand{\subfigtopskip}{0pt}
70%\renewcommand{\subfigbottomskip}{0pt}
71
72% some color definitions for the pdf statements below
73\definecolor{mygrey}{rgb}{0.45,0.45,0.45}
74\definecolor{mydarkgrey}{rgb}{0.2,0.2,0.2}
75\definecolor{red}{rgb}{1.0,0.33,0.33}
76\definecolor{orange}{rgb}{1.00,0.73,0.33}
77\definecolor{yellow}{rgb}{0.95,0.92,0.}
78\definecolor{lightgreen}{rgb}{0.3,0.95,0.46}
79\definecolor{titleblue}{rgb}{0.03,0.10,0.46}
80
81% Metadata and configuration of the pdf output:
82% Do not forget to enter the correct title, author, subject und keywords
83
84% For screen viewing it is nice to have references marked in a slightly different
85% color than the rest of the text. Since they will be hyperlinks to the
86% referenced objects.
87\usepackage[pdftex,
88             pdftitle={\@title},
89             colorlinks,
90             linkcolor={mydarkgrey},
91             citecolor={mygrey},
92             urlcolor={blue},
93             plainpages={false},
94             bookmarksnumbered={true},
95             pdfauthor={\@author},
96             pdfsubject={\@subtitle},
97             pdfkeywords={},
98             pdfstartview={FitBH}]{hyperref}
99
100\usepackage{pdfsync}
101
102% To avoid nasty mistakes like having comments directly in the textflow
103% the following \todo macro was defined. With that you can enter
104% \todo{What I still have to do here}
105% inside of your text and a marker will appear at the page's margin with the
106% text "What I still have to do here".
107% The first line activates this feature. If you comment it out and uncomment
108% the second line below there will be no error messages and no todos will be shown
109% anymore. So - even if you have forgotten to delete one of them - they will not appear
110% in the final printout.
111\newcommand{\todo}[1]{\marginpar{\textcolor{red}{ToDo:} #1}}
112
113
114\input{frontpage}
115
116
117\title{CrypTool 2.0}
118\subtitle{Developer Manual}
119\author{S.\ Przybylski, A.\ Wacker, M\ Wander and F\ Enkler}
120\email{\{przybylski$|$wacker$|$wander$|$enkler\}@cryptool.org}
121\version{0.1}
122\date{\today}
123
124%\AtBeginDocument{\markboth{\@author}{\@title}}
125\begin{document}
126        \maketitle
127
128        \tableofcontents
129
130        \include{part1}
131        \include{part2}
132
133\end{document}
Note: See TracBrowser for help on using the repository browser.