From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Latex image placement (...again. H vs. h!) Date: Sun, 21 Aug 2011 09:00:02 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv8ZJ-0004rF-U6 for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 10:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qv8ZI-0001XX-CS for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 10:00:05 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:45507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv8ZI-0001XP-3Q for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 10:00:04 -0400 Received: by bkbzt4 with SMTP id zt4so3697810bkb.0 for ; Sun, 21 Aug 2011 07:00:02 -0700 (PDT) In-Reply-To: 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: Stefan Nobis Cc: emacs-orgmode On Sun, Aug 21, 2011 at 1:28 AM, Stefan Nobis wrote: > 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). > > Another way to tackle this problem may be to just not use floats. As > the name suggests, these construct is meant to let things float. :) > > If you want a figure or table to be placed at exactly the point where > you place it, why are you using a float environment? Most people > answer at this point, because they want the captions and all examples > with captions use the float environment. Thats because with captions > and in the general case it makes sense to let LaTeX find the right > place for these things. Huh. I didn't realize the captions triggered something than just using [[./path/to/image]] with attr_latex options passed. I just duplicated the same section and removed all captions as well as placement=[H] options and they exported right where I would have wanted them. That's interesting -- learned something new! > > If you want exact, controlled placements and also a caption, have a > look at the package 'caption' (version 3.1, author Axel > Sommerfeldt). Then you can get rid of floats and don't have to bother > with obscure placement rules. :) I'll definitely take a look at that. I may also just use descriptive intros prior to each picture, as that would do the same as a caption, I suppose. It's just weird to me that sometimes the floats don't drop until a later section, in which case I think that's definitely *too* late. Sure, if they dump at the end of Section 1.1, fine -- that's where they are discussed. But now they're showing up in 1.2? Thanks, John > > -- > Until the next mail..., > Stefan. >