]> git.plutz.net Git - confetti/blob - templates/course_print.sh
stylebug, make "+"-field appear next to newfield button in edit attendee
[confetti] / templates / course_print.sh
1 # Copyright 2014 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 echo -E '
19 \documentclass[landscape,10pt]{article}
20 \usepackage[utf8]{inputenc}
21 \usepackage{ngerman}
22 \usepackage[landscape]{geometry}
23
24 \begin{document}
25
26 \section*{Teilnehmende}
27 \begin{tabular}{|l|l|p{50mm}|p{80mm}|}
28 \hline
29   \textbf{Name} &
30   \textbf{Geburtstag} &
31   \textbf{Telefon} &
32   \textbf{Notiz} \\
33 \hline
34 \hline
35 '"$(
36 list_attendance "$course" |sort -k 2 |while read line; do
37   cardfile="$(echo "$line" |cut -d\  -f1)"
38   list_attendee "$cardfile" |sed -r 's:$:\\\\[3ex] \\hline:'
39 done
40 )"'
41 \end{tabular}
42
43 \newpage
44
45 \section*{Termine}
46 \begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|}
47 \hline
48  '"$(get_dates)"' \\
49 \hline
50 \hline
51 '"$(
52 list_attendance "$course" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:'
53 )"'
54 \end{tabular}
55
56 \end{document}
57 '