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:12:35 -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=e89a8fb201eaf72d3704da9acf62 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USgD9-0004Lr-4q for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 00:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USgD6-0004Et-Hn for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 00:12:39 -0400 Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:64875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USgD6-0004Ef-Ba for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 00:12:36 -0400 Received: by mail-ob0-f180.google.com with SMTP id un3so2079542obb.39 for ; Wed, 17 Apr 2013 21:12:35 -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 --e89a8fb201eaf72d3704da9acf62 Content-Type: text/plain; charset=ISO-8859-1 Hello John, I think I figured out what the issue is. Whenever I have the code chunks outside a headline for example: ### This does not work ### #+TITLE: *scratch* #+AUTHOR: Shripad Sinari #+DATE: 2013-04-17 Wed #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:6 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path: http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: #+NAME: test1 #+BEGIN_SRC R :results output latex :exports results a <- 1:10 a #+END_SRC #+LATEX: \tiny #+RESULTS: test1 #+LATEX: \normalsize ############################ However just placing the code chunks under a headline works: #### The following works #### #+TITLE: *scratch* #+AUTHOR: Shripad Sinari #+DATE: 2013-04-17 Wed #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:6 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path: http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: * N1 #+NAME: test1 #+BEGIN_SRC R :results output latex :exports results a <- 1:10 a #+END_SRC #+LATEX: \tiny #+RESULTS: test1 #+LATEX: \normalsize ############################################## Note the headline =* N1= is the only change between the two codes. Regards, Shripad Tucson, AZ On Wed, Apr 17, 2013 at 8: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. > > 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 >> >> > >> > >> > >> > > --e89a8fb201eaf72d3704da9acf62 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello John,
I think I figured out what the issue= is. Whenever I have the code chunks outside a headline for example:
<= div style>
### This does not work ###

#+TITLE: =A0 =A0 *scratch*
#+AUTHOR: = =A0 =A0Shripad Sinari
#+DATE: =A0 =A0 =A02013-04-17 Wed
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: =A0en
#+OPTIONS: =A0 H:6 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: =A0 TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in= -toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline button= s:0 path:http://orgmode.org/org-= info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport=
#+LINK_UP:
#+LINK_HOME:
#+XSLT:

#+NAME: test1
#+BEGIN_SRC R :results = output latex :exports results
=A0 a <- 1:10
=A0 a
#+END_SRC


#+LATEX: \tiny
#+RESULTS: test1
= #+LATEX: \normalsize

############################<= /div>

However just placing the code chunks under a head= line works:

#### The following works #= ###
#+TITLE: =A0 =A0 *scratch*
#+AUTHOR: =A0= =A0Shripad Sinari
#+DATE: =A0 =A0 =A02013-04-17 Wed
#+DESCRIPTION:
#= +KEYWORDS:
#+LANGUAGE: =A0en
#+OPTIONS: =A0 H:6 num:t t= oc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: =A0 TeX= :t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:<= a href=3D"http://orgmode.org/org-info.js">http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: n= oexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:

* N1

#+NAME: test1
#+BEGIN_SRC R = :results output latex :exports results
=A0 a <- 1:10
=A0 a
#+END_SRC


#+LATEX: = \tiny
#+RESULTS: test1
#+LATEX: \normalsize
<= br>
##############################################

Note the headline =3D* N1=3D is the only change b= etween the two codes.
Regards,

Shripad
Tu= cson, AZ


On Wed, Apr 17, 2013 at 8:57 PM, shripad= sinari <shripad.sinari@gmail.com> wrote:
Hello John,
I am able to get your test.org to do size change but not my test fi= le. 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 He= ndy <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. I= nfact
> what gets resized is the "#+RESULTS: test" and the rest of t= he stuff after
> that to the #+end_center. It might work for images but does not for te= xt.

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@gmail.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
>> >
>
>


--e89a8fb201eaf72d3704da9acf62--