From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Passing font size to exported LaTeX table Date: Tue, 24 May 2011 13:57:45 -0500 Message-ID: References: <80oc2s3v6k.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0023541868fcd7b5a004a40a29d9 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOwnc-0003HD-B4 for emacs-orgmode@gnu.org; Tue, 24 May 2011 14:57:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOwna-0002SB-VE for emacs-orgmode@gnu.org; Tue, 24 May 2011 14:57:48 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:55072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOwna-0002S7-Ke for emacs-orgmode@gnu.org; Tue, 24 May 2011 14:57:46 -0400 Received: by bwz17 with SMTP id 17so7438675bwz.0 for ; Tue, 24 May 2011 11:57:45 -0700 (PDT) In-Reply-To: <80oc2s3v6k.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org --0023541868fcd7b5a004a40a29d9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, May 24, 2011 at 11:44 AM, Sebastien Vauban < wxhgmqzgwmuf@spammotel.com> wrote: > Hi John, > > John Hendy wrote: > > I can control a table font size directly from the .tex file like so: > > > > --- > > \scriptsize{ > > \begin{center} > > \begin{tabular}{lllrr} > > > > table entries here > > > > \end{tabular} > > \end{center} > > } > > --- > > > > Any way to pass this from org-mode? Otherwise, I keep changing the org > file, > > exporting, and then having to add this to the tex file and re-export. > > > > I tried: > > --- > > #+begin_latex > > \scriptsize{ > > #+end_latex > > > > |org|table|here| > > > > #+begin_latex > > } > > #+end_latex > > --- > > > > without success. > > You put the things in the wrong order: > > 1. put a group around some LaTeX commands > 2. add the macro \scriptsize in it > > Hence: > > #+begin_src org > #+begin_latex > {\scriptsize > #+end_latex > > |org|table|here| > > #+begin_latex > } > #+end_latex > #+end_src > > should do it (not tested). > > I'm getting this error upon export (no PDF created): --- ! Argument of \frame has an extra }. \par l.142 } Runaway argument? \par \par \par ! Paragraph ended before \frame was complete. \par l.142 } ! Extra }, or forgotten \endgroup. } l.142 } ! Extra }, or forgotten \endgroup. \endframe ->\egroup \begingroup \def \@currenvir {frame} l.145 \end{frame} ) Runaway argument? --- I'm assuming something is not liking that dangling "}"... Thoughts? John > Best regards, > Seb > > -- > S=C3=A9bastien Vauban > > > --0023541868fcd7b5a004a40a29d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, May 24, 2011 at 11:44 AM, Sebastien Vaub= an <wxhg= mqzgwmuf@spammotel.com> wrote:
Hi John,

John Hendy wrote:
> I can control a table font size directly from the .tex file like so: >
> ---
> \scriptsize{
> \begin{center}
> \begin{tabular}{lllrr}
>
> table entries here
>
> \end{tabular}
> \end{center}
> }
> ---
>
> Any way to pass this from org-mode? Otherwise, I keep changing the org= file,
> exporting, and then having to add this to the tex file and re-export.<= br> >
> I tried:
> ---
> #+begin_latex
> \scriptsize{
> #+end_latex
>
> |org|table|here|
>
> #+begin_latex
> }
> #+end_latex
> ---
>
> without success.

You put the things in the wrong order:

1. put a group around some LaTeX commands
2. add the macro \scriptsize in it

Hence:

#+begin_src org
=C2=A0#+begin_latex
=C2=A0{\scriptsize
=C2=A0#+end_latex

=C2=A0|org|table|here|

=C2=A0#+begin_latex
=C2=A0}
=C2=A0#+end_latex
#+end_src

should do it (not tested).


I'm getting this error upon export= (no PDF created):
---
! Argument of \frame has an= extra }.
<inserted text>=C2=A0
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \par=C2=A0
l.142 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0
Runaway argume= nt?
=C2=A0\par \par \par=C2=A0
! Paragraph ended before= \frame was complete.
<to be read again>=C2=A0
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\par= =C2=A0
l.142 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0
! Extra }, or forgo= tten \endgroup.
<recently read> }
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
l.142 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0
! Extra }, or forgotten \endgroup.<= /div>
\endframe ->\egroup=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \begingroup \def \@currenvir {frame}
l.145 \end{frame}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0
)
Runaway argument?
---

I'm assuming something is not liking that dangling "}&q= uot;...

Thoughts?


John
=C2=A0
Best regards,
=C2=A0Seb

--
S=C3=A9bastien Vauban



--0023541868fcd7b5a004a40a29d9--