Hash :
3491f610
Author :
Thomas de Grivel
Date :
2020-03-11T13:32:02
Pandoc
Thomas de Grivel thoxdg@gmail.com
2020-03-11
Conversion between documentation formats
e.g.
pandoc -st beamer -V theme:Warsaw -V fontsize:8pt -o test.pdf test.md
Lightweight markup formats
HTML formats
Ebooks
Documentation formats
Roff formats
TeX formats
XML formats
Outline formats
Data formats
Word processor formats
Interactive notebook formats
Page layout formats
Wiki markup formats
Slide show formats
Custom formats
pandoc -st beamer -o test.pdf -f gfm test.md
-st beamer
: produce a standalone beamer document
-o test.pdf
: output file
-f gfm
: input format in Github flavoured Markdown syntax
test.md
: input file
Pandoc
Thomas de Grivel <thoxdg@gmail.com>
https://kmx.io/
2020-03-11
# Pandoc
## Introduction
### Pandoc
<https://pandoc.org>
Conversion between documentation formats
### Supported formats (1/4)
Lightweight markup formats
- Markdown
- reStructuredText
pandoc -st beamer -o test.tex -f gfm test.md
Produces test.tex in LaTeX format.
pdflatex test.tex; pdflatex test.tex
Produces test.pdf from test.tex
Convert LaTeX beamer slides to Markdown source format :
pandoc -st gfm test.tex > test.md
Warning : tweaking of generated Markdown files is needed.
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
Pandoc
Thomas de Grivel <thoxdg@gmail.com>
https://kmx.io/
2020-03-11
# Pandoc
## Introduction
### Pandoc
<https://pandoc.org>
Conversion between documentation formats
e.g.
`pandoc -st beamer -V theme:Warsaw -V fontsize:8pt -o test.pdf test.md`
### Supported formats (1/4)
Lightweight markup formats
- Markdown (including CommonMark and GitHub-flavored Markdown)
- reStructuredText
- AsciiDoc
- Emacs Org-Mode
- Emacs Muse
- Textile
- txt2tags
HTML formats
- (X)HTML 4
- HTML5
Ebooks
- EPUB version 2 or 3
- FictionBook2
Documentation formats
- GNU TexInfo
- Haddock markup
### Supported formats (2/4)
Roff formats
- roff man
- roff ms
TeX formats
- LaTeX
- ConTeXt
XML formats
- DocBook version 4 or 5
- JATS
- TEI Simple
Outline formats
- OPML
Data formats
- CSV tables
### Supported formats (3/4)
Word processor formats
- Microsoft Word docx
- OpenOffice/LibreOffice ODT
- OpenDocument XML
- Microsoft PowerPoint
Interactive notebook formats
- Jupyter notebook (ipynb)
Page layout formats
- InDesign ICML
Wiki markup formats
- MediaWiki markup
- DokuWiki markup
- TikiWiki markup
- TWiki markup
- Vimwiki markup
- XWiki markup
- ZimWiki markup
- Jira wiki markup
### Supported formats (4/4)
Slide show formats
- LaTeX Beamer
- Slidy
- reveal.js
- Slideous
- S5
- DZSlides
Custom formats
- custom writers can be written in lua.
PDF
- via pdflatex, xelatex, lualatex, pdfroff, wkhtml2pdf, prince, or weasyprint.
## Beamer presentation
### Standalone beamer presentation
`pandoc -st beamer -o test.pdf -f gfm test.md`
`-st beamer` : produce a standalone beamer document
`-o test.pdf` : output file
`-f gfm` : input format in Github flavoured Markdown syntax
`test.md` : input file
### Sample markdown for beamer
```
Pandoc
Thomas de Grivel <thoxdg@gmail.com>
https://kmx.io/
2020-03-11
# Pandoc
## Introduction
### Pandoc
<https://pandoc.org>
Conversion between documentation formats
### Supported formats (1/4)
Lightweight markup formats
- Markdown
- reStructuredText
```
### Latex output
`pandoc -st beamer -o test.tex -f gfm test.md`
Produces test.tex in LaTeX format.
### PDF output from LaTeX
`pdflatex test.tex; pdflatex test.tex`
Produces test.pdf from test.tex
### Conversion from LaTeX to Markdown
Convert LaTeX beamer slides to Markdown source format :
`pandoc -st gfm test.tex > test.md`
Warning : tweaking of generated Markdown files is needed.