From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CF+rMyF+ql8+TAAA0tVLHw (envelope-from ) for ; Tue, 10 Nov 2020 11:48:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OMsJLyF+ql+PdAAA1q6Kng (envelope-from ) for ; Tue, 10 Nov 2020 11:48:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EE79E940118 for ; Tue, 10 Nov 2020 11:48:48 +0000 (UTC) Received: from localhost ([::1]:44016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcS8l-0002AI-VJ for larch@yhetil.org; Tue, 10 Nov 2020 06:48:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcS03-0002AY-HT for emacs-orgmode@gnu.org; Tue, 10 Nov 2020 06:39:49 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcRzy-0004x7-3i for emacs-orgmode@gnu.org; Tue, 10 Nov 2020 06:39:47 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 402D216005F for ; Tue, 10 Nov 2020 12:39:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1605008377; bh=Bid9qFC2jEtYJf3eJzFIorHmn2+HtfnmfDFS7xO4mpI=; h=From:To:Cc:Subject:Date:From; b=T4P4Tu/o7cjfvpTMJLkQokxnjHLpiZ70ZO0aWjCYemZ0Q2ENmXpoxRmwNicbhXlgN a66QGFAdTW+4qlwywwOu2PWUTXoibqiPKEzngqmkZYR8PD47awzbo1k/S6+/cLGS7V u2IeAMn5CfDHWr+/Y3Y/9AiSd9QRZmA+FGT1ohSHF0utgq8ysZtAxLODUa9doeYfPs cGrodG2S8aGZYbxdPVJtQbB+kKI8vipJUrJZw06T/wsBdHrc4VJtj+yHFF3asnaxB3 VFl5Xro/FVKu5CPqNTes5rFpADcsiLOalhdxJVdCtMQN9NceCqaTXvwxFSZ1DxUFEf ilvLrYndFg/zQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CVm9h5L3Wz6tmc; Tue, 10 Nov 2020 12:39:36 +0100 (CET) References: <87eel2sra8.fsf@posteo.de> <878sbaoh23.fsf@disroot.org> User-agent: mu4e 1.5.5; emacs 28.0.50 From: Titus von der Malsburg To: Eric S Fraga Subject: Re: How to set options for verbatim environments produced by org babel In-reply-to: <878sbaoh23.fsf@disroot.org> Date: Tue, 10 Nov 2020 12:39:36 +0100 Message-ID: <87k0ut5tl3.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=malsburg@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/10 06:39:37 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=T4P4Tu/o; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 5xGzmdwX6nKt Thanks, Eric. I didn=E2=80=99t know results could be detached from their c= ode blocks via names. That=E2=80=99s really useful. However, a clean way to pass options to the verbatim (or listing) environme= nt used for displaying results would be great nonetheless. Titus On 2020-11-09 Mo 13:23, Eric S Fraga wrote: > 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=20 > ,#+results: rblock > : ans =3D 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 > > --=20 > : Eric S Fraga via Emacs 28.0.50, Org release_9.4-61-ga88806.dirty --=20 Dr. Titus von der Malsburg Dept. Linguistics, University of Potsdam Dept. Brain & Cognitive Sciences, MIT https://tmalsburg.github.io PGP fingerprint: C34C 7364 EAAD 4752 FABA 35E6 AE34 59F3 C613 689D