From mboxrd@z Thu Jan 1 00:00:00 1970 From: shripad sinari Subject: Re: scaling the text in the results block of some code chunk when exported using LaTeX Date: Wed, 17 Apr 2013 19:46:13 -0700 Message-ID: References: <878v5kkxyz.fsf@ericabrahamsen.net> <871ub9frnp.fsf@ericabrahamsen.net> <87obdcverf.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1ec1c18f79a04da999b77 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USerZ-0007SG-2p for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 22:46:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USerX-0000jo-2W for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 22:46:16 -0400 Received: from mail-oa0-f42.google.com ([209.85.219.42]:49985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USerW-0000jd-Qk for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 22:46:14 -0400 Received: by mail-oa0-f42.google.com with SMTP id i18so2329955oag.29 for ; Wed, 17 Apr 2013 19:46:13 -0700 (PDT) In-Reply-To: <87obdcverf.fsf@ericabrahamsen.net> 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: Orgmode Mailing List --001a11c1ec1c18f79a04da999b77 Content-Type: text/plain; charset=ISO-8859-1 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 > > > > > > > > > --001a11c1ec1c18f79a04da999b77 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello all,
A quick update. Only the named block solution f= rom 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 o= ne.
Shripad.

Shripad
Tucson, AZ

Shripad
Tucson, AZ<= /div>


On Wed, Apr 17, 2013 at 5:55 PM, Eric Ab= rahamsen <eric@ericabrahamsen.net> 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<= br> > 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
> <eric@ericabrahamsen.net= > wrote:
>
> =A0 =A0 Hi Shripad,
>
> =A0 =A0 My solution still requires named code blocks! That's the o= nly way
> =A0 =A0 you
> =A0 =A0 can make sure the results are put where you want them: between=
> =A0 =A0 certain
> =A0 =A0 Latex fragments.
>
> =A0 =A0 I'm not quite understanding what's going wrong with wh= at you
> =A0 =A0 pasted
> =A0 =A0 below -- do you mean that all the file names are prepended wit= h
> =A0 =A0 ":"? In
> =A0 =A0 that case, try using "raw" instead of "verbatim= " as a value for
> =A0 =A0 the
> =A0 =A0 :results key.
>
> =A0 =A0 Good luck!
>
> =A0 =A0 E
>
>
>
> =A0 =A0 On 03/20/13 05:25 AM, shripad sinari wrote:
> =A0 =A0 > Hello Eric,
> =A0 =A0 > I am experimenting with your solution and I like it bette= r than
> =A0 =A0 named
> =A0 =A0 > code blocks because it does not interfere with HTML or MD=
> =A0 =A0 export.
> =A0 =A0 > However it is not working. Is there something like this t= hat can
> =A0 =A0 be
> =A0 =A0 > done that you know of and how?
> =A0 =A0 >
> =A0 =A0 > #+RESULTS: Files
> =A0 =A0 > #+BEGIN_LaTeX \resizebox{\textwidth}{!}{%
> =A0 =A0 > [1] "Clinical spreadsheet_20130215 diabetes1212-v7_O= T edited for
> =A0 =A0 > sample classification.xls"
> =A0 =A0 > [2] "Data spreadsheet_031813 Diabetes study samples = set
> =A0 =A0 corrected_ALL
> =A0 =A0 > assays to date_OT.xlsx"
> =A0 =A0 > }
> =A0 =A0 > #+END_LaTeX
> =A0 =A0 >
> =A0 =A0 > because you solution currently produces this output.
> =A0 =A0 >
> =A0 =A0 > here is my code, I have tried the various arguments to th= e
> =A0 =A0 ":results"
> =A0 =A0 > plist as well:
> =A0 =A0 >
> =A0 =A0 > #+NAME: Files
> =A0 =A0 > #+BEGIN_SRC R :session :exports results :results value ve= rbatim
> =A0 =A0 > replace :tangle yes
> =A0 =A0 > print(list.files(recursive =3D T, pattern =3D "*.xls= *"))
> =A0 =A0 > #+END_SRC
> =A0 =A0 >
> =A0 =A0 > #+LATEX: \resizebox{\textwidth}{!}{%
> =A0 =A0 > #+RESULTS: Files
> =A0 =A0 > : Clinical spreadsheet_20130215 diabetes1212-v7_OT edited= for
> =A0 =A0 sample
> =A0 =A0 > classification.xls
> =A0 =A0 > : Data spreadsheet_031813 Diabetes study samples set
> =A0 =A0 corrected_ALL
> =A0 =A0 > assays to date_OT.xlsx
> =A0 =A0 >
> =A0 =A0 > #+Latex: }
> =A0 =A0 >
> =A0 =A0 > Thanks for your help.
> =A0 =A0 >
> =A0 =A0 > Shripad
> =A0 =A0 > Tucson, AZ
> =A0 =A0 >
> =A0 =A0 > On Mon, Mar 18, 2013 at 5:57 PM, Eric Abrahamsen
> =A0 =A0 > <eric@erica= brahamsen.net> wrote:
> =A0 =A0 >
> =A0 =A0 >
> =A0 =A0 > shripad sinari <shripad.sinari@gmail.com> writes:
> =A0 =A0 >
> =A0 =A0 > > Hello all,
> =A0 =A0 > > Is there a way to scale the text in the latex export= of a
> =A0 =A0 > results
> =A0 =A0 > > block produced by a code chunk?
> =A0 =A0 > >
> =A0 =A0 > > Here is the code chunk i am trying to evaluate and e= xport:
> =A0 =A0 > >
> =A0 =A0 > > #+BEGIN_SRC R :session :exports results :results out= put org
> =A0 =A0 > replace :
> =A0 =A0 > > tangle yes
> =A0 =A0 > > print(list.files(recursive =3D T, pattern =3D "= *.xls*"))
> =A0 =A0 > > #+END_SRC
> =A0 =A0 > >
> =A0 =A0 > > This prints a list of filenames that are quite long.= I need to
> =A0 =A0 > > preserve them as is. Here is the results block:
> =A0 =A0 > >
> =A0 =A0 > > #+END_SRC
> =A0 =A0 > >
> =A0 =A0 > > #+Results:
> =A0 =A0 > > #+BEGIN_SRC org
> =A0 =A0 > > [1] "20130304 Some Spreadsheet/20130215 XXXXXXX= XXXX_CB edited
> =A0 =A0 > for
> =A0 =A0 > > sample classification.xls"
> =A0 =A0 > > [2] "20130304 Some Spreadsheet/20130215 XXXXXXX= XXXX_CB edited
> =A0 =A0 > for
> =A0 =A0 > > sample classification.xls"
> =A0 =A0 > > [4] "20130304 Some Spreadsheets/20130215 XXXXXX= XXXXXXXXXX
> =A0 =A0 > samples
> =A0 =A0 > > results final.xlsx"
> =A0 =A0 > > [5] "20130304 Some Spreadsheets/20130215 XXXXXX= XXXXXXXXXX
> =A0 =A0 > results
> =A0 =A0 > > final_formatted.xlsx"
> =A0 =A0 > > [6] "20130304 Some Spreadsheets/20130304 XXXXXX= XXXXXXXXXX
> =A0 =A0 > samples
> =A0 =A0 > > results 121109_Rep Aliqs Highlighted.xlsx"
> =A0 =A0 > >
> =A0 =A0 > > #+END_SRC
> =A0 =A0 > >
> =A0 =A0 > > Is there a way for me to define the scaling of the t= ext within
> =A0 =A0 > the
> =A0 =A0 > > results block when this is exported using latex?
> =A0 =A0 >
> =A0 =A0 >
> =A0 =A0 > Jay mentioned how to repeatably wrap the results in latex=
> =A0 =A0 markup;
> =A0 =A0 > I'd
> =A0 =A0 > look into the \resizebox in the graphicsx package to make= sure
> =A0 =A0 the
> =A0 =A0 > block
> =A0 =A0 > of filenames fits the page. Something like:
> =A0 =A0 >
> =A0 =A0 > #+LATEX: \resizebox{\textwidth}{!}{%
> =A0 =A0 > #+RESULTS: foo
> =A0 =A0 > #+BEGIN_SRC org
> =A0 =A0 > etc...
> =A0 =A0 > #+END_SRC
> =A0 =A0 > #+LATEX: }
> =A0 =A0 >
> =A0 =A0 > Untested, but something like that ought to work...
> =A0 =A0 >
> =A0 =A0 > E
> =A0 =A0 >
> =A0 =A0 >
>

--001a11c1ec1c18f79a04da999b77--