]> git.plutz.net Git - confetti/blob - templates/course_print.sh
enabled dynamic navigation links
[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[utf8x]{inputenc}
23 \usepackage{ngerman}
24 \usepackage{eurosym}
25 \usepackage[landscape,margin=0.25in]{geometry}
26 \usepackage{longtable}
27
28 \begin{document}
29
30 \section*{Teilnehmende}
31 \begin{longtable}{|p{60mm}|l|p{50mm}|p{80mm}|}
32 \hline
33   \textbf{'"$(l10n N)"'} &
34   \textbf{'"$(l10n BDAY)"'} &
35   \textbf{'"$(l10n TEL)"'} &
36   \textbf{'"$(l10n NOTE)"'} \\
37 \hline
38 \hline
39 \endhead
40 '"$(
41 list_attendance "$course" |sort -k 2 |while read line; do
42   cardfile="$(echo "$line" |cut -d\  -f1)"
43   list_attendee "$cardfile" |sed -r 's:$:\\\\[3ex] \\hline:'
44 done
45 )"'
46 \end{longtable}
47
48 \newpage
49
50 \section*{Termine}
51 \begin{longtable}{|p{60mm}|c|c|c|c|c|c|c|c|c|c|}
52 \hline
53  '"$(get_dates)"' \\
54 \hline
55 \hline
56 \endhead
57 '"$(
58 tex_clean "$(list_attendance "$course")" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:'
59 )"'
60 \end{longtable}
61
62 \end{document}
63 '