From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: [PATCH] Documentation on placement options in LaTeX export Date: Sat, 28 May 2011 11:12:06 -0700 Message-ID: <20110528111206.6040745d@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/Lm6Tt4xsAwZ2/2mtQ4scik3" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQNzh-0001tf-Iu for emacs-orgmode@gnu.org; Sat, 28 May 2011 14:12:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQNzg-0008Qc-Fd for emacs-orgmode@gnu.org; Sat, 28 May 2011 14:12:13 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:58520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQNzg-0008QW-9f for emacs-orgmode@gnu.org; Sat, 28 May 2011 14:12:12 -0400 Received: by pzk4 with SMTP id 4so1418030pzk.0 for ; Sat, 28 May 2011 11:12:11 -0700 (PDT) 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: Org mode mailing list --MP_/Lm6Tt4xsAwZ2/2mtQ4scik3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Suvayu Open source is the future. It sets us free. --MP_/Lm6Tt4xsAwZ2/2mtQ4scik3 Content-Type: text/x-patch 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 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=[]\footnotesize + +\begin{figure}[]\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_/Lm6Tt4xsAwZ2/2mtQ4scik3--