reference · English · cloud_pandoc

[Pandoc](https://pandoc.org) is a document converter, this pandoc cheat sheet contains pandoc commands and some common pandoc tricks.

title: Pandoc

查看 Markdown 源文件 下载 Markdown 返回文件列表


title: Pandoc date: 2023-03-21 13:26:00 background: bg-red-400 tags: - convert - document - utility categories: - Linux Command intro: | Pandoc is a document converter, this pandoc cheat sheet contains pandoc commands and some common pandoc tricks. plugins: - copyCode

Getting Started

Pandoc Usage

Syntax

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

Pandoc examples

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

Simple .tex to .docx

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

.tex to .docx with default citations

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

.tex to .docx with specific citations

$ 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

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

Get the filter pandoc-crossref from here

Also see {.cols-1}