From: Titus von der Malsburg <malsburg@posteo.de>
To: emacs-orgmode@gnu.org
Subject: How to set options for verbatim environments produced by org babel
Date: Mon, 09 Nov 2020 12:28:31 +0100 [thread overview]
Message-ID: <87eel2sra8.fsf@posteo.de> (raw)
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
next reply other threads:[~2020-11-09 11:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-09 11:28 Titus von der Malsburg [this message]
2020-11-09 12:23 ` How to set options for verbatim environments produced by org babel Eric S Fraga
2020-11-10 11:39 ` Titus von der Malsburg
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=87eel2sra8.fsf@posteo.de \
--to=malsburg@posteo.de \
--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).