pandoc-make: more usage examples

This commit is contained in:
PowerUser64 2022-07-06 17:47:55 -07:00
parent 5ca146ef9e
commit 37328a768c

View file

@ -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