\documentclass[10pt]{article} \usepackage{german} \usepackage{eurosym} \usepackage[a4paper, landscape=true, left=2cm, right=2cm, top=2cm]{geometry} \usepackage{icomma} \usepackage{longtable} \usepackage{color} \setlength{\parindent}{0pt} \begin{document} \subsection*{Kontoauszug $year} \begin{longtable}{|r|r|p{5cm}|r|r|r|p{3cm}|r|p{5cm}|} \hline \textcolor{blue}{\tt{id}} & \textcolor{blue}{\tt{date}} & \textcolor{blue}{\tt{description}} & \textcolor{blue}{\tt{amount}} & \textcolor{blue}{\tt{docNo}} & \textcolor{blue}{\tt{year}} & \textcolor{blue}{\tt{category}} & \textcolor{blue}{\tt{isRef}} & \textcolor{blue}{\tt{baseAccount}} \\ \hline \hline \endfirsthead \hline \textcolor{blue}{\tt{id}} & \textcolor{blue}{\tt{date}} & \textcolor{blue}{\tt{description}} & \textcolor{blue}{\tt{amount}} & \textcolor{blue}{\tt{docNo}} & \textcolor{blue}{\tt{year}} & \textcolor{blue}{\tt{category}} & \textcolor{blue}{\tt{isRef}} & \textcolor{blue}{\tt{baseAccount}} \\ \hline \hline \endhead \multicolumn{9}{r}{\em{to be continued}} \endfoot \endlastfoot #for $entry in $entries \tt{$entry['id']} & \tt{$entry['created_at']} & \tt{$entry['description']} & #slurp #if $entry['amount'] <= 0 \textcolor{red}{#slurp #end if \tt{$entry['amount']}#slurp #if $entry['amount'] <= 0 }#slurp #end if & \tt{$entry['document_no']} & \tt{$entry['fiscal_year']} & \tt{$entry['category']} & \tt{$entry['is_reference']} & \tt{{$entry['base_account'].replace('_', ' ') }} \\ \hline #end for \end{longtable} \end{document}