shripad sinari <shripad.sin...@gmail.com> 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