emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Titus von der Malsburg <malsburg@posteo.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to set options for verbatim environments produced by org babel
Date: Mon, 09 Nov 2020 12:23:00 +0000	[thread overview]
Message-ID: <878sbaoh23.fsf@disroot.org> (raw)
In-Reply-To: 87eel2sra8.fsf@posteo.de

On Monday,  9 Nov 2020 at 12:28, Titus von der Malsburg wrote:
> Is there a way to set options for the verbatim environment in Org mode?

I cannot answer your actual question but I achieve the same outcome in a
different manner.  I name my src blocks and then add LaTeX directives to
the output as required:

#+begin_src org
  ,#+name: rblock
  ,#+BEGIN_SRC octave :exports results :results value output
    1+2
  ,#+END_SRC

  ,#+latex: {\small 
  ,#+results: rblock
  : ans =  3
  ,#+latex: }
#+end_src

(I had to change your example to octave as I don't have R installed ;-))

I do this all the time with beamer in particular to get output in my
teaching slides.

HTH,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4-61-ga88806.dirty


  reply	other threads:[~2020-11-09 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=878sbaoh23.fsf@disroot.org \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=malsburg@posteo.de \
    /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).