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:43:29 -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=089e013a0a1eeadf4804da9a67d3 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfkx-0006NG-VG for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:43:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USfkw-0002fT-UW for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:43:31 -0400 Received: from mail-oa0-f48.google.com ([209.85.219.48]:42765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USfkw-0002ea-NW for emacs-orgmode@gnu.org; Wed, 17 Apr 2013 23:43:30 -0400 Received: by mail-oa0-f48.google.com with SMTP id f4so567462oah.21 for ; Wed, 17 Apr 2013 20:43:30 -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 --089e013a0a1eeadf4804da9a67d3 Content-Type: text/plain; charset=ISO-8859-1 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. 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 > > > --089e013a0a1eeadf4804da9a67d3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello John,
I have tried this with text but it d= oes not seem to resize the text. Infact what gets resized is the "#+RE= SULTS: test" and the rest of the stuff after that to the #+end_center.= It might work for images but does not for text.
Regards,
Shripad.

Shripad
Tucson, AZ<= /div>


On Wed, Apr 17, 2013 at 8:13 PM, John He= ndy <jw.hendy@gmail.com> wrote:
I didn't really follow this thread, but I resize things a decent<= br> 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 1= 0
#+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
>

--089e013a0a1eeadf4804da9a67d3--