-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathhead.tex.in
46 lines (38 loc) · 1.15 KB
/
head.tex.in
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
\documentclass[paper=A4,landscape,fontsize=20pt]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[OT1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[landscape]{geometry}
\usepackage{tabularx}
\usepackage{array}
\usepackage{colortbl}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{setspace}
\renewcommand*\familydefault{\sfdefault}
% setup for A4
\areaset{27.6cm}{20cm}
\pagestyle{empty}
% highlight color for the sunday column
\definecolor{socol}{rgb}{1.0,0,0}
\definecolor{special}{rgb}{0,0,1.0}
% don't change the following two lines if you want to use
% one of the predefined headings.
\newsavebox\TBox
\sbox\TBox{%year%}
% month heading design
\newcommand{\monthhead}[2]{%
{\hspace{-6mm}\resizebox{!}{\wd\TBox}{%
#2}\hfill\resizebox{!}{\wd\TBox}{#1}\\[5mm]}}
%% alternate month heading design, uncomment this
%\newcommand{\monthhead}[2]{%
%\begin{flushright}\rotatebox{90}{#2}\hspace{3mm}%
%\resizebox{!}{\wd\TBox}{#1}\\[5mm]%
%\end{flushright}}
\newcolumntype{D}[1]{>{\raggedright\arraybackslash}p{3.5cm}|}
\newenvironment{calmonth}[2]{%
\monthhead{#1}{#2}%
\begin{tabular}{|*{7}{D|}}}
{\end{tabular}\newpage}
\begin{document}