emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Way to mark contents of an Org special block as verbatim?


From: Kaushal Modi
Subject: Way to mark contents of an Org special block as verbatim?
Date: Thu, 6 Jan 2022 12:00:31 -0500

Hello,

Is there a way to mark contents of an Org special block as verbatim?

In my custom exporter, when I do the below,

#+begin_katex
E = -J \sum_{i=1}^N s_i s_{i+1}
#+end_katex

it gets exported to:

{{< katex display >}}
E = -J &sum;<sub>i=1</sub>^N s\_i s<sub>i+1</sub>
{{< /katex >}}

I would like to treat that block /like/ how Org treats the latex
environment blocks, but it needs to be a special block as
begin_katex/end_katex here is special and it could be a different
equation rendering backend for another user.

So is that a header switch or arg that can be passed on to this
special block that enables the verbatim mode (prevent Org from
replacing the Org entities, do the sub/superscript expansion, etc.)?

--
Kaushal Modi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]