From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-export-latex-verbatim-wrap has no effect on Babel results Date: Thu, 05 May 2011 14:54:55 -0600 Message-ID: <878vukuasv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI5aS-0001zi-Uc for emacs-orgmode@gnu.org; Thu, 05 May 2011 16:55:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI5aR-0004vd-NA for emacs-orgmode@gnu.org; Thu, 05 May 2011 16:55:52 -0400 Received: from mail-px0-f171.google.com ([209.85.212.171]:32804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI5aR-0004vZ-EP for emacs-orgmode@gnu.org; Thu, 05 May 2011 16:55:51 -0400 Received: by pxi7 with SMTP id 7so1753958pxi.30 for ; Thu, 05 May 2011 13:55:50 -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: avdi@avdi.org Cc: emacs-orgmode@gnu.org Hi Avdi, I can't reproduce your issue, specifically, when I run the first code block in the following example to customize the value of `org-export-latex-verbatim-wrap' --8<---------------cut here---------------start------------->8--- ** simple latex verbatim wrap example #+begin_src emacs-lisp :results silent (setq org-export-latex-verbatim-wrap '("{\\scriptsize\n\\begin{verbatim}\n" . "\\end{verbatim}\n}\n")) #+end_src #+begin_src sh echo eric schulte echo another #+end_src --8<---------------cut here---------------end--------------->8--- and then export the example to LaTeX, I get the following in which the value of `org-export-latex-verbatim-wrap' is applied --8<---------------cut here---------------start------------->8--- \section*{simple latex verbatim wrap example} \label{sec-1} {\scriptsize \begin{verbatim} (setq org-export-latex-verbatim-wrap '("{\\scriptsize\n\\begin{verbatim}\n" . "\\end{verbatim}\n}\n")) \end{verbatim} } {\scriptsize \begin{verbatim} echo eric schulte echo another \end{verbatim} } --8<---------------cut here---------------end--------------->8--- Best -- Eric Avdi Grimm writes: > I have customized my org-export-latex-verbatim-wrap to create a shaded > box for verbatim text. However, when I have Babel source code blocks > which export results, the results are always rendered with plain > \begin{verbatim}...\end{verbatim}. > > I've been grepping through the code, but I can't figure out where > #+results: blocks are formatted into LaTeX. > > Help? -- Eric Schulte http://cs.unm.edu/~eschulte/