Skip to content

markdown environment inside beamer frame #418

Answered by Witiko
Ninlives asked this question in Q&A
Discussion options

You must be logged in to vote

@Ninlives Hi, thanks for using the Markdown package.

The following snippet will not work:

You may need to use the fragile option on your frame:

\begin{frame}[fragile]
\begin{markdown}
- A markdown list
\end{markdown}
\end{frame}

Why is that?

Both frame and markdown are buffered environments, i.e. all text inside of them is read into a variable first and only then processed by TeX. However, whereas frame buffers the text as TeX would, i.e. \command is recognized as a command, markdown uses a different catcode regime, where most of the text is kept as-is, i.e. \command is recognized as regular text. Once a text has been buffered by frame, it cannot be correctly re-read by markdown.

Spec…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Ninlives
Comment options

@Witiko
Comment options

Answer selected by Ninlives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #417 on March 11, 2024 14:58.