blob: 453e59955c312ba54fbc630518ba9a06e5fa66d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
% Pandoc examples
To see the output created by each of the commands below,
click on the name of the output file:
1. HTML fragment:
@ pandoc @@README@@ -o @@example1.html@@
2. Standalone HTML file:
@ pandoc -s @@README@@ -o @@example2.html@@
3. 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@@
4. LaTeX:
@ pandoc -s @@README@@ -o @@example4.tex@@
5. From LaTeX to markdown:
@ pandoc -s @@example4.tex@@ -o @@example5.text@@
6. reStructuredText:
@ pandoc -s -w rst --toc @@README@@ -o @@example6.text@@
7. Rich text format (RTF):
@ pandoc -s @@README@@ -o @@example7.rtf@@
8. S5 HTML slide show (all in one file):
@ pandoc -s -m -i -w s5 @@S5DEMO@@ -o @@example8.html@@
9. DocBook XML:
@ pandoc -s -S -w docbook @@README@@ -o @@example9.db@@
Chunked XHTML via DocBook and [xmlto]:
@ xmlto xhtml -m @@config.xsl@@ @@example9.db@@ -o @@example9/@@
10. Man page:
@ pandoc -s -w man @@pandoc.1.md@@ -o @@example10.1@@
11. ConTeXt:
@ pandoc -s -w context @@README@@ -o @@example11.tex@@
PDF via pandoc and ConTeXt's `texexec`:
@ texexec --pdf @@example11.tex@@ # produces @@example11.pdf@@
12. Converting a web page to markdown:
@ html2markdown @@http://www.gnu.org/software/make/@@ -o @@example12.text@@
13. From markdown to PDF:
@ markdown2pdf @@README@@ -o @@example13.pdf@@
14. PDF with numbered sections and a custom LaTeX header:
@ markdown2pdf -N -C @@myheader.tex@@ @@README@@ -o @@example14.pdf@@
[xmlto]: http://cyberelk.net/tim/xmlto/
15. A simple wiki program using [HAppS](http://happs.org) and pandoc:
[pandocwiki](http://pandocwiki.googlecode.com/svn/trunk/)
16. A web application that converts web pages to any of eight different
formats: [html2x](html2x.html).
17. TeX math in HTML:
@ pandoc @@math.text@@ -s -o @@mathDefault.html@@
@ pandoc @@math.text@@ -s -m -o @@mathAsciimathml.html@@
@ pandoc @@math.text@@ -s --mimetex=/cgi-bin/mimetex.cgi -o @@mathMimetex.html@@
@ pandoc @@math.text@@ -s --gladtex -o mathGladtex.htex
@ gladtex @@mathGladtex.htex@@ # produces @@mathGladtex.html@@
18. Syntax highlighting of delimited code blocks:
@ pandoc @@code.text@@ -s -o @@example18.html@@
19. GNU Texinfo, converted to info, HTML, and PDF formats:
@ pandoc @@README@@ -s -o @@example19.texi@@
@ makeinfo @@example19.texi@@ -o @@example19.info@@
@ makeinfo @@example19.texi@@ --html -o @@example19@@
@ texi2pdf @@example19.texi@@ # produces @@example19.pdf@@
20. OpenDocument XML:
@ pandoc @@README@@ -s -w opendocument -o @@example20.xml@@
21. ODT (OpenDocument Text, readable by OpenOffice):
@ pandoc @@README@@ -o @@example21.odt@@
22. MediaWiki markup:
@ pandoc -s -S -w mediawiki --toc @@README@@ -o @@example22.wiki@@
|