1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pandoc.md

25 lines
888 B
Markdown
Raw Normal View History

2015-11-09 13:52:05 +01:00
# pandoc
> Convert documents between various formats.
2024-10-28 16:46:08 +11:00
> More information: <https://pandoc.org/MANUAL.html>.
2015-11-09 13:52:05 +01:00
- Convert file to PDF (the output format is determined by file extension):
2015-11-09 13:52:05 +01:00
`pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}`
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
`pandoc {{path/to/input.md}} {{[-s|--standalone]}} {{[-o|--output]}} {{path/to/output.html}}`
2024-10-28 16:46:08 +11:00
- Manually specify format detection and conversion (overriding automatic format detection using filename extension or when filename extension is missing altogether):
2018-10-24 16:46:08 -06:00
`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}`
2018-10-24 16:46:08 -06:00
- List all supported input formats:
`pandoc --list-input-formats`
- List all supported output formats:
`pandoc --list-output-formats`