2007-07-21 22:36:08 +02:00
|
|
|
% MARKDOWN2PDF(1) Pandoc User Manuals
|
2007-07-02 01:26:20 +02:00
|
|
|
% John MacFarlane and Recai Oktas
|
|
|
|
% June 30, 2007
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
markdown2pdf - converts markdown-formatted text to PDF, using pdflatex
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2007-07-02 04:16:58 +02:00
|
|
|
markdown2pdf [*options*] [*input-file*]...
|
2007-07-02 01:26:20 +02:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
`markdown2pdf` converts *input-file* (or text from standard
|
|
|
|
input) from markdown-formatted plain text to PDF, using `pdflatex`.
|
|
|
|
If no output filename is specified (using the `-o` option),
|
|
|
|
the name of the output file is derived from the input file; thus, for
|
|
|
|
example, if the input file is *hello.txt*, the output file will be
|
|
|
|
*hello.pdf*. If the input is read from STDIN and no output filename
|
|
|
|
is specified, the output file will be named *stdin.pdf*. If multiple
|
|
|
|
input files are specified, they will be concatenated before conversion,
|
|
|
|
and the name of the output file will be derived from the first input file.
|
|
|
|
|
|
|
|
Input is assumed to be in the UTF-8 character encoding. If your
|
|
|
|
local character encoding is not UTF-8, you should pipe input and
|
|
|
|
output through `iconv`:
|
|
|
|
|
|
|
|
iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
|
|
|
|
|
2007-07-28 21:16:58 +02:00
|
|
|
`markdown2pdf` assumes that the `unicode`, `array`, `fancyvrb`,
|
|
|
|
`graphicx`, and `ulem` packages are in latex's search path. If these
|
|
|
|
packages are not included in your latex setup, they can be obtained from
|
|
|
|
<http://ctan.org>.
|
2007-07-02 01:26:20 +02:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
`markdown2pdf` is a wrapper around `pandoc`, so all of
|
|
|
|
`pandoc`'s options can be used with `markdown2pdf` as well.
|
|
|
|
See `pandoc`(1) for a complete list.
|
|
|
|
The following options are most relevant:
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
-o *FILE*, \--output=*FILE*
|
2007-07-02 01:26:20 +02:00
|
|
|
: Write output to *FILE*.
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
\--strict
|
2007-07-02 01:26:20 +02:00
|
|
|
: Use strict markdown syntax, with no extensions or variants.
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
-N, \--number-sections
|
2007-07-02 01:26:20 +02:00
|
|
|
: Number section headings in LaTeX output. (Default is not to number them.)
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
-H *FILE*, \--include-in-header=*FILE*
|
2007-07-02 01:26:20 +02:00
|
|
|
: Include (LaTeX) contents of *FILE* at the end of the header. Implies
|
|
|
|
`-s`.
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
-B *FILE*, \--include-before-body=*FILE*
|
2007-07-02 01:26:20 +02:00
|
|
|
: Include (LaTeX) contents of *FILE* at the beginning of the document body.
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
-A *FILE*, \--include-after-body=*FILE*
|
2007-07-02 01:26:20 +02:00
|
|
|
: Include (LaTeX) contents of *FILE* at the end of the document body.
|
|
|
|
|
2007-07-08 05:31:26 +02:00
|
|
|
-C *FILE*, \--custom-header=*FILE*
|
2007-07-02 01:26:20 +02:00
|
|
|
: Use contents of *FILE*
|
|
|
|
as the LaTeX document header (overriding the default header, which can be
|
|
|
|
printed using `pandoc -D latex`). Implies `-s`.
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
`pandoc`(1), `pdflatex`(1)
|