The source of this document is written in markdown (file paper.md) and translated to latex using pandoc and customized templates located in the templates folder. References are stored in references.bib in bibtex format.
The Makefile.template file details how the translation works.
There is a convenience script build.py that creates a Makefile from Makefile.template that is consistent with the desired template as specified in the template field in the markdown-header. All supported templates are listed in conf.py. Which template to use is specified in the header of the .md-file using the template: field. If the template is not changed, build.py does not need to be rerun but simply calling make will suffice. It is also possible to specify the desired template on the command-line using the -t <template name> option. See python build.py -h for details. Note, however, that not all variables are implemented for all templates.
If you are on linux, simply calling make in the parent directory will compile the report to a pdf-format if all dependencies are installed.
Preview of templates
Supported templates
This is a list of all supported templates along with a list of all variables defined for each template. It is generated using tools/templatevar.py and may or may not be outdated.
usage: build.py [-h] [-t TEMPLATE] [-b] mdfile
positional arguments:
mdfile
optional arguments:
-h, --help show this help message and exit
-t TEMPLATE, --template TEMPLATE
template to use for translation
-b, --build-makefile-only
build Makefile only or also run latex?
NOTE: paper.md contains example code for tables, figures, equations, references and so on.
请发表评论