From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Placement=[H] not exporting to LaTeX anymore? Date: Fri, 23 Jul 2010 12:48:10 -0500 Message-ID: References: <11930.1279902710@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0466796935==" Return-path: Received: from [140.186.70.92] (port=39223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcMcg-0006gl-Vd for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 14:05:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcMLz-0005q6-WE for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 13:48:14 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:54938) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcMLz-0005pq-QV for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 13:48:11 -0400 Received: by vws16 with SMTP id 16so532205vws.0 for ; Fri, 23 Jul 2010 10:48:11 -0700 (PDT) In-Reply-To: <11930.1279902710@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode --===============0466796935== Content-Type: multipart/alternative; boundary=0016e646a4566acadb048c11a389 --0016e646a4566acadb048c11a389 Content-Type: text/plain; charset=ISO-8859-1 Thanks Nick. - Whoops on forgetting the = in my first example! - Is this hard to integrate? Is it possible to pass this option to LaTeX just as with figures? It only involves overriding [htb] with [H]... John On Fri, Jul 23, 2010 at 11:31 AM, Nick Dokos wrote: > John Hendy wrote: > > > > > I had a problem with floating tables/figures a ways back, found here: > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25566.html > > > > The solution, which was simply inserting #+ATTR_LATEX: placement=[H], > worked perfectly. > > > > I just ran into it again, however. my org file has the following order in > a section: > > > > * section > > text before table 1 > > table 1 (featuring both #+CAPTION and #+ATTR_LATEX: placement [H]) > > text before table 2 > > table 2 (featuring both #+CAPTION and #+ATTR_LATEX: placement [H]) > > > > [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: > > > > text before table 1 > > text before table 2 > > table 1 > > table 2 > > > > The exported .tex has this for table 1: > > \begin{table}[htb] > > \caption{table 1 caption} > > \begin{center} > > > > If I manually change the \begin{table}[htb] line to \begin{table}[H], > things work exactly as I want. Somehow the [H] option just isn't making it > > through... > > > > Just to be sure I created an blank org file with only this: > > > > * test > > > > #+CAPTION: test table > > #+ATTR_LaTeX: placement=[H] > > | 1 | 2 | 3 | 4 | > > |------+------+------+------| > > | test | test | test | test | > > | test | test | test | test | > > > > It gets exported to this: > > > > \begin{table}[htb] > > \caption{test table} > > \begin{center} > > \begin{tabular}{llll} > > > > Did something change between 6.35 and 7.01 or in the LaTeX table options? > > > > 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 > --0016e646a4566acadb048c11a389 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Nick.

- Whoops on forgetting the =3D in my first = example!
- Is this hard to integrate? Is it possible to pass this= option to LaTeX just as with figures? It only involves overriding [htb] wi= th [H]...

John

On Fri, J= ul 23, 2010 at 11:31 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
John Hendy <jw.h= endy@gmail.com> wrote:

>
> I had a problem with floating tables/figures a ways back, found here:= =A0http://www.mail-archive.com/emacs-orgmode@gnu.org/msg= 25566.html
>
> The solution, which was simply inserting #+ATTR_LATEX: placement=3D[H]= , worked perfectly.
>
> I just ran into it again, however. my org file has the following order= in a section:
>
> * section
> text before table 1
> table 1 (featuring both #+CAPTION and #+ATTR_LATEX: placement [H])
> text before table 2
> table 2=A0(featuring both #+CAPTION and #+ATTR_LATEX: placement [H]) >

[Just a note for the unwary: the syntax above is not quite correct -<= br> John gives the correct syntax below in his example.]

> But it's being exported to pdf like so:
>
> text before table 1
> text before table 2
> table 1
> table 2
>
> The exported .tex has this for table 1:
> \begin{table}[htb]
> \caption{table 1 caption}
> \begin{center}
>
> If I manually change the \begin{table}[htb] line to \begin{table}[H], = things work exactly as I want. Somehow the [H] option just isn't making= it
> through...
>
> Just to be sure I created an blank org file with only this:
>
> * test
>
> #+CAPTION: test table
> #+ATTR_LaTeX: placement=3D[H]
> | 1 =A0 =A0| 2 =A0 =A0| 3 =A0 =A0| 4 =A0 =A0|
> |------+------+------+------|
> | test | test | test | test |
> | test | test | test | test |
>
> It gets exported to this:
>
> \begin{table}[htb]
> \caption{test table}
> \begin{center}
> \begin{tabular}{llll}
>
> Did something change between 6.35 and 7.01 or in the LaTeX table optio= ns?
>

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

--0016e646a4566acadb048c11a389-- --===============0466796935== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0466796935==--