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 21:59:55 -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=001a11c3073c39845204da9b791a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USh46-0006uh-OE for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 01:07:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USh43-0004vi-VM for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 01:07:22 -0400 Received: from mail-oa0-f50.google.com ([209.85.219.50]:36898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USh43-0004vZ-NA for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 01:07:19 -0400 Received: by mail-oa0-f50.google.com with SMTP id n1so2371358oag.37 for ; Wed, 17 Apr 2013 22:07:19 -0700 (PDT) In-Reply-To: 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: John Hendy Cc: Orgmode Mailing List --001a11c3073c39845204da9b791a Content-Type: text/plain; charset=ISO-8859-1 Thanks! Shripad Tucson, AZ On Wed, Apr 17, 2013 at 9:25 PM, John Hendy wrote: > It works correctly for me (see attached). Make sure your buffer is > exactly as shown below (:width 20cm -> \tiny is not the only change. > You also need to change #+attr_latex -> #+latex). > > #+NAME: test1 > #+BEGIN_SRC R :results output latex :exports results > list.files(recursive=F) > #+END_SRC > > #+BEGIN_CENTER > #+latex: \tiny > #+RESULTS: test1 > #+BEGIN_LaTeX > [1] "Desktop" "Documents" "Downloads" > [4] "Dropbox" "Library" "Mail" > [7] "Movies" "Music" "MyDropBox" > [10] "News" "Pictures" "Public" > [13] "local" "m.org" "org" > [16] "org.ics" "orgmode-accessories" "projects" > [19] "t2.html" "t2.org" "t2.pdf" > [22] "t2.tex" "tools" "worg" > #+END_LaTeX > #+END_CENTER > > > Best regards, > John > > On Wed, Apr 17, 2013 at 11:20 PM, shripad sinari > wrote: > > Thanks John, > > But I have corrected the width attribute to the correct \tiny in my > latest > > file. It was a bit too fast copy and paste error. > > Regards, > > > > Shripad > > Tucson, AZ > > > > > > On Wed, Apr 17, 2013 at 9:18 PM, John Hendy wrote: > >> > >> On Wed, Apr 17, 2013 at 10:57 PM, shripad sinari > >> wrote: > >> > Hello John, > >> > I am able to get your test.org to do size change but not my test > file. > >> > Please find it attached herewith. I am sure it is setup issue now. > >> > Thanks, > >> > Shripad. > >> > > >> > >> I may have confused you. Your file contains text results, but you have: > >> > >> #+BEGIN_CENTER > >> #+ATTR_LATEX: :width 20cm > >> #+RESULTS: test1 > >> #+BEGIN_LaTeX > >> > >> You need: > >> > >> #+BEGIN_CENTER > >> #+LATEX: \LARGE > >> #+RESULTS: test1 > >> #+BEGIN_LaTeX > >> > >> Best regards, > >> John > >> > >> > Shripad > >> > Tucson, AZ > >> > > >> > > >> > On Wed, Apr 17, 2013 at 8:53 PM, John Hendy > wrote: > >> >> > >> >> On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari > >> >> wrote: > >> >> > Hello John, > >> >> > I have tried this with text but it does not seem to resize the > text. > >> >> > Infact > >> >> > what gets resized is the "#+RESULTS: test" and the rest of the > stuff > >> >> > after > >> >> > that to the #+end_center. It might work for images but does not for > >> >> > text. > >> >> > >> >> You must have a setup or installation issue. See the attached .org > and > >> >> resultant .pdf for me. > >> >> > >> >> What's in your #+options line (or setupfile)? I'm wondering if you > >> >> don't have something like =tex:t= or =LaTeX:t= which might be > required > >> >> to pass the commands through? > >> >> > >> >> > >> >> Best regards, > >> >> John > >> >> > >> >> > >> >> > Regards, > >> >> > Shripad. > >> >> > > >> >> > Shripad > >> >> > Tucson, AZ > >> >> > > >> >> > > >> >> > On Wed, Apr 17, 2013 at 8:13 PM, John Hendy > >> >> > wrote: > >> >> >> > >> >> >> On Wed, Apr 17, 2013 at 9:46 PM, 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. > >> >> >> > > >> >> >> > >> >> >> I didn't really follow this thread, but I resize things a decent > >> >> >> amount, but not with \resizebox. It's true that you need named > >> >> >> source > >> >> >> blocks so that after the first C-c C-c on the babel block, you can > >> >> >> add > >> >> >> options and still have it recognized as the results container for > >> >> >> that > >> >> >> particular block. Something like this: > >> >> >> > >> >> >> #+name: test > >> >> >> #+begin_src R :exports results :results output :wrap latex > >> >> >> > >> >> >> a <- 1:10 > >> >> >> a > >> >> >> > >> >> >> #+end_src > >> >> >> > >> >> >> #+latex: \LARGE > >> >> >> #+RESULTS: test > >> >> >> #+BEGIN_latex > >> >> >> [1] 1 2 3 4 5 6 7 8 9 10 > >> >> >> #+END_latex > >> >> >> #+latex: \normalsize > >> >> >> > >> >> >> I don't actually use the above that much, but tend to size plots > >> >> >> appropriately with something like the following, which is > >> >> >> essentially > >> >> >> the same principle (how to pass latex options to the results of > code > >> >> >> block results while having Org still recognize where to put > updated > >> >> >> results): > >> >> >> > >> >> >> #+begin_center > >> >> >> #+attr_latex: :width 8cm > >> >> >> #+RESULTS: test > >> >> >> [[file.pdf]] > >> >> >> #+end_center > >> >> >> > >> >> >> Just thought I'd add another option... > >> >> >> > >> >> >> John > >> >> >> > >> >> >> > >> >> >> > Shripad > >> >> >> > Tucson, AZ > >> >> >> > > >> >> >> > Shripad > >> >> >> > Tucson, AZ > >> >> >> > > >> >> > > >> >> > > >> > > >> > > > > > > --001a11c3073c39845204da9b791a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks!

=
Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 9:25 PM, John He= ndy <jw.hendy@gmail.com> wrote:
It works correctly for me (see attached). Make sure your buffer is
exactly as shown below (:width 20cm -> \tiny is not the only change.
You also need to change #+attr_latex -> #+latex).

#+NAME: test1
#+BEGIN_SRC R :results output latex :exports results
=A0 list.files(recursive=3DF)
#+END_SRC

#+BEGIN_CENTER
#+latex: \tiny
#+RESULTS: test1
#+BEGIN_LaTeX
=A0[1] "Desktop" =A0 =A0 =A0 =A0 =A0 =A0 "Documents" = =A0 =A0 =A0 =A0 =A0 "Downloads"
=A0[4] "Dropbox" =A0 =A0 =A0 =A0 =A0 =A0 "Library" =A0 = =A0 =A0 =A0 =A0 =A0 "Mail"
=A0[7] "Movies" =A0 =A0 =A0 =A0 =A0 =A0 =A0"Music" =A0 = =A0 =A0 =A0 =A0 =A0 =A0 "MyDropBox"
[10] "News" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"Pictures" = =A0 =A0 =A0 =A0 =A0 =A0"Public"
[13] "local" =A0 =A0 =A0 =A0 =A0 =A0 =A0 "m.org" =A0 =A0 =A0 =A0 =A0 =A0 =A0 "= org"
[16] "org.ics" =A0 =A0 =A0 =A0 =A0 =A0 "orgmode-accessories&= quot; "projects"
[19] "t2.html" =A0 =A0 =A0 =A0 =A0 =A0 "t2.org" =A0 =A0 =A0 =A0 =A0 =A0 =A0"t= 2.pdf"
[22] "t2.tex" =A0 =A0 =A0 =A0 =A0 =A0 =A0"tools" =A0 = =A0 =A0 =A0 =A0 =A0 =A0 "worg"
#+END_LaTeX
#+END_CENTER


Best regards,
John

On Wed, Apr 17, 2013 at 11:20 PM, shripad sinari
<shripad.sinari@gmail.com> wrote:
> Thanks John,
> But I have corrected the width attribute to the correct \tiny in my la= test
> file. It was a bit too fast copy and paste error.
> Regards,
>
> Shripad
> Tucson, AZ
>
>
> On Wed, Apr 17, 2013 at 9:18 PM, John Hendy <jw.hendy@gmail.com> wrote:
>>
>> On Wed, Apr 17, 2013 at 10:57 PM, shripad sinari
>> <shripad.sinari@gma= il.com> wrote:
>> > Hello John,
>> > I am able to get your test.org to do size change but not my test file.
>> > Please find it attached herewith. I am sure it is setup issue= now.
>> > Thanks,
>> > Shripad.
>> >
>>
>> I may have confused you. Your file contains text results, but you = have:
>>
>> #+BEGIN_CENTER
>> #+ATTR_LATEX: :width 20cm
>> #+RESULTS: test1
>> #+BEGIN_LaTeX
>>
>> You need:
>>
>> #+BEGIN_CENTER
>> #+LATEX: \LARGE
>> #+RESULTS: test1
>> #+BEGIN_LaTeX
>>
>> Best regards,
>> John
>>
>> > Shripad
>> > Tucson, AZ
>> >
>> >
>> > On Wed, Apr 17, 2013 at 8:53 PM, John Hendy <jw.hendy@gmail.com> wrote:
>> >>
>> >> On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari
>> >> <shripad.s= inari@gmail.com> wrote:
>> >> > Hello John,
>> >> > I have tried this with text but it does not seem to = resize the text.
>> >> > Infact
>> >> > what gets resized is the "#+RESULTS: test"= and the rest of the stuff
>> >> > after
>> >> > that to the #+end_center. It might work for images b= ut does not for
>> >> > text.
>> >>
>> >> You must have a setup or installation issue. See the atta= ched .org and
>> >> resultant .pdf for me.
>> >>
>> >> What's in your #+options line (or setupfile)? I'm= wondering if you
>> >> don't have something like =3Dtex:t=3D or =3DLaTeX:t= =3D which might be required
>> >> to pass the commands through?
>> >>
>> >>
>> >> Best regards,
>> >> John
>> >>
>> >>
>> >> > Regards,
>> >> > Shripad.
>> >> >
>> >> > Shripad
>> >> > Tucson, AZ
>> >> >
>> >> >
>> >> > On Wed, Apr 17, 2013 at 8:13 PM, John Hendy <jw.hendy@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari<= br> >> >> >> <= shripad.sinari@gmail.com> wrote:
>> >> >> > Hello all,
>> >> >> > A quick update. Only the named block soluti= on from Jay Kerns
>> >> >> > currently
>> >> >> > works. I have tried out variants of other p= roposed solutions here
>> >> >> > but
>> >> >> > none
>> >> >> > worked.
>> >> >> > Thanks for your help and sorry for the dela= y in getting back on
>> >> >> > this
>> >> >> > one.
>> >> >> > Shripad.
>> >> >> >
>> >> >>
>> >> >> I didn't really follow this thread, but I re= size things a decent
>> >> >> amount, but not with \resizebox. It's true t= hat you need named
>> >> >> source
>> >> >> blocks so that after the first C-c C-c on the ba= bel block, you can
>> >> >> add
>> >> >> options and still have it recognized as the resu= lts container for
>> >> >> that
>> >> >> particular block. Something like this:
>> >> >>
>> >> >> #+name: test
>> >> >> #+begin_src R :exports results :results output := wrap latex
>> >> >>
>> >> >> a <- 1:10
>> >> >> a
>> >> >>
>> >> >> #+end_src
>> >> >>
>> >> >> #+latex: \LARGE
>> >> >> #+RESULTS: test
>> >> >> #+BEGIN_latex
>> >> >> =A0[1] 1 2 3 4 5 6 7 8 9 10
>> >> >> #+END_latex
>> >> >> #+latex: \normalsize
>> >> >>
>> >> >> I don't actually use the above that much, bu= t tend to size plots
>> >> >> appropriately with something like the following,= which is
>> >> >> essentially
>> >> >> the same principle (how to pass latex options to= the results of code
>> >> >> block results while having Org still recognize w= here to put updated
>> >> >> results):
>> >> >>
>> >> >> #+begin_center
>> >> >> #+attr_latex: :width 8cm
>> >> >> #+RESULTS: test
>> >> >> [[file.pdf]]
>> >> >> #+end_center
>> >> >>
>> >> >> Just thought I'd add another option...
>> >> >>
>> >> >> John
>> >> >>
>> >> >>
>> >> >> > Shripad
>> >> >> > Tucson, AZ
>> >> >> >
>> >> >> > Shripad
>> >> >> > Tucson, AZ
>> >> >> >
>> >> >
>> >> >
>> >
>> >
>
>

--001a11c3073c39845204da9b791a--