emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: avdi@avdi.org
Cc: emacs-orgmode@gnu.org
Subject: Re: org-export-latex-verbatim-wrap has no effect on Babel results
Date: Thu, 05 May 2011 14:54:55 -0600	[thread overview]
Message-ID: <878vukuasv.fsf@gmail.com> (raw)
In-Reply-To: BANLkTi=yUGXKLGdGicbCxgL-HGsSQT73Ow@mail.gmail.com

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 <avdi@avdi.org> 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/

      reply	other threads:[~2011-05-05 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27 22:19 org-export-latex-verbatim-wrap has no effect on Babel results Avdi Grimm
2011-05-05 20:54 ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vukuasv.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=avdi@avdi.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).