Browse Source

Preislister: Datum oben auf jeder Seite (mit fancyhdr), Ränder neu anpassen

Sebastian Pipping 8 years ago
parent
commit
47241847d4
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      preislister/main.py

+ 9
- 5
preislister/main.py View File

@@ -57,11 +57,11 @@ if __name__ == '__main__':
57 57
 
58 58
 \usepackage[ngerman]{babel}
59 59
 \usepackage[utf8]{inputenc}
60
-\usepackage{fullpage}
61 60
 \usepackage{eurosym}
62 61
 \usepackage[table]{xcolor}
63
-\usepackage[hmargin=1cm,vmargin=1cm]{geometry}
62
+\usepackage[tmargin=2cm,bmargin=3cm]{geometry}
64 63
 \usepackage{longtable}
64
+\usepackage{fancyhdr}
65 65
 
66 66
 % No footskip
67 67
 \addtolength{\textheight}{\footskip}
@@ -77,9 +77,13 @@ if __name__ == '__main__':
77 77
 \definecolor{mygray}{RGB}{224,224,224}
78 78
 \renewcommand{\arraystretch}{1.2}
79 79
 
80
-\begin{document}\sffamily
81
-\noindent
82
-Stand \today\\[\baselineskip]
80
+\pagestyle{fancy}
81
+\renewcommand{\headrulewidth}{0pt}
82
+\fancyhf{}
83
+\fancyhead[EC,OC]{\sffamily Stand \today}
84
+
85
+
86
+\begin{document}%
83 87
 \rowcolors{2}{white}{mygray}
84 88
 \begin{longtable}{l@{\quad}rr}
85 89
 \textbf{Artikel} & \multicolumn{1}{c}{\textbf{Preis}} & \multicolumn{1}{c}{\textbf{Pfand}} \endhead

Loading…
Cancel
Save