git.iko.soy/typeable/pandoc
on dfdcec7 help sign in
68 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 -S README -o example2.html
143. HTML with smart quotes, CSS, and custom header and footer:
16@ pandoc -s -S -c main.css -B header.html -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 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 -m config.xsl xhtml example9.db -o example10/
4611. ODF (open document format) via DocBook and [docbook2odf]:
48@ docbook2odf --input-file example9.db --output-file example11.odf
5012. Man page:
52@ pandoc -s -w man pandoc.1.md -o pandoc.1
5413. Converting a web page to markdown:
56@ html2markdown http://www.gnu.org/software/make/ -o example12.text
5814. From markdown to PDF:
60@ markdown2pdf README -o example13.pdf
6215. PDF with numbered sections and a custom LaTeX header:
64@ markdown2pdf -N -C myheader.tex README -o example14.pdf
66[xmlto]: http://cyberelk.net/tim/xmlto/
67[docbook2odf]: http://open.comsultia.com/docbook2odf/