Hi Albert, hi John, hi all, sorry for hijacking the thread. I want to insert special context markup like \startparagraph[intro] ... \stopparagraph via ::: intro ::: ... ::: The solution for latex was this: Am Sun, Jan 24, 2021 at 03:32:32PM +0100 schrieb Albert Krewinkel: > Hi, > > you'll need a Lua filter for this, which is what R Markdown, and thereby > Bookdown, is using as well: > > https://github.com/rstudio/rmarkdown/blob/master/inst/rmarkdown/lua/latex-div.lua There also was a short snippet from John MacFarlane: function latex(s) return pandoc.RawBlock('latex', s) end function Div(el) if el.classes[1] == 'solution' then return { latex('\begin{solution}'), el.content, latex('\end{solution}') } end end How can I achieve this with context output. Simply changing the string "latex" to "context" results in this error. Error running filter filter.lua: ./filter.lua: createProcess: runInteractiveProcess: exec: invalid argument (Exec format error) make: *** [Makefile:36: pdf] Fehler 83 TIA Jan Ulrich Hasecke