-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotokoll.cls
78 lines (69 loc) · 2.32 KB
/
protokoll.cls
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
% Custom minutes documentclass.
%
% TODO:
% - Make sure the document title is visible in the header (it
% used to work, something to do with encapsulating the title calls in
% macros?
% - Translate everything into english (or back to swedish)
% - A bit of documentation wouldn't hurt
% - Find a suitable license
% - Find a better way of specifying data to include than to redefine
% macros..
%
% Copyright Karl Mikaelsson <[email protected]> 2014
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{protokoll}[2014/03/16 Karl Mikaelsson <[email protected]>]
\LoadClassWithOptions{article} % We use the same options as article.
\RequirePackage{fancyhdr} % Headers and footers.
\RequirePackage{pdfpages} % Embed multi-page PDF, used for attachments
\RequirePackage{lastpage} % Page NN of MM
\newcommand{\protokollOrganization}{(set me by redefining \protokollOrganization)}
% Redefine \maketitle to exclude author, include organization.
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
{\Large \protokollOrganization \par}%
{\LARGE \@title \par}%
\vskip 1.5em%
{\large \@date}%
\end{center}%
\par
\vskip 1.5em}
% Define commands for fancyhdr setup, so we don't have to repeat
% ourselves, and so the user can override them if needed.
\newcommand{\protokollSignHere}{%
\ldots{}\ldots{}\ldots{}\ldots{}\ldots{}\ldots{}
}
\newcommand{\protokollFooter}{%
\vspace{1.5cm}
\begin{tabular}{cccc}
\protokollSignHere & \protokollSignHere & \protokollSignHere & \protokollSignHere \\
\small{name} & \small{name} & \small{name} & \small{name} \\
\small{\textit{title}} & \small{\textit{title}} & \small{\textit{title}} & \small{\textit{title}}
\end{tabular}}
\newcommand{\protokollFancyHdrSetup}{%
\fancyhf{}
\fancyhead[L]{\@title}
\fancyhead[C]{\protokollOrganization}
\fancyhead[R]{sida \thepage\ av \pageref{LastPage}}
\fancyfoot[C]{\protokollFooter}
\setlength{\headheight}{14pt}}
% Finally set up fancyhdr
\pagestyle{fancy}
\protokollFancyHdrSetup
% and redefine plain style so first page also gets the header/footer
\fancypagestyle{plain}{%
\protokollFancyHdrSetup
}
% \bilaga{label}{pdf file}
\newcommand{\bilaga}[2]{%
\pagebreak
\thispagestyle{empty}
\begin{center}
\section*{Bilaga: #1}
\label{bilaga:#1}
\end{center}
\pagebreak
\includepdf[pages=-]{#2}}