emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Latex image placement (...again. H vs. h!)
Date: Sat, 20 Aug 2011 07:57:05 -1000	[thread overview]
Message-ID: <m1k4a8ge4u.fsf@tsdye.com> (raw)
In-Reply-To: <CA+M2ft_pbtA7ifKVTvUWX4-=oiYetSDo19-EMxAP4ZFpGeR-fw@mail.gmail.com> (John Hendy's message of "Sat, 20 Aug 2011 12:32:17 -0500")

John Hendy <jw.hendy@gmail.com> writes:

> Was just rediscovering how to properly get floats to drop in where I
> want them in LaTeX export (right where I say vs. where LaTeX thinks is
> convenient). I knew I'd posted on this about a year ago and was trying
> to search for the thread. In the process, I came across this from the
> manual [1]:
>
> ,---
> | To modify the placement option of the floating environment,
> | add something like ‘placement=[h!]’ to the attributes.
> `---
>
> Now, I'm not sure what all the options are, but this didn't work for
> me. Only [H] properly dropped my floats in where I wanted them. Is
> there a reason for this? In looking in wikibooks, they seem to
> indicate that there are a few variants on the "here" option: [2]
>
> ,---
> | h: Place the float here, i.e., approximately at the same point it occurs
> | in the source text (however, not exactly at the spot)
> |
> | !: Override internal parameters Latex uses for determining "good"
> float positions.
> |
> | H: Places the float at precisely the location in the LaTeX code.
> | Requires the float package,[1] e.g., \usepackage{float}.
> | This is somewhat equivalent to h!.
> `---
>
> So, does my need for [H] mean that LaTeX just really, really, really
> wanted to space my images differently than I wanted? It does seem like
> h! *should* work based on the wikibooks description, but it didn't. Is
> [H] the only absolutely positive way to make sure floats are right
> where you want them based on the surrounding text?
>
> Thanks,
> John
>
> ---
> [1] http://orgmode.org/manual/Images-in-LaTeX-export.html
> [2] http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
>
>

Hi John,

I think of [h!] as "try really hard to place the float here" and [H] as
"place the float here regardless of the consequences."

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2011-08-20 17:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20 17:32 Latex image placement (...again. H vs. h!) John Hendy
2011-08-20 17:57 ` Thomas S. Dye [this message]
2011-08-21 14:00   ` John Hendy
2011-08-21  6:28 ` Stefan Nobis
2011-08-21 14:00   ` John Hendy
2011-08-21 14:20     ` Ista Zahn

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=m1k4a8ge4u.fsf@tsdye.com \
    --to=tsd@tsdye.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).