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

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

PluginHowTo: Style-update (even more fancy now)

  • Replaced png-logo with eps/pdf versions
  • Still todo: the watermark-logo must be lighter, and the header/footer pngs should be replaced with eps/pdf versions
File size: 4.8 KB
Line 
1\documentclass[11pt, a4paper, titlepage]{scrreprt}
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
21\geometry{a4paper, portrait, left=2cm, right=2cm, top=2cm, bottom=2cm, includefoot}
22
23
24%\pagestyle{headings}
25%\pagestyle{scrheadings}
26\pagestyle{fancy} %eigener Seitenstil
27\fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
28\fancyhead[L]{\leftmark} %Kopfzeile links
29\fancyhead[C]{\AddToShipoutPicture*{\BackgroundHeaderPic}} %zentrierte Kopfzeile
30\fancyhead[R]{\rightmark} %Kopfzeile rechts
31
32\fancyfoot[C]{\thepage\AddToShipoutPicture*{\BackgroundFooterPic}} %zentrierte Fußzeile
33%\fancyfoot[EL,OR]{\thepage} %Seitennummer
34%\fancyfoot[ER,OL]{\includegraphics[height=0.3cm]{figures/ct_logo}}
35
36\renewcommand{\headrulewidth}{2pt} %obere Trennlinie
37\renewcommand{\footrulewidth}{2pt} %untere Trennlinie
38
39\newlength{\headbgwidth}
40\setlength{\headbgwidth}{\headwidth}
41\addtolength{\headbgwidth}{0.5mm}
42%\addtolength{\headwidth}{\marginparwidth}
43
44
45\renewcommand{\headrule}{{\color{orange}\hrule width\headwidth height\headrulewidth \vskip-\headrulewidth}}
46\renewcommand{\footrule}{{\color{orange}\vskip-\footruleskip\vskip-\footrulewidth\hrule width\headwidth height\footrulewidth\vskip\footruleskip}}
47
48
49\makeatletter
50\newcommand\BackgroundHeaderPic{
51%\AddToShipoutPicture{%
52    \setlength{\@tempdimb}{1.85cm}%
53    \setlength{\@tempdimc}{28.4cm}%
54    \setlength{\unitlength}{1pt}%
55    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
56        \includegraphics[width=\headbgwidth, height=\headheight]{figures/ct2Header.png}%
57    }
58}
59
60\newcommand\BackgroundFooterPic{
61%\AddToShipoutPicture{%
62    \setlength{\@tempdimb}{1.85cm}%
63    \setlength{\@tempdimc}{1.8cm}%
64    \setlength{\unitlength}{1pt}%
65    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
66        \includegraphics[width=\headbgwidth, height=0.7cm]{figures/ct2Footer.png}%
67    }
68}
69
70\newcommand\WaterMarkPic{%
71    \setlength{\@tempdimb}{1.85cm}%
72    \setlength{\@tempdimc}{2.7cm}%
73    \setlength{\unitlength}{1pt}%
74    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
75            \includegraphics[width=0.7\textwidth]{figures/ct_logo}%
76    }
77}
78\makeatother
79
80% finetune the gaps between figure and text in the subfigure environment (basically close the gap as much as possible)
81%\renewcommand{\subfigtopskip}{0pt}
82%\renewcommand{\subfigbottomskip}{0pt}
83
84% some color definitions for the pdf statements below
85\definecolor{mygrey}{rgb}{0.45,0.45,0.45}
86\definecolor{mydarkgrey}{rgb}{0.2,0.2,0.2}
87\definecolor{red}{rgb}{1.0,0.33,0.33}
88\definecolor{orange}{rgb}{1.00,0.73,0.33}
89\definecolor{yellow}{rgb}{0.95,0.92,0.}
90\definecolor{lightgreen}{rgb}{0.3,0.95,0.46}
91\definecolor{titleblue}{rgb}{0.03,0.10,0.46}
92
93% Metadata and configuration of the pdf output:
94% Do not forget to enter the correct title, author, subject und keywords
95
96% For screen viewing it is nice to have references marked in a slightly different
97% color than the rest of the text. Since they will be hyperlinks to the
98% referenced objects.
99\usepackage[pdftex,
100             pdftitle={\@title},
101             colorlinks,
102             linkcolor={mydarkgrey},
103             citecolor={mygrey},
104             urlcolor={blue},
105             plainpages={false},
106             bookmarksnumbered={true},
107             pdfauthor={\@author},
108             pdfsubject={\@subtitle},
109             pdfkeywords={},
110             pdfstartview={FitBH}]{hyperref}
111
112\usepackage{pdfsync}
113
114% To avoid nasty mistakes like having comments directly in the textflow
115% the following \todo macro was defined. With that you can enter
116% \todo{What I still have to do here}
117% inside of your text and a marker will appear at the page's margin with the
118% text "What I still have to do here".
119% The first line activates this feature. If you comment it out and uncomment
120% the second line below there will be no error messages and no todos will be shown
121% anymore. So - even if you have forgotten to delete one of them - they will not appear
122% in the final printout.
123\newcommand{\todo}[1]{\marginpar{\textcolor{red}{ToDo:} #1}}
124
125
126\input{frontpage}
127
128
129\title{CrypTool 2.0}
130\subtitle{Developer Manual}
131\author{S.\ Przybylski, A.\ Wacker, M\ Wander and F\ Enkler}
132\email{\{przybylski$|$wacker$|$wander$|$enkler\}@cryptool.org}
133\version{0.1}
134\date{\today}
135
136%\AtBeginDocument{\markboth{\@author}{\@title}}
137\begin{document}
138        \maketitle
139
140        \tableofcontents
141
142   
143    \AddToShipoutPicture{\WaterMarkPic}
144
145
146    \begin{abstract}
147    \textbf{Abstract.} This document is intended for plugin developers.
148    \end{abstract}
149
150        \include{part1}
151        \include{part2}
152
153\end{document}
Note: See TracBrowser for help on using the repository browser.