Skip to content

Pandoc

Getting Started

Pandoc Usage

Syntax

Terminal window
$ pandoc -s [source file] -o [output file]

Pandoc examples

LaTeX to MS Word {.col-span-2}

Simple .tex to .docx

Terminal window
$ pandoc -s file.tex -o file.docx

.tex to .docx with default citations

Terminal window
$ pandoc -s file.tex --citeproc --bibliography=bib_library.bib -o file.docx

.tex to .docx with specific citations

Terminal window
$ pandoc -s file.tex --citeproc --bibliography=bib_library.bib --csl=apa.csl -o file.docx

Get .csl file from here

.tex to .docx with cross references

Terminal window
$ pandoc -s file.tex --filter pandoc-crossref -o file.docx

Get the filter pandoc-crossref from here

Also see {.cols-1}