X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fcourse_print.sh;h=6f23b338f72ef1430d8d01bc8c637ef33356fa63;hp=78d214d8671f013dcdb54d5485c120aeb2021691;hb=281a2c8c9319bdd9bf6f4ca4cc1eebe89d1a5914;hpb=804ecf70ec21f803334b09cc223aedb41d51c610 diff --git a/templates/course_print.sh b/templates/course_print.sh index 78d214d..6f23b33 100644 --- a/templates/course_print.sh +++ b/templates/course_print.sh @@ -1,40 +1,62 @@ +# Copyright 2014 - 2015 Paul Hänsch +# +# This file is part of Confetti. +# +# Confetti is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Confetti is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Confetti. If not, see . + +. ${_EXEC}/templates/text_attendee.sh + echo -E ' \documentclass[landscape,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{ngerman} -\usepackage[landscape]{geometry} +\usepackage[landscape,margin=0.25in]{geometry} +\usepackage{longtable} \begin{document} \section*{Teilnehmende} -\begin{tabular}{|l|l|p{50mm}|p{80mm}|} +\begin{longtable}{|p{60mm}|l|p{50mm}|p{80mm}|} \hline - \textbf{Name} & - \textbf{Geburtstag} & - \textbf{Telefon} & - \textbf{Notiz} \\ + \textbf{'"$(l10n N)"'} & + \textbf{'"$(l10n BDAY)"'} & + \textbf{'"$(l10n TEL)"'} & + \textbf{'"$(l10n NOTE)"'} \\ \hline \hline +\endhead '"$( list_attendance "$course" |sort -k 2 |while read line; do cardfile="$(echo "$line" |cut -d\ -f1)" list_attendee "$cardfile" |sed -r 's:$:\\\\[3ex] \\hline:' done )"' -\end{tabular} +\end{longtable} \newpage \section*{Termine} -\begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|} +\begin{longtable}{|p{60mm}|c|c|c|c|c|c|c|c|c|c|} \hline '"$(get_dates)"' \\ \hline \hline +\endhead '"$( list_attendance "$course" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:' )"' -\end{tabular} +\end{longtable} \end{document} '