summaryrefslogtreecommitdiffstats
path: root/doc/preamble.inc
blob: 43041ee0120df5cae076bbdff247bfc3065444cb (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
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\IfFileExists{iffont.sty}{
  \usepackage{iffont}
  \settofirstfound{\mainfont}{LTProjekt, DejaVu Sans, Liberation Sans}
  \settofirstfound{\boldfont}{LTProjekt Heavy, DejaVu Sans Bold, Liberation Sans Bold}
  \setmainfont[BoldFont=\boldfont]{\mainfont}
  \setsansfont[BoldFont=\boldfont]{\mainfont}
  \settofirstfound{\monofont}{Inconsolata, DejaVu Sans Mono, Liberation Sans Mono}
  \setmonofont[Scale=MatchLowercase, LetterSpace=-4]{\monofont}
}{
  \setmainfont{DejaVu Sans}
  \setsansfont{DejaVu Sans}
  \setmonofont[Scale=MatchLowercase, LetterSpace=-4]{DejaVu Sans Mono}
}

\usepackage{graphicx}
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}

% counting for chapter, section, subsection, subsubsection
\setcounter{secnumdepth}{3}
% put into toc up to this subsection level
\setcounter{tocdepth}{2}

% head- and footlines
% -------------------
\newcommand*{\PtxFootLogo}{\raisebox{-0.4em}{\includegraphics[scale=.11]{new_logo_2006_ptx.pdf}}}
\makeatletter
\fancypagestyle{normal}{
  \fancyhf{}
  \fancyfoot[R]{{\py@HeaderFamily\thepage}}
  \fancyfoot[L]{{\PtxFootLogo}}
  \fancyhead[C]{{\py@HeaderFamily \leftmark}}
  \renewcommand{\headrulewidth}{0.4pt}
  \renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{plain}{
  \fancyhf{}
  \fancyfoot[R]{{\py@HeaderFamily\thepage}}
  \fancyfoot[L]{{\PtxFootLogo}}
  \renewcommand{\headrulewidth}{0.0pt}
  \renewcommand{\footrulewidth}{0.4pt}
}

\renewenvironment{notice}[2]{
  \def\py@noticetype{#1}
  \csname py@noticestart@#1\endcsname
  \begin{minipage}[c]{\textwidth}

  \begin{center}

  \vspace{1ex}

  \begin{minipage}[c]{0.1 \textwidth}
    \includegraphics[scale=.075]{warning.pdf}
  \end{minipage}
  \begin{minipage}[c]{0.85 \textwidth}
    \begingroup\sf
}{
    \endgroup
  \end{minipage}

  \vspace{1ex}

  \end{center}
  \end{minipage}
\csname py@noticeend@\py@noticetype\endcsname }

\definecolor{VerbatimColor}{gray}{0.95}
\definecolor{VerbatimBorderColor}{gray}{0.75}

\makeatother

% vim:syntax=tex