thodg/slides/pandoc.md

Download

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

HTML formats

Ebooks

Documentation formats

Supported formats (2/4)

Roff formats

TeX formats

XML formats

Outline formats

Data formats

Supported formats (3/4)

Word processor formats

Interactive notebook formats

Page layout formats

Wiki markup formats

Supported formats (4/4)

Slide show formats

Custom formats

PDF

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.


Source

Download