* Using a custom environment for a src language @ 2024-05-20 1:57 Rustom Mody 2024-05-20 11:18 ` Ihor Radchenko 2024-05-21 10:46 ` Max Nikulin 0 siblings, 2 replies; 3+ messages in thread From: Rustom Mody @ 2024-05-20 1:57 UTC (permalink / raw) Cc: emacs-orgmode 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 I did try #+BEGIN_SRC Python :environment PYT ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using a custom environment for a src language 2024-05-20 1:57 Using a custom environment for a src language Rustom Mody @ 2024-05-20 11:18 ` Ihor Radchenko 2024-05-21 10:46 ` Max Nikulin 1 sibling, 0 replies; 3+ messages in thread From: Ihor Radchenko @ 2024-05-20 11:18 UTC (permalink / raw) To: Rustom Mody; +Cc: emacs-orgmode 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> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using a custom environment for a src language 2024-05-20 1:57 Using a custom environment for a src language Rustom Mody 2024-05-20 11:18 ` Ihor Radchenko @ 2024-05-21 10:46 ` Max Nikulin 1 sibling, 0 replies; 3+ messages in thread From: Max Nikulin @ 2024-05-21 10:46 UTC (permalink / raw) To: Rustom Mody; +Cc: emacs-orgmode On 20/05/2024 08:57, Rustom Mody wrote: > I have my own Python environment called PYT. > #+BEGIN_PYT > contents > #+END_PYT See `org-latex-custom-lang-environments' for #+begin_src python. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-21 10:47 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-05-20 1:57 Using a custom environment for a src language Rustom Mody 2024-05-20 11:18 ` Ihor Radchenko 2024-05-21 10:46 ` Max Nikulin
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).