git.iko.soy/typeable/pandoc
on 229b310 help sign in
72 lines 1.5 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
4210. Chunked XHTML via DocBook and [xmlto]:
44@ xmlto xhtml -m config.xsl example9.db -o example10/
4611. Man page:
48@ pandoc -s -w man pandoc.1.md -o example11.1
5012. ConTeXt:
52@ pandoc -s -S -w context README -o example12.tex
5413. PDF via pandoc and ConTeXt's `texexec`:
56@ texexec --pdf example12.tex --result example13.pdf
5814. Converting a web page to markdown:
60@ html2markdown http://www.gnu.org/software/make/ -o example14.text
6215. From markdown to PDF:
64@ markdown2pdf README -o example15.pdf
6616. PDF with numbered sections and a custom LaTeX header:
68@ markdown2pdf -N -C myheader.tex README -o example16.pdf
70[xmlto]: http://cyberelk.net/tim/xmlto/
71[docbook2odf]: http://open.comsultia.com/docbook2odf/