From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Latex image placement (...again. H vs. h!) Date: Sat, 20 Aug 2011 07:57:05 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QupnF-0001j7-W3 for emacs-orgmode@gnu.org; Sat, 20 Aug 2011 13:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QupnD-0001Xe-Ma for emacs-orgmode@gnu.org; Sat, 20 Aug 2011 13:57:13 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:34473) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QupnD-0001XS-FJ for emacs-orgmode@gnu.org; Sat, 20 Aug 2011 13:57:11 -0400 In-Reply-To: (John Hendy's message of "Sat, 20 Aug 2011 12:32:17 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode John Hendy 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 =E2=80=98placement=3D[h!]=E2=80=99 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 --=20 Thomas S. Dye http://www.tsdye.com