mirror of https://github.com/CrimsonTome/tldr.git
pandoc: add example (#2483)
parent
8ad9792a96
commit
bfc713630f
|
@ -2,14 +2,18 @@
|
||||||
|
|
||||||
> Convert documents between various formats.
|
> Convert documents between various formats.
|
||||||
|
|
||||||
- Convert file to pdf (the output format is automatically determined from the output file's extension):
|
- Convert file to pdf (the output format is determined by file extension):
|
||||||
|
|
||||||
`pandoc {{input.md}} -o {{output.pdf}}`
|
`pandoc {{input.md}} -o {{output.pdf}}`
|
||||||
|
|
||||||
- Convert a file to a specific output format (useful for when the extension alone is ambiguous):
|
- Force conversion to use a specific format:
|
||||||
|
|
||||||
`pandoc {{input.docx}} --to {{markdown_github}} -o {{output.md}}`
|
`pandoc {{input.docx}} --to {{markdown_github}} -o {{output.md}}`
|
||||||
|
|
||||||
|
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
|
||||||
|
|
||||||
|
`pandoc {{input.md}} -s -o {{output.tex}}`
|
||||||
|
|
||||||
- List all supported input formats:
|
- List all supported input formats:
|
||||||
|
|
||||||
`pandoc --list-input-formats`
|
`pandoc --list-input-formats`
|
||||||
|
|
Loading…
Reference in New Issue