|
|
7 лет назад | |
|---|---|---|
| .. | ||
| filters | 7 лет назад | |
| images | 7 лет назад | |
| README.md | 7 лет назад | |
| aastex62_template.tex | 7 лет назад | |
| aastex62_website_template.html | 7 лет назад | |
| demo.bib | 7 лет назад | |
| demo.md | 7 лет назад | |
| macros.tex | 7 лет назад | |
Generate a TeX file with:
pandoc demo.md -s --template aastex62_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --no-highlight --natbib
Go straight to the pdf with:
pandoc demo.md -s --template aastex62_template.tex -o demo.pdf -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --pdf-engine=xelatex --no-highlight
The demo.md file contains a sample article describing the use of this template in generating AASTeX output via pandoc.
\include{} or \input{} above the title. This is demonstrated in demo.md.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.In addition to TeX and PDF pandoc can output to a variety of formats and pandoc ships with default templates for each.
However, in order to take full advantage of the additional information contained in the YAML header, a custom template should be written.
A bare-bones example HTML template is provided in the aastex62_website_template.html file.
This, along with demo.md, can be converted to a HTML page with:
pandoc demo.md -s --template aastex62_website_template.html -o demo.html -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua
pandoc-citeproc does not have access to the correct citation style. Dealing with this is beyond the scope of this particular repository, but hopefully that spec will eventually be translated into Citation style language.