-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown syntax for beamer "\alert" #4457
Comments
You can simply write raw TeX, e.g. |
You could also use |
You can use the following lua filter (say, if FORMAT:match 'beamer' then
function Span(el)
if el.classes[1] == "alert" then
table.insert(el.content, 1, pandoc.RawInline("latex", "\\alert{"))
table.insert(el.content, pandoc.RawInline("latex", "}"))
end
return el
end
return { { Span = Span } }
end
In an md file, ## frame header
- This is important
- This is also important
- This is [the most important]{.alert} line
Then, your md is converted into a beamer presentation pdf with alerts. pandoc --lua-filter=alert.lua -t beamer presentation.md -o presentation.pdf |
Hello,
This issue can be thought as a reverse of #4091 : would it be possible to have a Markdown syntax element that translates to LaTeX Beamer
\alert
command.For instance, using
!!
as delimiter, this would give:Ideally, this would support nested formatting, as in the example.
The text was updated successfully, but these errors were encountered: