forked from jgm/pandoc-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demos
181 lines (98 loc) · 5.13 KB
/
demos
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
% Demos
# Try pandoc online
You can try pandoc online [here](http://johnmacfarlane.net/pandoc/try).
# Examples
To see the output created by each of the commands below,
click on the name of the output file:
1. HTML fragment:
@ pandoc @@MANUAL.txt@@ -o @@example1.html@@
2. Standalone HTML file:
@ pandoc -s @@MANUAL.txt@@ -o @@example2.html@@
3. HTML with table of contents, CSS, and custom footer:
@ pandoc -s --toc -c @@pandoc.css@@ -A @@footer.html@@ @@MANUAL.txt@@ -o @@example3.html@@
4. LaTeX:
@ pandoc -s @@MANUAL.txt@@ -o @@example4.tex@@
5. From LaTeX to markdown:
@ pandoc -s @@example4.tex@@ -o @@example5.text@@
6. reStructuredText:
@ pandoc -s -t rst --toc @@MANUAL.txt@@ -o @@example6.text@@
7. Rich text format (RTF):
@ pandoc -s @@MANUAL.txt@@ -o @@example7.rtf@@
8. Beamer slide show:
@ pandoc -t beamer @@SLIDES@@ -o @@example8.pdf@@
9. DocBook XML:
@ pandoc -s -t docbook @@MANUAL.txt@@ -o @@example9.db@@
10. Man page:
@ pandoc -s -t man @@pandoc.1.md@@ -o @@example10.1@@
11. ConTeXt:
@ pandoc -s -t context @@MANUAL.txt@@ -o @@example11.tex@@
12. Converting a web page to markdown:
@ pandoc -s -r html @@http://www.gnu.org/software/make/@@ -o @@example12.text@@
13. From markdown to PDF:
@ pandoc @@MANUAL.txt@@ --pdf-engine=xelatex -o @@example13.pdf@@
14. PDF with numbered sections and a custom LaTeX header:
@ pandoc -N --variable "geometry=margin=1.2in" --variable mainfont="Palatino" --variable sansfont="Helvetica" --variable monofont="Menlo" --variable fontsize=12pt --variable version=2.0 @@MANUAL.txt@@ --include-in-header fancyheaders.tex --pdf-engine=lualatex --toc -o @@example14.pdf@@
15. ipynb (Jupyter notebook):
@ pandoc @@example15.md@@ -o @@example15.ipynb@@
16. HTML slide shows:
@ pandoc -s --mathml -i -t dzslides @@SLIDES@@ -o @@example16a.html@@
@ pandoc -s --webtex -i -t slidy @@SLIDES@@ -o @@example16b.html@@
@ pandoc -s --mathjax -i -t revealjs @@SLIDES@@ -o @@example16d.html@@
17. TeX math in HTML:
@ pandoc @@math.text@@ -s -o @@mathDefault.html@@
@ pandoc @@math.text@@ -s --mathml -o @@mathMathML.html@@
@ pandoc @@math.text@@ -s --webtex -o @@mathWebTeX.html@@
@ pandoc @@math.text@@ -s --mathjax -o @@mathMathJax.html@@
@ pandoc @@math.text@@ -s --katex -o @@mathKaTeX.html@@
18. Syntax highlighting of delimited code blocks:
@ pandoc @@code.text@@ -s --highlight-style pygments -o @@example18a.html@@
@ pandoc @@code.text@@ -s --highlight-style kate -o @@example18b.html@@
@ pandoc @@code.text@@ -s --highlight-style monochrome -o @@example18c.html@@
@ pandoc @@code.text@@ -s --highlight-style espresso -o @@example18d.html@@
@ pandoc @@code.text@@ -s --highlight-style haddock -o @@example18e.html@@
@ pandoc @@code.text@@ -s --highlight-style tango -o @@example18f.html@@
@ pandoc @@code.text@@ -s --highlight-style zenburn -o @@example18g.html@@
19. GNU Texinfo:
@ pandoc @@MANUAL.txt@@ -s -o @@example19.texi@@
20. OpenDocument XML:
@ pandoc @@MANUAL.txt@@ -s -t opendocument -o @@example20.xml@@
21. ODT (OpenDocument Text, readable by OpenOffice):
@ pandoc @@MANUAL.txt@@ -o @@example21.odt@@
22. MediaWiki markup:
@ pandoc -s -t mediawiki --toc @@MANUAL.txt@@ -o @@example22.wiki@@
23. EPUB ebook:
@ pandoc @@MANUAL.txt@@ -o @@MANUAL.epub@@
24. Markdown citations:
@ pandoc -s --bibliography @@biblio.bib@@ --citeproc @@CITATIONS@@ -o @@example24a.html@@
@ pandoc -s --bibliography @@biblio.json@@ --citeproc --csl @@chicago-fullnote-bibliography.csl@@ @@CITATIONS@@ -o @@example24b.html@@
@ pandoc -s --bibliography @@biblio.yaml@@ --citeproc --csl @@ieee.csl@@ @@CITATIONS@@ -t man -o @@example24c.1@@
25. Textile writer:
@ pandoc -s @@MANUAL.txt@@ -t textile -o @@example25.textile@@
26. Textile reader:
@ pandoc -s @@example25.textile@@ -f textile -t html -o @@example26.html@@
27. Org-mode:
@ pandoc -s @@MANUAL.txt@@ -o @@example27.org@@
28. AsciiDoc:
@ pandoc -s @@MANUAL.txt@@ -t asciidoc -o @@example28.txt@@
29. Word docx:
@ pandoc -s @@MANUAL.txt@@ -o @@example29.docx@@
30. LaTeX math to docx:
@ pandoc -s @@math.tex@@ -o @@example30.docx@@
31. DocBook to markdown:
@ pandoc -f docbook -t markdown -s @@howto.xml@@ -o @@example31.text@@
32. MediaWiki to html5:
@ pandoc -f mediawiki -t html5 -s @@haskell.wiki@@ -o @@example32.html@@
33. Chunked HTML:
@ pandoc -t chunkedhtml --split-level=2 --toc --toc-depth=2 --number-sections -o @@example33@@ @@MANUAL.txt@@
34. Docx with a reference docx:
@ pandoc --reference-doc @@twocolumns.docx@@ -o @@UsersGuide.docx@@ @@MANUAL.txt@@
35. Docx to markdown, including math:
@ pandoc -s @@example30.docx@@ -t markdown -o @@example35.md@@
36. EPUB to plain text:
@ pandoc @@MANUAL.epub@@ -t plain -o @@example36.text@@
37. Using a template to produce a table from structured data:
@ pandoc @@fishwatch.yaml@@ -t rst --template @@fishtable.rst@@ -o @@fish.rst@@ # see also the partial @@species.rst@@
38. Converting a bibliography from BibTeX to CSL JSON:
@ pandoc @@biblio.bib@@ -t csljson -o @@biblio2.json@@
39. Producing a formatted version of a bibliography:
@ pandoc @@biblio.bib@@ --citeproc --csl ieee.csl -s -o @@biblio.html@@