From bfc713630f72897ebe43defbd6e9b6f58511da37 Mon Sep 17 00:00:00 2001 From: kalebo Date: Wed, 24 Oct 2018 16:46:08 -0600 Subject: [PATCH] pandoc: add example (#2483) --- pages/common/pandoc.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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`