* [PATCH] Documentation on placement options in LaTeX export
@ 2011-05-28 18:12 Suvayu Ali
2011-07-02 13:34 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Suvayu Ali @ 2011-05-28 18:12 UTC (permalink / raw)
To: Org mode mailing list
[-- Attachment #1: Type: text/plain, Size: 58 bytes --]
--
Suvayu
Open source is the future. It sets us free.
[-- Attachment #2: 0001-Documentation-on-placement-options-in-LaTeX-export.patch --]
[-- Type: text/x-patch, Size: 2140 bytes --]
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation on placement options in LaTeX export
2011-05-28 18:12 [PATCH] Documentation on placement options in LaTeX export Suvayu Ali
@ 2011-07-02 13:34 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2011-07-02 13:34 UTC (permalink / raw)
To: Suvayu Ali; +Cc: Org mode mailing list
Hi Suvayu,
sorry for the late answer, I just tried to apply your patch but there
are conflicts with the most recent version of org.texi -- would you mind
getting the latest git org-mode.git and replay your changes against it?
I could then apply your patch.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-02 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-28 18:12 [PATCH] Documentation on placement options in LaTeX export Suvayu Ali
2011-07-02 13:34 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).