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

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

PluginHowTo: Finished style. Thanks to Soeren for the graphics.

  • Replaced all png-files with eps/pdf versions
  • Added eps and pdf version of all files, hence pdflatex and normal latex is possible again
  • Note that DVI-colors appear different in the pdf-version (due to the conversion) - this is ok, since pdf is the final target
File size: 4.9 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.3mm}
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.87cm}%
53    \setlength{\@tempdimc}{28.4cm}%
54    \setlength{\unitlength}{1pt}%
55    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
56        \includegraphics[width=\headbgwidth, height=\headheight]{figures/ct_page_header}%
57    }
58}
59
60\newcommand\BackgroundFooterPic{
61%\AddToShipoutPicture{%
62    \setlength{\@tempdimb}{1.87cm}%
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/ct_page_footer_pure}%
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.6\textwidth]{figures/ct_logo_watermark}%
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
94\input{frontpage}
95
96
97\title{CrypTool 2.0}
98\subtitle{Developer Manual}
99\author{S.\ Przybylski, A.\ Wacker, M\ Wander and F\ Enkler}
100\email{\{przybylski$|$wacker$|$wander$|$enkler\}@cryptool.org}
101\version{0.1}
102\date{\today}
103
104% Metadata and configuration of the pdf output:
105% Do not forget to enter the correct title, author, subject und keywords
106
107% For screen viewing it is nice to have references marked in a slightly different
108% color than the rest of the text. Since they will be hyperlinks to the
109% referenced objects.
110\usepackage[pdftex,
111             pdftitle={\@title},
112             colorlinks,
113             linkcolor={mydarkgrey},
114             citecolor={mygrey},
115             urlcolor={blue},
116             plainpages={false},
117             bookmarksnumbered={true},
118             bookmarksopenlevel={3},
119             pdfauthor={\@author},
120             pdfsubject={\@subtitle},
121             pdfkeywords={CrypTool,Cryptography,eLearning,Cryptanalysis},
122             pdfstartview={Fit}]{hyperref}
123
124%\usepackage{pdfsync}
125
126% To avoid nasty mistakes like having comments directly in the textflow
127% the following \todo macro was defined. With that you can enter
128% \todo{What I still have to do here}
129% inside of your text and a marker will appear at the page's margin with the
130% text "What I still have to do here".
131% The first line activates this feature. If you comment it out and uncomment
132% the second line below there will be no error messages and no todos will be shown
133% anymore. So - even if you have forgotten to delete one of them - they will not appear
134% in the final printout.
135\newcommand{\todo}[1]{\marginpar{\textcolor{red}{ToDo:} #1}}
136
137
138
139%\AtBeginDocument{\markboth{\@author}{\@title}}
140\begin{document}
141        \maketitle
142
143        \tableofcontents
144
145   
146    \AddToShipoutPicture{\WaterMarkPic}
147
148
149    \begin{abstract}
150    \textbf{Abstract.} This document is intended for plugin developers.
151    \end{abstract}
152
153        \include{part1}
154        \include{part2}
155
156\end{document}
Note: See TracBrowser for help on using the repository browser.