| title | \LARGE \bf Markdown to PDF using Pandoc and \LaTeX | |
|---|---|---|
| author | Johan Nylander | |
| institute | NRM | |
| date | 2025 | |
| theme | metropolis | |
| classoption |
|
This README.md file will render slightly different on
github.com compared to the output from using
the scripts in this repository (md2pdf or md2beamer).
Normally, one would design the markdown text specifically for the final target media, but the examples given here are pretty portable. See further here.
Take-home note: You can mix markdown, html, and tex!
On a Debian-based system:
$ apt install pandoc texlive-xetex
Plain PDF
$ ./md2pdf README.md
. . .
Beamer presentation
$ ./md2beamer README.md
- Start the slide with a single
# - End the slide with
---
Note that in plain PDF, ---, is rendered as a horizontal line.
\tiny tiny text
\scriptsize scriptsize text
\normalsize
normalsize text, this is over strike, this is italics, this in bold
\Large Large text with a footnote1
\LARGE LARGE text
\Huge Huge text
\normalsize
- Numbered item
- Numbered item
-
Bullet item
-
Bullet item
-
Checklist item
-
Checklist item
| Some | thing | else |
|---|---|---|
| A | B | C |
| D | E | F |
The image above was inserted using the following syntax (here displayed as inline code):
{width=70%}\
One alternative is to use this text in the markdown file (displayed as a code block):
\begin{figure}
\begin{center}
\includegraphics[width=0.7\textwidth]{img/the_general_problem.png}
\end{center}
\end{figure}Footnotes
-
Footnote text ↩
