From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: scaling the text in the results block of some code chunk when exported using LaTeX Date: Tue, 19 Mar 2013 08:57:40 +0800 Message-ID: <878v5kkxyz.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHkmg-0003vR-96 for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 20:52:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHkmf-0004lE-4n for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 20:52:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:46547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHkme-0004kw-TO for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 20:52:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UHkmy-0001Eg-Hf for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 01:52:28 +0100 Received: from 114.250.134.56 ([114.250.134.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Mar 2013 01:52:28 +0100 Received: from eric by 114.250.134.56 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Mar 2013 01:52:28 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org shripad sinari writes: > Hello all, > Is there a way to scale the text in the latex export of a results > block produced by a code chunk? > > Here is the code chunk i am trying to evaluate and export: > > #+BEGIN_SRC R :session :exports results :results output org replace : > tangle yes > print(list.files(recursive = T, pattern = "*.xls*")) > #+END_SRC > > This prints a list of filenames that are quite long. I need to > preserve them as is. Here is the results block: > > #+END_SRC > > #+Results: > #+BEGIN_SRC org > [1] "20130304 Some Spreadsheet/20130215 XXXXXXXXXXX_CB edited for > sample classification.xls" > [2] "20130304 Some Spreadsheet/20130215 XXXXXXXXXXX_CB edited for > sample classification.xls" > [4] "20130304 Some Spreadsheets/20130215 XXXXXXXXXXXXXXXX samples > results final.xlsx" > [5] "20130304 Some Spreadsheets/20130215 XXXXXXXXXXXXXXXX results > final_formatted.xlsx" > [6] "20130304 Some Spreadsheets/20130304 XXXXXXXXXXXXXXXX samples > results 121109_Rep Aliqs Highlighted.xlsx" > > #+END_SRC > > Is there a way for me to define the scaling of the text within the > results block when this is exported using latex? Jay mentioned how to repeatably wrap the results in latex markup; I'd look into the \resizebox in the graphicsx package to make sure the block of filenames fits the page. Something like: #+LATEX: \resizebox{\textwidth}{!}{% #+RESULTS: foo #+BEGIN_SRC org etc... #+END_SRC #+LATEX: } Untested, but something like that ought to work... E