X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fcourse_print.sh;fp=templates%2Fcourse_print.sh;h=0000000000000000000000000000000000000000;hp=72ab8b803c7014ffdbf3ec7d9b77c54696c9caf7;hb=43e7c60df0632fd383306a2d3c6dc8c4213d4b9d;hpb=d40eb749c3b9766eb85d843e712f1b86543232d2 diff --git a/templates/course_print.sh b/templates/course_print.sh deleted file mode 100755 index 72ab8b8..0000000 --- a/templates/course_print.sh +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2014 - 2016 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_cards.sh - -echo -E ' -\documentclass[landscape,10pt]{article} -\usepackage[utf8x]{inputenc} -\usepackage{ngerman} -\usepackage{eurosym} -\usepackage[landscape,margin=0.25in]{geometry} -\usepackage{longtable} - -\begin{document} - -\section*{Teilnehmende} -\begin{longtable}{|p{60mm}|l|p{50mm}|p{80mm}|} -\hline - \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{longtable} - -\newpage - -\section*{Termine} -\begin{longtable}{|p{60mm}|c|c|c|c|c|c|c|c|c|c|} -\hline - '"$(get_dates)"' \\ -\hline -\hline -\endhead -'"$( -tex_clean "$(list_attendance "$course")" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:' -)"' -\end{longtable} - -\end{document} -'