emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Placement=[H] not exporting to LaTeX anymore?
Date: Fri, 23 Jul 2010 12:31:50 -0400	[thread overview]
Message-ID: <11930.1279902710@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from John Hendy <jw.hendy@gmail.com> of "Fri\, 23 Jul 2010 10\:03\:18 CDT." <AANLkTil7goRO-1eThhrWLt1J11FRxwHzR-yqeQNHZ5E_@mail.gmail.com>

John Hendy <jw.hendy@gmail.com> 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

  reply	other threads:[~2010-07-23 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 15:03 Placement=[H] not exporting to LaTeX anymore? John Hendy
2010-07-23 16:31 ` Nick Dokos [this message]
2010-07-23 17:48   ` John Hendy
2010-07-23 22:16   ` Nick Dokos
2010-07-31  9:17     ` Patchwork: Patch 167 Accepted Bastien Guerry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11930.1279902710@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).