summaryrefslogtreecommitdiffstats
path: root/doc/mystyle-pdf.tex
blob: 034ae31358e6a5ae11df1ef21ca36c6c3b005e2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
\documentclass[12pt,a4paper,ngerman]{book}

\usepackage[ngerman]{babel}
\usepackage{ucs}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
%\usepackage[latin1]{inputenc}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{makeidx}
\usepackage{ulem}
\usepackage{xcolor}
\usepackage{moreverb}

%using serif-less Font
\renewcommand{\familydefault}{\sfdefault}

% european A4 paper format--------->
\setlength{\textwidth}{15.8cm}     % width of main text
\setlength{\textheight}{23.5cm}    % height of main text
\setlength{\topmargin}{-1in}     % Subtract default offset
\addtolength{\topmargin}{2.2cm}    % Topmargin
\setlength{\topskip}{30pt}        % between header and text
%%\setlength{\headheight}{0.0in}   % no header
%%\setlength{\headsep}{0.0in}      %
\setlength{\hoffset}{-1in}   % Subtract default offset
\addtolength{\hoffset}{2.2cm}
\setlength{\evensidemargin}{\paperwidth}
\addtolength{\evensidemargin}{-\textwidth}
\addtolength{\evensidemargin}{-\oddsidemargin}
\addtolength{\evensidemargin}{-2in}
\addtolength{\evensidemargin}{-\hoffset}
\addtolength{\evensidemargin}{-\hoffset}
\addtolength{\oddsidemargin}{-1.5mm}
% <end european A4 paper format-----

%own commands
\newcommand{\graybox}[1]{\colorbox{gray}{\makebox[10cm][l]{\color{white}{\bf{#1}}}}}
%\newcommand{\graybox}[1]{\colorbox{mygray}{\color{white}{\bf{#1}}}}

%header styling-------------------->

\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\setlength{\fboxsep}{3mm}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
%\renewcommand{\chaptermark}[1]%
%                  {\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]%
%                  {\markright{\thesection\ #1}}

%define pagenumberbox
\newcommand{\mylthepage}{\colorbox{gray}{\makebox[1.8cm][r]{\color{white}{\bf{\thepage}}}}}
\newcommand{\myrthepage}{\colorbox{gray}{\makebox[1.8cm][l]{\color{white}{\bf{\thepage}}}}}

%set pagenumber and  chapter information
\lhead[\mylthepage]{\bf{\color{gray}{\rightmark}}}
\rhead[\bf{\color{gray}{\leftmark}}]{\myrthepage}
\cfoot{}
\pagestyle{fancy}
\fancypagestyle{plain}{
\renewcommand{\headrulewidth}{0pt}
\setlength{\fboxsep}{3mm}
%\addtolength{\headwidth}{\marginparsep}
%\addtolength{\headwidth}{\marginparwidth}
%\lhead[\mylthepage]{ }
%\rhead[ ]{\myrthepage}
\cfoot{}
}
%<end header styling----------------

% Bildunterschr.
\usepackage[bf]{caption2}
\renewcommand{\captionfont}{\small}
\renewcommand{\figurename}{Abb.}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
%no leading chapter----------------->
\makeatletter
\renewcommand\thechapter{\arabic{chapter}}
\def\@makechapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \par\nobreak
        \vskip 20\p@
      \fi
    \fi
    \interlinepenalty\@M
    \Huge \bfseries \thechapter\ #1\par\nobreak
    \vskip 40\p@
  }}
\makeatother
%<no leading chapter------------------


\usepackage[
  pdftex,
  pdfpagelabels,
  plainpages=false,
  colorlinks,
  urlcolor=blue,
  linkcolor=black,
  citecolor=black,
  pdfauthor={Dirk von Suchodoletz, ..., ...},
%  pdftitle={PVS Dokumentation}
  pdftitle={GZ:if expand("\%") == ""|browse confirm w|else|confirm w|endif}
]{hyperref}

\usepackage{multirow}