]> git.plutz.net Git - confetti/blob - templates/course_print.sh
stubs for therapy section
[confetti] / templates / course_print.sh
1 # Copyright 2014 - 2016 Paul Hänsch
2 #
3 # This file is part of Confetti.
4
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
17
18 . ${_EXEC}/templates/text_cards.sh
19
20 echo -E '
21 \documentclass[landscape,10pt]{article}
22 \usepackage[utf8]{inputenc}
23 \usepackage{ngerman}
24 \usepackage[landscape,margin=0.25in]{geometry}
25 \usepackage{longtable}
26
27 \begin{document}
28
29 \section*{Teilnehmende}
30 \begin{longtable}{|p{60mm}|l|p{50mm}|p{80mm}|}
31 \hline
32   \textbf{'"$(l10n N)"'} &
33   \textbf{'"$(l10n BDAY)"'} &
34   \textbf{'"$(l10n TEL)"'} &
35   \textbf{'"$(l10n NOTE)"'} \\
36 \hline
37 \hline
38 \endhead
39 '"$(
40 list_attendance "$course" |sort -k 2 |while read line; do
41   cardfile="$(echo "$line" |cut -d\  -f1)"
42   list_attendee "$cardfile" |sed -r 's:$:\\\\[3ex] \\hline:'
43 done
44 )"'
45 \end{longtable}
46
47 \newpage
48
49 \section*{Termine}
50 \begin{longtable}{|p{60mm}|c|c|c|c|c|c|c|c|c|c|}
51 \hline
52  '"$(get_dates)"' \\
53 \hline
54 \hline
55 \endhead
56 '"$(
57 list_attendance "$course" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:'
58 )"'
59 \end{longtable}
60
61 \end{document}
62 '