diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-21 17:22:12 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-21 17:22:12 -0800 |
commit | 0a768f1cc568722973302554265efa414d097da3 (patch) | |
tree | d1ed3391ec43848ce1ff163977c4064f5329893c /README | |
parent | 32d27896cde18de187be3f8a9e7f9c4ef79b58b3 (diff) |
Added preliminary support for PDF creation via wkhtmltopdf.
To use this:
pandoc -t html5 -o result.pdf
(and add `--mathjax` if you have math.)
Diffstat (limited to 'README')
-rw-r--r-- | README | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -24,7 +24,7 @@ markup], [Haddock markup], [OPML], [Emacs Org mode], [DocBook], [FictionBook2], [Textile], [groff man] pages, [Emacs Org mode], [AsciiDoc], [InDesign ICML], and [Slidy], [Slideous], [DZSlides], [reveal.js] or [S5] HTML slide shows. It can also produce [PDF] output -on systems where LaTeX or ConTeXt is installed. +on systems where LaTeX, ConTeXt, or `wkhtmltopdf` is installed. Pandoc's enhanced version of Markdown includes syntax for [footnotes], [tables], flexible [ordered lists], [definition lists], [fenced code blocks], @@ -189,12 +189,13 @@ any header file. The [`natbib`], [`biblatex`], [`bibtex`], and [`biber`] packages can optionally be used for [citation rendering]. These are included with all recent versions of [TeX Live]. -Alternatively, pandoc can use ConTeXt to create a PDF. +Alternatively, pandoc can use ConTeXt or `wkhtmltopdf` to create a PDF. To do this, specify an output file with a `.pdf` extension, -as before, but add `-t context` to the command line. +as before, but add `-t context` or `-t html5` to the command line. -PDF output can be controlled using [variables for LaTeX] -or [variables for ConTeXt]. +PDF output can be controlled using [variables for LaTeX] (if +LaTeX is used), [variables for ConTeXt] (if ConTeXt is used), +and `--css` (if `wkhtmltopdf` is used). [`amsfonts`]: https://ctan.org/pkg/amsfonts [`amsmath`]: https://ctan.org/pkg/amsmath |