mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 06:02:30 +00:00
Update cheatsheets
This commit is contained in:
29
pandoc
Normal file
29
pandoc
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pandoc
|
||||
|
||||
> Convert documents between various formats.
|
||||
> More information: <https://pandoc.org>.
|
||||
|
||||
- Convert file to PDF (the output format is determined by file extension):
|
||||
|
||||
`pandoc {{input.md}} -o {{output.pdf}}`
|
||||
|
||||
- Force conversion to use a specific format:
|
||||
|
||||
`pandoc {{input.docx}} --to {{gfm}} -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:
|
||||
|
||||
`pandoc --list-input-formats`
|
||||
|
||||
- List all supported output formats:
|
||||
|
||||
`pandoc --list-output-formats`
|
||||
Reference in New Issue
Block a user