source: remit/remit_templates/vouchers/vouchers.tex @ dcaa9c0

client
Last change on this file since dcaa9c0 was dcaa9c0, checked in by Alex Dehnert <adehnert@…>, 15 years ago

Generate LaTeX source of all the vouchers

  • Property mode set to 100644
File size: 1.1 KB
Line 
1{% load latex %}
2{% autoescape off %}
3\documentclass{mitvoucher}
4
5\signatoryemail{esp-treasurer@mit.edu}
6
7\begin{document}
8
9\begin{tabular}{r|l|l|r|p{2in}}
10Account & Name & Email & Amount & Description \\
11{% for f in vouchers %}
12{{f.account|texescape}} &
13{{f.first_name|texescape}} {{f.last_name|texescape}} & 
14{{f.email_address|texescape}} &
15{{f.amount|texescape}} &
16{{f.description}} \\
17{% endfor %}
18\end{tabular}
19
20{% for f in vouchers %}
21\begin{voucher}
22\groupname{ {{f.group_name|texescape}} }
23\costobject{ {{f.account|texescape}} }
24\signatory{ {{f.signatory|texescape}} }
25\bycheck{}
26\payablefirst{ {{f.first_name|texescape}} }
27\payablelast{ {{f.last_name|texescape}} }
28\email{ {{f.email_address|texescape}} }
29{% if f.mailing_addr_lines.0 %}\mailone{ {{f.mailing_addr_lines.0|texescape}} }
30{% endif %}{% if f.mailing_addr_lines.1 %}\mailtwo{ {{f.mailing_addr_lines.1|texescape}} }
31{% endif %}{% if f.mailing_addr_lines.2 %}\mailthree{ {{f.mailing_addr_lines.2|texescape}} }
32{% endif %}\amt{\${{f.amount|texescape}} }
33\desc{
34{{f.description|texescape}}
35}
36\gl{ {{f.gl|texescape}} }
37\end{voucher}
38{% endfor %}
39
40\end{document}
41{% endautoescape %}
Note: See TracBrowser for help on using the repository browser.