From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Passing font size to exported LaTeX table Date: Sat, 28 May 2011 09:17:18 +0200 Message-ID: <80wrhbfg5d.fsf@somewhere.org> References: <80oc2s3v6k.fsf@somewhere.org> <5180.1306265114@alphaville.americas.hpqcorp.net> <6073.1306269772@alphaville.americas.hpqcorp.net> <6564.1306271566@alphaville.americas.hpqcorp.net> <6636.1306271949@alphaville.americas.hpqcorp.net> <20110527095013.385082e0@bhishma.homelinux.net> <20110527113013.253f79d9@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Thomas and Suvayu, Thomas S. Dye wrote: > Suvayu Ali writes: >> diff --git a/doc/org.texi b/doc/org.texi >> index aa34cd3..5fa1e22 100644 >> --- a/doc/org.texi >> +++ b/doc/org.texi >> @@ -10160,7 +10160,7 @@ All lines between these markers are exported lit= erally >> @subsection Tables in @LaTeX{} export >> @cindex tables, in @LaTeX{} export >>=20=20 >> -For @LaTeX{} export of a table, you can specify a label and a caption >> +For @LaTeX{} export of a table, you can specify a label, a caption and = placement options >> (@pxref{Images and tables}). You can also use the @code{ATTR_LaTeX} li= ne to >> request a @code{longtable} environment for the table, so that it may sp= an >> several pages, or to change the default table environment from @code{ta= ble} >> @@ -10207,7 +10207,20 @@ element. You can use an @code{#+ATTR_LaTeX:} l= ine to specify the various >> options that can be used in the optional argument of the >> @code{\includegraphics} macro. To modify the placement option of the >> @code{figure} environment, add something like @samp{placement=3D[h!]} t= o the >> -Attributes. >> +Attributes. It is to be noted this option can be used with tables as we= ll. >> +The options are passed as the placement option to floating environments= like >> +@code{figure} or @code{table}. One can pass other compatible options as= well. >> +For example the @code{#+ATTR_LaTeX:} line below is exported as the >> +@code{figure} environment below it. >> + >> +@cindex #+ATTR_LaTeX >> +@example >> +#+ATTR_LaTeX: placement=3D[]\footnotesize >> + >> +\begin{figure}[]\footnotesize >> +... >> +\end{figure} >> +@end example >>=20=20 >> If you would like to let text flow around the image, add the word @samp= {wrap} >> to the @code{#+ATTR_LaTeX:} line, which will make the figure occupy the= left > > This looks like an improvement to me. I think so too. The real test will be, though, the day I will search for additional info about the tables. And the above text seems neat to me. > I'd be interested to hear what Nick and Seb might have to say. They often > catch things I miss. ;-) > If you don't get other comments, I'd encourage you to submit this as a pa= tch > (I think this requires [PATCH] in the subject line) to see what Carsten a= nd > crew have to say about it. > > Thanks again for finding this solution to specifying the font size for > floating tables on a table-by-table basis in LaTeX export. I'd been looki= ng > for your solution, and for Nick's solution that works on a per-document or > buffer basis, for many months without success. Thanks to both of you, for closing this loop up to the documentation stuff! Best regards, Seb --=20 S=C3=A9bastien Vauban