@@ -55,9 +55,8 @@ If you want to write to a file, use the `-o` option:
5555
5656 pandoc -o hello.html hello.txt
5757
58−[^1]: The exception is for non-text output formats, such as `odt`
59− and `pdf`. For output in these formats, an output file must be
60− specified explicitly.
58+[^1]: The exception is for `odt`. Since this is a binary output format,
59+ an output file must be specified explicitly.
6160
6261Note that you can specify multiple input files on the command line.
6362`pandoc` will concatenate them all (with blank lines between them)
@@ -82,28 +81,16 @@ To convert `hello.html` from html to markdown:
8281 pandoc -f html -t markdown hello.html
8382
8483Supported output formats include `markdown`, `latex`, `context`
85−(ConTeXt), `pdf`, `html`, `rtf` (rich text format), `rst`
84+(ConTeXt), `html`, `rtf` (rich text format), `rst`
8685(reStructuredText), `docbook` (DocBook XML), `opendocument`
8786(OpenDocument XML), `odt` (OpenOffice text document), `texinfo`, (GNU
8887Texinfo), `mediawiki` (MediaWiki markup), `man` (groff man), and `s5`
8988(which produces an HTML file that acts like powerpoint).
9089
91−Notes:
92−
93−- For `odt` output, you must have `zip` in the path. If you
94− don't have it installed, you can get the free [Info-ZIP].
95−
96−- For `pdf` output, you must have `pdflatex` and `bibtex` in the
97− path. You should also have the following LaTeX packages installed:
98− `unicode`, `fancyhdr` (if you have verbatim text in footnotes),
99− `graphicx` (if you use images), `array` (if you use tables), and
100− `ulem` (if you use strikeout text). If they are not already included
101− in your LaTeX distribution, you can get them from [CTAN]. A full
102− [TeX Live] or [MacTeX] distribution will have all of these packages.
103−
104− [Info-ZIP]: http://www.info-zip.org/Zip.html
105− [TeX Live]: http://www.tug.org/texlive/
106− [MacTeX]: http://www.tug.org/mactex/
90+For `odt` output, you must have `zip` in the path. If you
91+don't have it installed, you can get the free [Info-ZIP].
92+
93+[Info-ZIP]: http://www.info-zip.org/Zip.html
10794
10895Supported input formats include `markdown`, `html`, `latex`, and `rst`.
10996Note that the `rst` reader only parses a subset of reStructuredText
@@ -148,12 +135,38 @@ then convert the output back to the local encoding.
148135Shell scripts
149136=============
150137
151−Two shell scripts, `html2markdown` and `hsmarkdown`, are included in
152−the standard Pandoc installation. (They are not included in the Windows
153−binary package, as they require a POSIX shell, but they may be used in
154−Windows under Cygwin.)
138+Three shell scripts, `markdown2pdf`, `html2markdown`, and `hsmarkdown`,
139+are included in the standard Pandoc installation. (They are not included
140+in the Windows binary package, as they require a POSIX shell, but they
141+may be used in Windows under Cygwin.)
142+
143+1. `markdown2pdf` produces a PDF file from markdown-formatted
144+ text, using `pandoc` and `pdflatex`. The default
145+ behavior of `markdown2pdf` is to create a file with the same
146+ base name as the first argument and the extension `pdf`; thus,
147+ for example,
148+
149+ markdown2pdf sample.txt endnotes.txt
150+
151+ will produce `sample.pdf`. (If `sample.pdf` exists already,
152+ it will be backed up before being overwritten.) An output file
153+ name can be specified explicitly using the `-o` option:
154+
155+ markdown2pdf -o book.pdf chap1 chap2
156+
157+ If no input file is specified, input will be taken from stdin.
158+ All of `pandoc`'s options will work with `markdown2pdf` as well.
159+
160+ `markdown2pdf` assumes that `pdflatex` is in the path. It also
161+ assumes that the following LaTeX packages are available:
162+ `unicode`, `fancyhdr` (if you have verbatim text in footnotes),
163+ `graphicx` (if you use images), `array` (if you use tables),
164+ and `ulem` (if you use strikeout text). If they are not already
165+ included in your LaTeX distribution, you can get them from
166+ [CTAN]. A full [TeX Live] or [MacTeX] distribution will have all of
167+ these packages.
155168
156−1. `html2markdown` grabs a web page from a file or URL and converts
169+2. `html2markdown` grabs a web page from a file or URL and converts
157170 it to markdown-formatted text, using `tidy` and `pandoc`.
158171
159172 All of `pandoc`'s options will work with `html2markdown` as well.
@@ -182,7 +195,7 @@ Windows under Cygwin.)
182195 It uses [`iconv`] for character encoding conversions; if `iconv`
183196 is absent, it will still work, but it will treat everything as UTF-8.
184197
185−2. `hsmarkdown` is designed to be used as a drop-in replacement for
198+3. `hsmarkdown` is designed to be used as a drop-in replacement for
186199 `Markdown.pl`. It forces `pandoc` to convert from markdown to
187200 HTML, and to use the `--strict` flag for maximal compliance with
188201 official markdown syntax. (All of Pandoc's syntax extensions and
@@ -202,6 +215,8 @@ Windows under Cygwin.)
202215[HTML Tidy]: http://tidy.sourceforge.net/
203216[`iconv`]: http://www.gnu.org/software/libiconv/
204217[CTAN]: http://www.ctan.org "Comprehensive TeX Archive Network"
218+[TeX Live]: http://www.tug.org/texlive/
219+[MacTeX]: http://www.tug.org/mactex/
205220
206221Command-line options
207222====================
@@ -227,7 +242,7 @@ For further documentation, see the `pandoc(1)` man page.
227242`-o` or `--output` *filename*
228243: sends output to *filename*. If this option is not specified,
229244 or if its argument is `-`, output will be sent to stdout.
230− (Exception: if the output format is `odt` or `pdf`, output to stdout
245+ (Exception: if the output format is `odt`, output to stdout
231246 is disabled.)
232247
233248`-p` or `--preserve-tabs`