You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your proposed improvement and the problem it solves.
When exporting to beamer, we can add speaker notes, which pandoc translates as \note{ my note }, like this:
::::: notes ::::::
my note
::::::::::::::::::
I would like to have support for something which translates to \note<1>{ my first note}. I know that this syntax is currently supported 8d7ecc2 , but I think it would be nice to have something like
::::: {.notes only=1} :::
my first note
:::::::::::::::::::::::::
Describe alternatives you've considered.
I did a pandoc filter to do this, but I need to change "notes" to "note", otherwise the div is beeing parsed twice.
functionDiv(el)
ifel.classes[1] =="note" then-- insert element in frontifel.attr.attributes["only"] thentable.insert(
el.content, 1,
pandoc.RawBlock("latex", "\\note<" ..el.attr.attributes["only"] ..">{"))
elsetable.insert(el.content, 1, pandoc.RawBlock("latex", "\\note{"))
end-- insert element at the backtable.insert(
el.content,
pandoc.RawBlock("latex", "}"))
endreturnelend
Is it possible to fix this filter to work well with "notes" directly?
Does it make sense to include this feature in pandoc? Does it have any drawback?
The text was updated successfully, but these errors were encountered:
Here's my try to make the filter work with "notes":
functionDiv(el)
-- Only handle note divs that should appear on specific slides.-- We rely on pandoc to handle other notes.ifel.classes[1] ~="notes" ornotel.attr.attributes.onlythenreturnelendreturn
{pandoc.RawBlock("tex", "\\note<" ..el.attr.attributes.only..">{")} ..el.content..
{pandoc.RawBlock("tex", "}")}
end
Describe your proposed improvement and the problem it solves.
When exporting to beamer, we can add speaker notes, which pandoc translates as
\note{ my note }
, like this:I would like to have support for something which translates to
\note<1>{ my first note}
. I know that this syntax is currently supported 8d7ecc2 , but I think it would be nice to have something likeDescribe alternatives you've considered.
I did a pandoc filter to do this, but I need to change "notes" to "note", otherwise the div is beeing parsed twice.
The text was updated successfully, but these errors were encountered: