|
|
7 anni fa | |
|---|---|---|
| .. | ||
| filters | 7 anni fa | |
| README.md | 7 anni fa | |
| aa_template.tex | 7 anni fa | |
| demo-structured_abstract.md | 7 anni fa | |
| demo-traditional_abstract.md | 7 anni fa | |
| demo.bib | 7 anni fa | |
| macros.tex | 7 anni fa | |
Generate a tex file with:
pandoc demo-structured_abstract.md -s --template aa_template.tex -o demo-structured_abstract.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --natbib
Go straight to the pdf with:
pandoc demo-structured_abstract.md -s --template aa_template.tex -o demo-structured_abstract.pdf -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --pdf-engine=xelatex
There are two demonstration files containing sample articles:
demo-structured_abstract.md: A&A structured abstractdemo-traditional_abstract.md: A&A traditional abstractIf you want to include macros in anything contained within the YAML header, those must be put in a separate macro file that is incorporated via \include{} or \input{} above the title. This is demonstrated in demo.md.
To get references formatted for journals, first convert the Markdown to TeX (as demonstrated above) with the --natbib switch. The resulting TeX file can then be processed with pdflatex and bibtex as usual. The template is constructed in such a way that this will result in correctly formatted references (using the aa.bst file).
collaboration: entry in the YAML header. If a co-author that is not part of a listed collaboration is listed before co-authors that are part of collaborations, put nocollaboration: 1 in the YAML header to signify as such and avoid them being grouped with the later batch. See demo.md for an example.pandoc-citeproc does not have access to the correct citation style. This means that using pandoc to output directly to PDF will not result in the correct reference formatting. See above for a method to get PDF output with journal-compatible references.