Useful Pandoc Commands

Get Current Templates

pandoc --print-default-template=markdown > pandoc-template.md
pandoc --print-default-template=latex>pandoc-template.tex

simple markdown to pdf

pandoc input-file.md -s -t latex+smart --citeproc --pdf-engine=xelatex --no-highlight -o output-file.pdf

See variables for latex and metadata variables for all variables.

summary: ""
---
title: Syllabus for Foldable Robotics 
subtitle: Version 2020-12-31
author: Daniel M. Aukes
date: Spring 2021
published: false
mainfont: Roboto
sansfont: Roboto
geometry: margin=1in
summary: ""
---

Reference docs

pandoc -o custom-reference.docx --print-default-data-file reference.docx
pandoc -o custom-reference.odt --print-default-data-file reference.odt

Code Highlighting

pandoc does not implement revealjs themes, but there is information about it here:

https://revealjs.com/code/

https://highlightjs.org/demo

pandoc --list-highlight-languages
pandoc --list-highlight-styles
pandoc --print-highlight-style pygments > my.theme
pandoc --highlight-style my.theme

To disable highlighting, use the --no-highlight option.

https://pandoc.org/chunkedhtml-demo/13-syntax-highlighting.html https://pygments.org/docs/styles/

Automation

Creating books