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 20:57:54 -0700 Message-ID: References: <878v5kkxyz.fsf@ericabrahamsen.net> <871ub9frnp.fsf@ericabrahamsen.net> <87obdcverf.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b2e4d5e75658304da9a9b7d Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfyw-0001sA-DG for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USfyt-0007LL-Mb for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:57:58 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:44108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfyt-0007LE-Ff for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:57:55 -0400 Received: by mail-ob0-f172.google.com with SMTP id v19so2015202obq.3 for ; Wed, 17 Apr 2013 20:57:54 -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 --047d7b2e4d5e75658304da9a9b7d Content-Type: multipart/alternative; boundary=047d7b2e4d5e75658004da9a9b7b --047d7b2e4d5e75658004da9a9b7b Content-Type: text/plain; charset=ISO-8859-1 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. 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 > >> > > > > > > --047d7b2e4d5e75658004da9a9b7b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello John,
I am able to get your test.org to do size change but not my test file. Please f= ind it attached herewith. I am sure it is setup issue now.
= Thanks,
Shripad.

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 8:53 PM, John He= ndy <jw.hendy@gmail.com> wrote:
You must have a setup or installation issue. See the attached .org an= d
resultant .pdf for me.

What's in your #+options line (or setupfile)? I'm wondering if you<= br> don't have something like =3Dtex:t=3D or =3DLaTeX:t=3D which might be r= equired
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
>> <shripad.sinari@gma= il.com> 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 dece= nt
>> 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
>> =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, but tend to size plo= ts
>> appropriately with something like the following, which is essentia= lly
>> the same principle (how to pass latex options to the results of co= de
>> block results while having Org still recognize where to put update= d
>> 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
>> >
>
>

--047d7b2e4d5e75658004da9a9b7b-- --047d7b2e4d5e75658304da9a9b7d Content-Type: application/octet-stream; name="t2.org" Content-Disposition: attachment; filename="t2.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hfnef6ed2 IytUSVRMRTogICAgICpzY3JhdGNoKgojK0FVVEhPUjogICAgU2hyaXBhZCBTaW5hcmkKIytEQVRF OiAgICAgIDIwMTMtMDQtMTcgV2VkCiMrREVTQ1JJUFRJT046CiMrS0VZV09SRFM6CiMrTEFOR1VB R0U6ICBlbgojK09QVElPTlM6ICAgSDo2IG51bTp0IHRvYzp0IFxuOm5pbCBAOnQgOjp0IHw6dCBe OnQgLTp0IGY6dCAqOnQgPDp0CiMrT1BUSU9OUzogICBUZVg6dCBMYVRlWDp0IHNraXA6bmlsIGQ6 bmlsIHRvZG86dCBwcmk6bmlsIHRhZ3M6bm90LWluLXRvYwojK0lORk9KU19PUFQ6IHZpZXc6bmls IHRvYzpuaWwgbHRvYzp0IG1vdXNlOnVuZGVybGluZSBidXR0b25zOjAgcGF0aDpodHRwOi8vb3Jn bW9kZS5vcmcvb3JnLWluZm8uanMKIytFWFBPUlRfU0VMRUNUX1RBR1M6IGV4cG9ydAojK0VYUE9S VF9FWENMVURFX1RBR1M6IG5vZXhwb3J0CiMrTElOS19VUDoKIytMSU5LX0hPTUU6CiMrWFNMVDoK CgojK05BTUU6IHRlc3QxCiMrQkVHSU5fU1JDIFIgOnJlc3VsdHMgb3V0cHV0IGxhdGV4IDpleHBv cnRzIHJlc3VsdHMKICBsaXN0LmZpbGVzKHJlY3Vyc2l2ZT1GKQojK0VORF9TUkMKCiMrQkVHSU5f Q0VOVEVSCiMrQVRUUl9MQVRFWDogOndpZHRoIDIwY20KIytSRVNVTFRTOiB0ZXN0MQojK0JFR0lO X0xhVGVYCiBbMV0gIkRlc2t0b3AiICAgICAgICAgICAgICJEb2N1bWVudHMiICAgICAgICAgICAi RG93bmxvYWRzIgogWzRdICJEcm9wYm94IiAgICAgICAgICAgICAiTGlicmFyeSIgICAgICAgICAg ICAgIk1haWwiCiBbN10gIk1vdmllcyIgICAgICAgICAgICAgICJNdXNpYyIgICAgICAgICAgICAg ICAiTXlEcm9wQm94IgpbMTBdICJOZXdzIiAgICAgICAgICAgICAgICAiUGljdHVyZXMiICAgICAg ICAgICAgIlB1YmxpYyIKWzEzXSAibG9jYWwiICAgICAgICAgICAgICAgIm0ub3JnIiAgICAgICAg ICAgICAgICJvcmciClsxNl0gIm9yZy5pY3MiICAgICAgICAgICAgICJvcmdtb2RlLWFjY2Vzc29y aWVzIiAicHJvamVjdHMiClsxOV0gInQyLmh0bWwiICAgICAgICAgICAgICJ0Mi5vcmciICAgICAg ICAgICAgICAidDIucGRmIgpbMjJdICJ0Mi50ZXgiICAgICAgICAgICAgICAidG9vbHMiICAgICAg ICAgICAgICAgIndvcmciCiMrRU5EX0xhVGVYCiMrRU5EX0NFTlRFUgoK --047d7b2e4d5e75658304da9a9b7d--