emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Using a custom environment for a src language


From: Ihor Radchenko
Subject: Re: Using a custom environment for a src language
Date: Mon, 20 May 2024 11:18:05 +0000

Rustom Mody <rustompmody@gmail.com> writes:

> I have my own Python environment called PYT.
> #+BEGIN_PYT
> contents
> #+END_PYT
> generates
>
> \begin{PYT}
> org transcoded contents
> \end{PYT}
>
> But I dont want org transcoded contents but verbatim contents.
>
> Is there some way to tell org?
> 1. Translate the headlines as its doing
> 2. Leave the contents alone

Not sure what you mean by (1), but you can indeed tell Org mode to treat
the text inside environment verbatim. For example, using

#+begin_pyt
#+begin_example
contents
#+end_example
#+end_pyt

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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