emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] scaling the text in the results block of some code chunk when ex


From: Eric Abrahamsen
Subject: Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX
Date: Tue, 19 Mar 2013 08:57:40 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux)

shripad sinari <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]