From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Placement=[H] not exporting to LaTeX anymore? Date: Fri, 23 Jul 2010 12:31:50 -0400 Message-ID: <11930.1279902710@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=33675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcLAP-00068V-LF for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 12:32:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcLAO-000805-1N for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 12:32:09 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:56624) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcLAN-0007za-UJ for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 12:32:08 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L6000IIXR92RBA0@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 11:31:52 -0500 (CDT) In-reply-to: Message from John Hendy of "Fri\, 23 Jul 2010 10\:03\:18 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: nicholas.dokos@hp.com, emacs-orgmode John Hendy wrote: >=20 > I had a problem with floating tables/figures a ways back, found here:=C2= =A0http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25566.html >=20 > The solution, which was simply inserting #+ATTR_LATEX: placement=3D[H], w= orked perfectly. >=20 > I just ran into it again, however. my org file has the following order in= a section: >=20 > * section > text before table 1 > table 1 (featuring both #+CAPTION and #+ATTR_LATEX: placement [H]) > text before table 2 > table 2=C2=A0(featuring both #+CAPTION and #+ATTR_LATEX: placement [H]) >=20 [Just a note for the unwary: the syntax above is not quite correct - John gives the correct syntax below in his example.] > But it's being exported to pdf like so: >=20 > text before table 1 > text before table 2 > table 1 > table 2 >=20 > The exported .tex has this for table 1: > \begin{table}[htb] > \caption{table 1 caption} > \begin{center} >=20 > If I manually change the \begin{table}[htb] line to \begin{table}[H], thi= ngs work exactly as I want. Somehow the [H] option just isn't making it > through... >=20 > Just to be sure I created an blank org file with only this: >=20 > * test >=20 > #+CAPTION: test table > #+ATTR_LaTeX: placement=3D[H] > | 1 =C2=A0 =C2=A0| 2 =C2=A0 =C2=A0| 3 =C2=A0 =C2=A0| 4 =C2=A0 =C2=A0| > |------+------+------+------| > | test | test | test | test | > | test | test | test | test | >=20 > It gets exported to this: >=20 > \begin{table}[htb] > \caption{test table} > \begin{center} > \begin{tabular}{llll} >=20 > Did something change between 6.35 and 7.01 or in the LaTeX table options? >=20 I think that placement works fine for figures, but not for tables. In fact, I cannot find the code that's supposed to do this for tables: I suspect that it never existed. So unless I'm mistaken, it seems that tables never got the placement treatment that figures did. Nick