From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Treat custom environment as verbatim on export Date: Fri, 22 May 2015 23:09:08 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvzoE-00028q-96 for emacs-orgmode@gnu.org; Fri, 22 May 2015 23:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvzoD-0001UW-A5 for emacs-orgmode@gnu.org; Fri, 22 May 2015 23:09:10 -0400 Received: from mail-ig0-x22b.google.com ([2607:f8b0:4001:c05::22b]:36588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvzoD-0001UP-5J for emacs-orgmode@gnu.org; Fri, 22 May 2015 23:09:09 -0400 Received: by igbpi8 with SMTP id pi8so3917759igb.1 for ; Fri, 22 May 2015 20:09:08 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode Hello, I want to use a one of several custom environments for some babel results using, for example, ":wrap myverbatim" as a header argument. (Since I have several possible environments, I think I need to use :wrap rather than, say, replacing "verbatim" using an export filter). However, since this block isn't recognized as an actual verbatim environment, markup gets processed in undesirable ways. For example: ------------- #+BEGIN_SRC sh :exports results :wrap myverbatim echo "Hello_world" #+END_SRC #+RESULTS: #+BEGIN_myverbatim Hello_world #+END_myverbatim ------------- exports to ------------- \begin{myverbatim} Hello\(_{\text{world}}\) \end{myverbatim} ------------- instead of ------------- \begin{myverbatim} Hello_world \end{myverbatim} ------------- A couple questions: - Is there any way I've missed to specify verbatim export as an option for an arbitrary block/environment? - If not, I think that I need a derived exporter to achieve this, but the `contents' of a special-block have already had markup transcoded by the time the derived backend function sees them. What functions would my derived backend need to replace to allow applying verbatim formatting to block types of my choosing? Thanks for any tips, Jake