From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: use of org-export-latex-verbatim-wrap Date: Fri, 28 May 2010 08:55:32 +0200 Message-ID: <6B09059B-4D06-4688-9775-294FCD5422F8@gmail.com> References: <20100526162001.GA32657@soloJazz.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52041 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHtrd-0005t8-5R for emacs-orgmode@gnu.org; Fri, 28 May 2010 03:20:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHtrb-0002rj-S7 for emacs-orgmode@gnu.org; Fri, 28 May 2010 03:20:16 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:61937) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHtrb-0002rf-MH for emacs-orgmode@gnu.org; Fri, 28 May 2010 03:20:15 -0400 Received: by wyb40 with SMTP id 40so259101wyb.0 for ; Fri, 28 May 2010 00:20:15 -0700 (PDT) In-Reply-To: <20100526162001.GA32657@soloJazz.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juan Pechiar Cc: Emacs-orgmode On May 26, 2010, at 6:20 PM, Juan Pechiar wrote: > Trying to adjust the style for fixed-width sections in LaTeX export > (drawers in particular), I found org-latex.el defines a customizable > wrapper for verbatim sections: > > (defcustom org-export-latex-verbatim-wrap > '("\\begin{verbatim}\n" . "\\end{verbatim}\n") > "Environment to be wrapped around a fixed-width section in LaTeX > export. > This is a cons with two strings, to be added before and after the > fixed-with text. > > But this variable is _only_ used in org-exp.el in function > org-export-format-source-code-or-example > > All other fixed-width latex generation uses explicit "\verbatim" text > instead of the wrapper variables. > > Is this the only intended use for org-export-latex-verbatim-wrap? > > If not, then I can look into this and provide a patch for using the > wrapper variable in all appropriate places. Hi Juan, I would not want to use this also for drawers - it is really meant for example sections. For formatting drawers, please take a look at the variable org-export- format-drawer-function. You can set it to a function which does the formatting of the drawer any way you like. An example of how such a function has to be written is the function org-export-format-drawer. Greetings - Carsten > > Saludos, > .j. > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten