pandoc-make: more usage examples
This commit is contained in:
parent
5ca146ef9e
commit
37328a768c
1 changed files with 6 additions and 3 deletions
|
@ -8,11 +8,14 @@ usage() {
|
||||||
SCRIPT="${0##*/}"
|
SCRIPT="${0##*/}"
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
Usage:
|
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:
|
Examples:
|
||||||
$SCRIPT pdf *.md
|
$SCRIPT html README.md # basic markdown to html
|
||||||
$SCRIPT .docx *.md # leading .'s are automatically removed from the output format
|
$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:
|
Notes:
|
||||||
1) To put a file in pandoc arguments without having it be compiled to its
|
1) To put a file in pandoc arguments without having it be compiled to its
|
||||||
|
|
Loading…
Add table
Reference in a new issue