Dokumentvorlagen Standard LaTeX
[kivitendo-erp.git] / templates / print / Standard / mitBriefpapier.sty
1 \ProvidesFile{versionEins.sty}
2 \usepackage[utf8]{inputenc}
3 \usepackage{german}
4 \usepackage{graphicx}
5 % \usepackage{colortbl}
6 % \usepackage{lastpage}
7 % \usepackage{tabularx}
8
9 % \pageref
10
11 \setlength{\voffset}{-0.3cm}
12 \setlength{\hoffset}{-2.5cm}
13 \setlength{\topmargin}{0cm}
14 \setlength{\headheight}{0.5cm}
15 \setlength{\headsep}{1cm}
16 \setlength{\topskip}{0pt}
17 \setlength{\oddsidemargin}{2cm}
18 \setlength{\textwidth}{16.4cm}
19 \setlength{\textheight}{20.5cm}
20 \setlength{\footskip}{1cm}
21 \setlength{\parindent}{0pt}
22
23 \setlength{\tabcolsep}{0.2cm}
24 \setlength{\unitlength}{1cm}
25
26 \newcommand{\myhead}{%
27   \fontfamily{cmss}\fontsize{10pt}{10pt}\fontseries{m}\selectfont
28   \begin{picture}(0,0)
29     \put(-2.025,-26.95){\includegraphics*{kivitendo-seite1.pdf}}
30   \end{picture}
31 }
32
33 \newcommand{\myfoot}{%
34 }
35
36 \newcommand{\plainfoot}{%
37   \fontfamily{cmss}\fontsize{10pt}{10pt}\fontseries{m}\selectfont
38   \begin{minipage}[t][1cm][t]{\textwidth}
39     \begin{minipage}[t][1cm][t]{5cm}
40       \refnr
41     \end{minipage} \hspace*{10.25cm}
42     \begin{minipage}[t][1cm][t]{2cm}
43       Seite \thepage \\
44     \end{minipage}
45   \end{minipage}
46 }
47
48 \newcommand{\plainhead}{%
49   \fontfamily{cmss}\fontsize{10pt}{10pt}\fontseries{m}\selectfont
50   \begin{picture}(0,0)
51     \put(-2.025,-26.95){\includegraphics*{kivitendo-seiteff.pdf}}
52   \end{picture}
53 }
54
55
56 \renewcommand{\ps@headings}{%
57   \renewcommand{\@oddhead}{\myhead}
58   \renewcommand{\@evenhead}{\@oddhead}%
59   \renewcommand{\@oddfoot}{\myfoot}
60   \renewcommand{\@evenfoot}{\@oddfoot}%
61 }
62
63 \renewcommand{\ps@plain}{%
64   \renewcommand{\@oddhead}{\plainhead}
65   \renewcommand{\@evenhead}{\@oddhead}%
66   \renewcommand{\@oddfoot}{\plainfoot}
67   \renewcommand{\@evenfoot}{\@oddfoot}%
68 }