git.iko.soy/typeable/pandoc
on 1.3 help sign in
108 lines 2.9 kB history raw
1% Pandoc examples
3To see the output created by each of the commands below,
4click on the name of the output file:
61. HTML fragment:
8@ pandoc @@README@@ -o @@example1.html@@
102. Standalone HTML file:
12@ pandoc -s @@README@@ -o @@example2.html@@
143. HTML with smart quotes, table of contents, CSS, and custom footer:
16@ pandoc -s -S --toc -c @@pandoc.css@@ -A @@footer.html@@ @@README@@ -o @@example3.html@@
184. LaTeX:
20@ pandoc -s @@README@@ -o @@example4.tex@@
225. From LaTeX to markdown:
24@ pandoc -s @@example4.tex@@ -o @@example5.text@@
266. reStructuredText:
28@ pandoc -s -w rst --toc @@README@@ -o @@example6.text@@
307. Rich text format (RTF):
32@ pandoc -s @@README@@ -o @@example7.rtf@@
348. S5 HTML slide show (all in one file):
36@ pandoc -s -m -i -w s5 @@S5DEMO@@ -o @@example8.html@@
389. DocBook XML:
40@ pandoc -s -S -w docbook @@README@@ -o @@example9.db@@
42 Chunked XHTML via DocBook and [xmlto]:
44@ xmlto xhtml -m @@config.xsl@@ @@example9.db@@ -o @@example9/@@
4610. Man page:
48@ pandoc -s -w man @@pandoc.1.md@@ -o @@example10.1@@
5011. ConTeXt:
52@ pandoc -s -w context @@README@@ -o @@example11.tex@@
54 PDF via pandoc and ConTeXt's `texexec`:
56@ texexec --pdf @@example11.tex@@ # produces @@example11.pdf@@
5812. Converting a web page to markdown:
60@ html2markdown @@http://www.gnu.org/software/make/@@ -o @@example12.text@@
6213. From markdown to PDF:
64@ markdown2pdf @@README@@ -o @@example13.pdf@@
6614. PDF with numbered sections and a custom LaTeX header:
68@ markdown2pdf -N -C @@myheader.tex@@ @@README@@ -o @@example14.pdf@@
70[xmlto]: http://cyberelk.net/tim/xmlto/
7215. A wiki program using [Happstack](http://happstack.com) and pandoc:
73 [gitit](http://gitit.net)
7516. A web application that uses pandoc to convert web pages to any of eight different
76 formats: [html2x](html2x.html).
7817. TeX math in HTML:
80@ pandoc @@math.text@@ -s -o @@mathDefault.html@@
81@ pandoc @@math.text@@ -s -m -o @@mathAsciimathml.html@@
82@ pandoc @@math.text@@ -s --mimetex=/cgi-bin/mimetex.cgi -o @@mathMimetex.html@@
83@ pandoc @@math.text@@ -s --gladtex -o mathGladtex.htex
84@ gladtex @@mathGladtex.htex@@ # produces @@mathGladtex.html@@
8618. Syntax highlighting of delimited code blocks:
88@ pandoc @@code.text@@ -s -o @@example18.html@@
9019. GNU Texinfo, converted to info, HTML, and PDF formats:
92@ pandoc @@README@@ -s -o @@example19.texi@@
93@ makeinfo @@example19.texi@@ -o @@example19.info@@
94@ makeinfo @@example19.texi@@ --html -o @@example19@@
95@ texi2pdf @@example19.texi@@ # produces @@example19.pdf@@
9720. OpenDocument XML:
99@ pandoc @@README@@ -s -w opendocument -o @@example20.xml@@
10121. ODT (OpenDocument Text, readable by OpenOffice):
103@ pandoc @@README@@ -o @@example21.odt@@
10522. MediaWiki markup:
107@ pandoc -s -S -w mediawiki --toc @@README@@ -o @@example22.wiki@@