From 37328a768c120b86fe86147a83bd578fd4e8cc7d Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 6 Jul 2022 17:47:55 -0700 Subject: [PATCH] pandoc-make: more usage examples --- .config/shell/bin/pandoc-make | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.config/shell/bin/pandoc-make b/.config/shell/bin/pandoc-make index fa6f553..8bc6a07 100755 --- a/.config/shell/bin/pandoc-make +++ b/.config/shell/bin/pandoc-make @@ -8,11 +8,14 @@ usage() { SCRIPT="${0##*/}" cat <<-EOF Usage: - $SCRIPT [output_type] [pandoc_args for file 1] [pandoc_args for file 1] [input_files] + $SCRIPT [output_type] [pandoc_args] [for] [file] [1] [file 1] [pandoc_args] [for] [file] [2] [file 2] Examples: - $SCRIPT pdf *.md - $SCRIPT .docx *.md # leading .'s are automatically removed from the output format + $SCRIPT html README.md # basic markdown to html + $SCRIPT .pdf *.tex # leading .'s are automatically removed from the output file format + $SCRIPT .pdf \\ + --pdf-engine pdflatex report.tex \\ + --pdf-engine pdflatex README.md # generates README.pdf and report.pdf with pdflatex Notes: 1) To put a file in pandoc arguments without having it be compiled to its