diff --git a/pages/common/pandoc.md b/pages/common/pandoc.md index 7c831e62e..a5fdaca14 100644 --- a/pages/common/pandoc.md +++ b/pages/common/pandoc.md @@ -2,14 +2,18 @@ > 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}}` -- 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}}` +- 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`