emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to set options for verbatim environments produced by org babel
@ 2020-11-09 11:28 Titus von der Malsburg
  2020-11-09 12:23 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Titus von der Malsburg @ 2020-11-09 11:28 UTC (permalink / raw)
  To: emacs-orgmode


I’m using the ~Verbatim~ environment from the fancyvrb package to display Org Babel results in my Beamer slides.  The ~Verbatim~ environment accepts options for setting the font size among other things.  This is useful when the output of a code block has longer lines that do not fit on a slide.

Is there a way to set options for the verbatim environment in Org mode?

Example: This Org source

  #+BEGIN_SRC R :exports results :results value output
  1+2
  #+END_SRC

exports to

  \begin{verbatim}
  3
  \end{verbatim}

But I’d like to be able to translate something like this:

  #+BEGIN_SRC R :exports results :results value output :options [fontsize=\small]
  1+2
  #+END_SRC

to

  \begin{verbatim}[fontsize=\small]
  3
  \end{verbatim}

I’m sure there is a way to do this but couldn’t find it.

  Titus



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-10 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 11:28 How to set options for verbatim environments produced by org babel Titus von der Malsburg
2020-11-09 12:23 ` Eric S Fraga
2020-11-10 11:39   ` Titus von der Malsburg

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).