-
Notifications
You must be signed in to change notification settings - Fork 1
/
formatting.py
56 lines (41 loc) · 1.63 KB
/
formatting.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
####################
# This module defines the LaTeX that will be written out by the generate_*.py
# scripts. As defined, this LaTeX assumes that various macros will be defined.
# Currently, the necessary macros are defined in handbook/preamble.tex.
####################
book_begin = r"""\documentclass[twoside,makeidx]{book}
%%%%%%%%%%%%%%%%%%%%
% WARNING: This file was generated automatically. It is likely that
% you will eventually have to modify it by hand, e.g. to add abstracts
% for invited speakers or other papers that were not in the ACLPUB db
% file. However, if you re-generate this file, you will overwrite any
% manual changes you have made. So do not start making manual edits
% until you are certain that everything has been generated correctly.
%%%%%%%%%%%%%%%%%%%%
\input{preamble}
\begin{document}
\frontmatter
\input{frontmatter}
\tableofcontents
\mainmatter
"""
day_heading_format = r"""\dayheading{{{title}}}
""".format
schedule_format = r"""\schedule{{
{items}}}
""".format
schedule_session_format = r"""\schedulesession{{{start}}}{{{end}}}{{{title}}}{{{location}}}
""".format
schedule_parallel_session_format = r"""\scheduleparallelsession{{{start}}}{{{end}}}{{{items}}}
""".format
schedule_parallel_session_item_format = r"""\scheduleparallelsessionitem{{{title}}}{{{location}}}
""".format
session_abstracts_format = r"""\sessionabstracts{{{title}}}{{{location}}}{{{chair}}}{{
{abstracts}}}
""".format
session_abstract_format = r"""\sessionabstract{{{day}}}{{{start}}}{{{end}}}{{{location}}}{{{title}}}{{{authors}}}{{{abstract}}}
""".format
session_abstract_separator = r"""\sessionabstractsep
"""
book_end = """\end{document}
"""