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##*/}"
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue