2015-11-09 12:52:05 +00:00
|
|
|
# pandoc
|
|
|
|
|
2016-11-09 11:24:52 +00:00
|
|
|
> Convert documents between various formats.
|
2019-06-04 10:00:18 +01:00
|
|
|
> More information: <https://pandoc.org>.
|
2015-11-09 12:52:05 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Convert file to PDF (the output format is determined by file extension):
|
2015-11-09 12:52:05 +00:00
|
|
|
|
2015-11-25 07:51:55 +00:00
|
|
|
`pandoc {{input.md}} -o {{output.pdf}}`
|
2016-11-09 11:24:52 +00:00
|
|
|
|
2018-10-24 23:46:08 +01:00
|
|
|
- Force conversion to use a specific format:
|
2016-11-09 11:24:52 +00:00
|
|
|
|
2019-10-31 23:30:01 +00:00
|
|
|
`pandoc {{input.docx}} --to {{gfm}} -o {{output.md}}`
|
2016-11-09 11:24:52 +00:00
|
|
|
|
2018-10-24 23:46:08 +01:00
|
|
|
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
|
|
|
|
|
|
|
|
`pandoc {{input.md}} -s -o {{output.tex}}`
|
|
|
|
|
2016-11-09 13:00:29 +00:00
|
|
|
- List all supported input formats:
|
2016-11-09 11:24:52 +00:00
|
|
|
|
2016-11-09 13:00:29 +00:00
|
|
|
`pandoc --list-input-formats`
|
|
|
|
|
|
|
|
- List all supported output formats:
|
|
|
|
|
|
|
|
`pandoc --list-output-formats`
|