]> git.plutz.net Git - confetti/blobdiff - templates/course_print.sh
apply tex escaping
[confetti] / templates / course_print.sh
index 6f23b338f72ef1430d8d01bc8c637ef33356fa63..72ab8b803c7014ffdbf3ec7d9b77c54696c9caf7 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 - 2015 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
-. ${_EXEC}/templates/text_attendee.sh
+. ${_EXEC}/templates/text_cards.sh
 
 echo -E '
 \documentclass[landscape,10pt]{article}
-\usepackage[utf8]{inputenc}
+\usepackage[utf8x]{inputenc}
 \usepackage{ngerman}
+\usepackage{eurosym}
 \usepackage[landscape,margin=0.25in]{geometry}
 \usepackage{longtable}
 
@@ -54,7 +55,7 @@ done
 \hline
 \endhead
 '"$(
-list_attendance "$course" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:'
+tex_clean "$(list_attendance "$course")" |sort -k 2 | debug |sed -r 's:^[0-9a-z\.]+ (.+) \(\*[0-9]{4}\)$:\1:;s:$: \& \& \& \& \& \& \& \& \& \& \\\\[3ex] \\hline:'
 )"'
 \end{longtable}