forked from Cadynum/dtek-tex
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dtekprotokoll.cls
140 lines (117 loc) · 2.87 KB
/
dtekprotokoll.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
% vim: set ft=tex:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{dtekprotokoll}[2013/04/07 Datateknologsektionen Chalmers]
\newif\iftwojust
\twojustfalse
\DeclareOption{twojust}{\twojusttrue}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{dtek}
}
\ProcessOptions\relax
\LoadClass{dtek}
\RequirePackage{tocloft}
\DeclareDocumentCommand \motesnummer {m} {%
\DeclareDocumentCommand \@motesnummer {}{#1}
}
\DeclareDocumentCommand \verksamhetsar {m} {%
\DeclareDocumentCommand \@verksamhetsar {}{#1}
}
\DeclareDocumentCommand \start {m} {%
\DeclareDocumentCommand \@start {}{#1}
}
\DeclareDocumentCommand \plats {m} {%
\DeclareDocumentCommand \@plats {}{#1}
}
\NewDocumentCommand \funktionar {ommm} {%
\IfNoValueTF {#1}
{}
{\global\expandafter\def\csname #1\endcsname{#3}}
#2 & #3 & #4\\
}
\DeclareDocumentEnvironment {funktionarer} {} {%
\begin{tabular}{l l l}
\itshape Funktion & \itshape Namn & \itshape E-mail/CID\\
}{%
\end{tabular}
}
%%% Beslutslogg %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlistof{beslut}{beslut}{Lista över beslut}
\DeclareDocumentCommand \beslut {m} {%
\refstepcounter{beslut}
\addcontentsline{beslut}{beslut}{#1}
\leavevmode\marginnote{Beslut}#1%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareDocumentCommand \anm {m} {%
\leavevmode\marginnote{Anm.}#1%
}
\DeclareDocumentCommand \marginnote {m} {%
\marginpar{\small{\textbf{#1}}}%
}
\DeclareDocumentCommand \maketitle {} {%
{\centering \bf{\LARGE{\@title\ \@date}}\par}
Kl: \@start\\
Mötesnummer: \@motesnummer\ - \@verksamhetsar\\
Plats: \@plats
}
\newlistof{bilagor}{bil}{Bilagor}
% \makebilaga{kortnamn}{Ett längre namn}{filnamn}
\DeclareDocumentCommand \makebilaga {m m m}{%
\includepdf[ pages=-
, addtolist={1,bilagor,#2,bil:#1}
]{#3}
}
% \bilaga{kortnamn} Referera till en bilaga
\DeclareDocumentCommand \bilaga {m}{%
\hyperref[bil:#1]{bilaga \ref*{bil:#1}}%
}
\DeclareDocumentCommand \makesigns {m m o o} {%
\parbox{\textwidth}{%
\vspace{1cm}
\makesign{Sekreterare #1}
\makesign{Mötesordförande #2}
\IfValueTF{#3}{%
\makesign{Justerare #3}
}{}
\IfValueTF{#4}{%
\makesign{Justerare #4}
}{}
}
}
\RenewDocumentCommand \makeheadfoot {}{%
\makehf
\cfoot{%
\vspace{0.55cm}
\parbox{26pt}{%
\centering
\rule{25pt}{0.5pt}\\
Sekr.
}
\hspace{1pt}
\parbox{26pt}{%
\centering
\rule{25pt}{0.5pt}\\
Ordf.
}
\hspace{1pt}
\iftwojust
\parbox{54pt}{%
\centering
\rule{25pt}{0.5pt}\hspace{4pt}\rule{25pt}{0.5pt}\\
Justerare
}
\else
\parbox{26pt}{%
\centering
\rule{25pt}{0.5pt}\\
Just.
}
\fi
}
\rhead{%
Sidan \thepage\ av \pageref{LastPage}\\
\@date \\
Mötesnr. \@motesnummer\ - \@verksamhetsar
}
}
\endinput