pondoc example
from pondoc
To see the output created by each of the commands below, click on the name of the output file:
-
HTML fragment:
pandoc README -o example1.html -
Standalone HTML file:
pandoc -s README -o example2.html -
HTML with smart quotes, table of contents, CSS, and custom footer:
pandoc -s -S --toc -c pandoc.css -A footer.html README -o example3.html -
LaTeX:
pandoc -s README -o example4.tex -
From LaTeX to markdown:
pandoc -s example4.tex -o example5.text -
reStructuredText:
pandoc -s -w rst --toc README -o example6.text -
Rich text format (RTF):
pandoc -s README -o example7.rtf -
Beamer slide show:
pandoc -t beamer SLIDES -o example8.pdf -
DocBook XML:
pandoc -s -S -w docbook README -o example9.dbChunked XHTML via DocBook and xmlto:
xmlto xhtml -m config.xsl example9.db -o example9/ -
Man page:
pandoc -s -w man pandoc.1.md -o example10.1 -
ConTeXt:
pandoc -s -w context README -o example11.texPDF via pandoc and ConTeXt’s
texexec:texexec --pdf example11.tex # produces example11.pdf -
Converting a web page to markdown:
pandoc -s -r html http://www.gnu.org/software/make/ -o example12.text -
From markdown to PDF:
pandoc README -o example13.pdf -
PDF with numbered sections and a custom LaTeX header:
pandoc -N --template=mytemplate.tex --variable mainfont=Georgia --variable sansfont=Arial --variable monofont="Bitstream Vera Sans Mono" --variable fontsize=12pt --variable version=1.9 README --latex-engine=xelatex --toc -o example14.pdf -
HTML slide shows:
pandoc -s --mathml -i -t dzslides SLIDES -o example16a.htmlpandoc -s --webtex -i -t slidy SLIDES -o example16b.htmlpandoc -s --self-contained --webtex -i -t s5 SLIDES -o example16c.htmlpandoc -s --mathjax -i -t slideous SLIDES -o example16d.html -
TeX math in HTML:
pandoc math.text -s -o mathDefault.htmlpandoc math.text -s --mathml -o mathMathML.htmlpandoc math.text -s --webtex -o mathWebTeX.htmlpandoc math.text -s --mathjax -o mathMathJax.htmlpandoc math.text -s --latexmathml -o mathLaTeXMathML.html -
Syntax highlighting of delimited code blocks:
pandoc code.text -s --highlight-style pygments -o example18a.htmlpandoc code.text -s --highlight-style kate -o example18b.htmlpandoc code.text -s --highlight-style monochrome -o example18c.htmlpandoc code.text -s --highlight-style espresso -o example18d.htmlpandoc code.text -s --highlight-style haddock -o example18e.htmlpandoc code.text -s --highlight-style tango -o example18f.htmlpandoc code.text -s --highlight-style zenburn -o example18g.html -
GNU Texinfo, converted to info, HTML, and PDF formats:
pandoc README -s -o example19.teximakeinfo example19.texi -o example19.infomakeinfo example19.texi --html -o example19texi2pdf example19.texi # produces example19.pdf -
OpenDocument XML:
pandoc README -s -w opendocument -o example20.xml -
ODT (OpenDocument Text, readable by OpenOffice):
pandoc README -o example21.odt -
MediaWiki markup:
pandoc -s -S -w mediawiki --toc README -o example22.wiki -
EPUB ebook:
pandoc -S README -o README.epub -
Markdown citations:
pandoc -s -S --biblio biblio.bib --csl chicago-author-date.csl CITATIONS -o example24a.htmlpandoc -s -S --biblio biblio.bib --csl mhra.csl CITATIONS -o example24b.htmlpandoc -s -S --biblio biblio.bib --csl ieee.csl CITATIONS -t man -o example24c.1 -
Textile writer:
pandoc -s -S README -t textile -o example25.textile -
Textile reader:
pandoc -s -S example25.textile -f textile -t html -o example26.html -
Org-mode:
pandoc -s -S README -o example27.org -
AsciiDoc:
pandoc -s -S README -t asciidoc -o example28.txt -
Word docx:
pandoc -s -S README -o example29.docx -
LaTeX math to docx:
pandoc -s math.tex -o example30.docx -
DocBook to markdown:
pandoc -f docbook -t markdown -s howto.xml -o example31.text
浙公网安备 33010602011771号