Use this as a template for writing your paper. It will automatically build a cool HTML that contains all your citations like here.
- Install pandoc (prerequisite!)
- Use this repo as template (!= fork)
- Copy
pre-commit
into your.git/hooks
folder - Write your paper (in
paper.md
) - Add citations by adding
- the book/article/.. you cite in bibliography.bib
- [@citation_handle] in your text
- Make a git commit. (The pre-commit hook will generate your HTML automatically.)
- If you want to rename
paper.md
, rename it's reference in.git/hooks/pre-commit
as well - If you want to generate your HTML without commiting, execute
pandoc --citeproc paper.md -s --shift-heading-level-by=1 -o index.html
- If you want your paper to be accessible as a website, activate Github Pages by going to Settings -> GitHub Pages and selecting Master as source branch
- If the links in your table of contents in the generated HTML don't work, check if they start with a number. If they do, remove the numbers and use an ordered list instead.
- If you want to generate a PDF out of that markdown, ensure you have a pdfEngine installed (e.g. MacTex by
brew cask install mactex
), then delete your table of contents from the markdown (it will be generated) and executepandoc --citeproc --toc paper.md -o paper.pdf
Tooling proposals:
- Visual Studio Code
- VSC Extensions
- Pandoc Citer
- Markdown All in One
- Required to auto-generate the table of contents on saving
- Set the feature "Toc: Ordered List" to true by opening Preferences -> Settings -> Extensions to avoid broken links in table of contents.
- bibtexLanguage