mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
pandoc: update page (#16110)
This commit is contained in:
parent
8a2ee74630
commit
af94db1ab6
1 changed files with 11 additions and 3 deletions
|
@ -3,17 +3,25 @@
|
|||
> Convert documents between various formats.
|
||||
> More information: <https://pandoc.org/MANUAL.html>.
|
||||
|
||||
- Convert file to PDF (the output format is determined by file extension):
|
||||
- Convert a Markdown file to PDF using `pdflatex` (the formats are determined by file extensions):
|
||||
|
||||
`pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}`
|
||||
|
||||
- Convert a Markdown file to PDF using the specified PDF engine:
|
||||
|
||||
`pandoc {{path/to/input.md}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-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}}`
|
||||
|
||||
- Manually specify format detection and conversion (overriding automatic format detection using filename extension or when filename extension is missing altogether):
|
||||
- Manually specify formats (overriding automatic format detection using the filename extension, or when there is no extension):
|
||||
|
||||
`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}`
|
||||
`pandoc {{[-f|--from]}} {{docx|...}} {{path/to/input}} {{[-t|--to]}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}`
|
||||
|
||||
- Transform a document using a Lua script (see <https://pandoc.org/lua-filters.html> for more information):
|
||||
|
||||
`pandoc {{path/to/input}} {{[-L|--lua-filter]}} {{path/to/filter.lua}} {{[-o|--output]}} {{path/to/output}}`
|
||||
|
||||
- List all supported input formats:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue