Skip to content

Instantly share code, notes, and snippets.

@michal-h21
Last active October 18, 2024 18:47
Show Gist options
  • Save michal-h21/5d375c79533969b7f4b5408094dbe105 to your computer and use it in GitHub Desktop.
Save michal-h21/5d375c79533969b7f4b5408094dbe105 to your computer and use it in GitHub Desktop.
Example of interaction between the Markdown package and Beamer
\documentclass[aspectratio=169,t]{beamer}
\usetheme{metropolis}
\usepackage{markdown}
\long\def\markdownRendererHeadingTwo#1#2\markdownRendererThematicBreak{
\begin{frame}{#1}
#2
\end{frame}
}
\title{Writing Beamer Slides with Markdown}
\author{Michal}
\begin{document}
\maketitle
\frame{\tableofcontents}
\begin{markdown}
# Hello
## This is a test slide
- some stuff
- more stuff
----
## Another slide
- more stuff on slides
----
## What about verbatim?
```latex
\textit{hello verbatim}
```
----
\end{markdown}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment