From mboxrd@z Thu Jan  1 00:00:00 1970
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Subject: Re: Passing font size to exported LaTeX table
Date: Fri, 27 May 2011 11:30:13 -0700
Message-ID: <20110527113013.253f79d9@bhishma.homelinux.net>
References: <BANLkTikRuyA7_sCC3pyVEHsJ0KXtP88_xw@mail.gmail.com>
	<80oc2s3v6k.fsf@somewhere.org> <jw.hendy@gmail.com>
	<BANLkTin9_y50FGhppB61nzuFuhR4Nbm3jw@mail.gmail.com>
	<5180.1306265114@alphaville.americas.hpqcorp.net>
	<BANLkTikepg156=6gz=j-9zYxm2tN3J1r1w@mail.gmail.com>
	<m1ei3nzx9c.fsf@tsdye.com>
	<6073.1306269772@alphaville.americas.hpqcorp.net>
	<6564.1306271566@alphaville.americas.hpqcorp.net>
	<6636.1306271949@alphaville.americas.hpqcorp.net>
	<m162ozz1lg.fsf@tsdye.com>
	<BANLkTikz=QHyLFGQnXbPpU-aimbrn2o9-Q@mail.gmail.com>
	<m1fwo0wsgv.fsf@tsdye.com>
	<BANLkTinjAt5A4Wf68Qwa6_4uZwy_L7a5Bw@mail.gmail.com>
	<m1boyow22n.fsf@tsdye.com>
	<20110527095013.385082e0@bhishma.homelinux.net>
	<m17h9cvyc1.fsf@tsdye.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="MP_/Vzqrd33n3ukK1GHRyX.8BsQ"
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([140.186.70.92]:42018)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fatkasuvayu+linux@gmail.com>) id 1QQ1nk-0003ni-FT
	for emacs-orgmode@gnu.org; Fri, 27 May 2011 14:30:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fatkasuvayu+linux@gmail.com>) id 1QQ1nj-0000Rl-59
	for emacs-orgmode@gnu.org; Fri, 27 May 2011 14:30:24 -0400
Received: from mail-px0-f179.google.com ([209.85.212.179]:58251)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fatkasuvayu+linux@gmail.com>) id 1QQ1ni-0000Rh-SO
	for emacs-orgmode@gnu.org; Fri, 27 May 2011 14:30:23 -0400
Received: by pxi2 with SMTP id 2so1193630pxi.38
	for <emacs-orgmode@gnu.org>; Fri, 27 May 2011 11:30:21 -0700 (PDT)
In-Reply-To: <m17h9cvyc1.fsf@tsdye.com>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: </archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>, nicholas.dokos@hp.com, emacs-orgmode@gnu.org

--MP_/Vzqrd33n3ukK1GHRyX.8BsQ
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello Tom,

On Fri, 27 May 2011 07:37:50 -1000
tsd@tsdye.com (Thomas S. Dye) wrote:

> Aloha Suvayu,
> 
> I think #+ATTR_LaTeX: needs more documentation.  I worked very hard to
> read between the lines of the Org-mode manual to arrive at your simple
> solution but didn't manage to come close!
> 
> Are you able to summarize the possibilities of #+ATTR_LaTeX?  I'm
> thinking that a general description somewhere in the Org-mode manual
> might be useful.  It would probably also be good to augment the
> existing descriptions of its use in the manual, as well.  Perhaps it
> would be possible to propose a patch to the documentation?
> 

I am not very familiar with org-latex internals. Based on my limited
understanding I wrote the attached patch to the org manual. I hope it
is up to par.

> All the best,
> Tom

Thanks a lot for your encouragement. :)

-- 
Suvayu

Open source is the future. It sets us free.

--MP_/Vzqrd33n3ukK1GHRyX.8BsQ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename=0001-Documentation-on-placement-options-in-LaTeX-export.patch

>From 431d7e275a0b374c7b1e8135fe7e5c7d72f46a75 Mon Sep 17 00:00:00 2001
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Date: Fri, 27 May 2011 11:18:35 -0700
Subject: [PATCH] Documentation on placement options in LaTeX export.

* Placement options can be passed to floating environments
  like 'figure' or 'table' with the '#+ATTR_LaTeX:' line
  during LaTeX export. Added an example to demonstrate that.
---
 doc/org.texi |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

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 literally
 @subsection Tables in @LaTeX{} export
 @cindex tables, in @LaTeX{} export
 
-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} line to
 request a @code{longtable} environment for the table, so that it may span
 several pages, or to change the default table environment from @code{table}
@@ -10207,7 +10207,20 @@ element.  You can use an @code{#+ATTR_LaTeX:} line 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=[h!]} to the
-Attributes.
+Attributes. It is to be noted this option can be used with tables as well.
+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=[<options>]\footnotesize
+
+\begin{figure}[<options>]\footnotesize
+...
+\end{figure}
+@end example
 
 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
-- 
1.7.5.1


--MP_/Vzqrd33n3ukK1GHRyX.8BsQ--