Hello all, A quick update. Only the named block solution from Jay Kerns currently works. I have tried out variants of other proposed solutions here but none worked. Thanks for your help and sorry for the delay in getting back on this one. Shripad. Shripad Tucson, AZ Shripad Tucson, AZ On Wed, Apr 17, 2013 at 5:55 PM, Eric Abrahamsen wrote: > You only sent this to me! :) > > On 04/18/13 01:24 AM, shripad sinari wrote: > > Hello all, > > A quick update. Only the named block solution from Jay Kerns currently > > works. I have tried out variants of other proposed solutions here but > > none worked. > > Thanks for your help and sorry for the delay in getting back on this > > one. > > Shripad. > > > > Shripad > > Tucson, AZ > > > > On Wed, Mar 20, 2013 at 6:49 PM, Eric Abrahamsen > > wrote: > > > > Hi Shripad, > > > > My solution still requires named code blocks! That's the only way > > you > > can make sure the results are put where you want them: between > > certain > > Latex fragments. > > > > I'm not quite understanding what's going wrong with what you > > pasted > > below -- do you mean that all the file names are prepended with > > ":"? In > > that case, try using "raw" instead of "verbatim" as a value for > > the > > :results key. > > > > Good luck! > > > > E > > > > > > > > On 03/20/13 05:25 AM, shripad sinari wrote: > > > Hello Eric, > > > I am experimenting with your solution and I like it better than > > named > > > code blocks because it does not interfere with HTML or MD > > export. > > > However it is not working. Is there something like this that can > > be > > > done that you know of and how? > > > > > > #+RESULTS: Files > > > #+BEGIN_LaTeX \resizebox{\textwidth}{!}{% > > > [1] "Clinical spreadsheet_20130215 diabetes1212-v7_OT edited for > > > sample classification.xls" > > > [2] "Data spreadsheet_031813 Diabetes study samples set > > corrected_ALL > > > assays to date_OT.xlsx" > > > } > > > #+END_LaTeX > > > > > > because you solution currently produces this output. > > > > > > here is my code, I have tried the various arguments to the > > ":results" > > > plist as well: > > > > > > #+NAME: Files > > > #+BEGIN_SRC R :session :exports results :results value verbatim > > > replace :tangle yes > > > print(list.files(recursive = T, pattern = "*.xls*")) > > > #+END_SRC > > > > > > #+LATEX: \resizebox{\textwidth}{!}{% > > > #+RESULTS: Files > > > : Clinical spreadsheet_20130215 diabetes1212-v7_OT edited for > > sample > > > classification.xls > > > : Data spreadsheet_031813 Diabetes study samples set > > corrected_ALL > > > assays to date_OT.xlsx > > > > > > #+Latex: } > > > > > > Thanks for your help. > > > > > > Shripad > > > Tucson, AZ > > > > > > On Mon, Mar 18, 2013 at 5:57 PM, Eric Abrahamsen > > > wrote: > > > > > > > > > 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 > > > > > > > > >