From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-latex and figures Date: Fri, 28 Jan 2011 06:42:38 -1000 Message-ID: <96C09F7D-50E0-4675-8495-F383D69A843E@tsdye.com> References: <29E1F9F4-5F76-45FE-9F02-2DB658597A07@tsdye.com> <877hdpqawt.fsf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=41088 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PirPK-000709-Oz for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 11:42:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PirPJ-0002FS-Ph for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 11:42:46 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:54762) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PirPJ-0002F4-HN for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 11:42:45 -0500 In-Reply-To: <877hdpqawt.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: Chris Malone , emacs-orgmode@gnu.org, Andrea Crotti On Jan 28, 2011, at 5:56 AM, Eric S Fraga wrote: > Chris Malone writes: > >> Hi Andrea, >> >> I'm inclined to agree with Tom - there is no default that will work =20= >> in all >> instances. That being said, you can use an #ATTR_LATEX line to =20 >> modify the >> placement for each image - see here: >> http://orgmode.org/org.html#Images-in-LaTeX-export >> >> Alternatively, (and this is very much a hack, which I can't =20 >> guarantee will >> work) you could make the org-mode default behaviour be [ptb] by =20 >> replacing >> the =3D(floatp "[htb]")=3D line with =3D(floatp "[ptb]")=3D in the >> =3Dorg-export-latex-format-image=3D function definition in the file >> org/lisp/org-latex.el ... you would have to do something similar to =20= >> the >> =3Dorg-export-latex-tables=3D function for tables. >> >> HTH, >> Chris > > I'm not understanding something in this whole thread: all the example > options seem to imply that 'h' and 'p' are somehow exclusive. I have > always used [hbtp] (a sequence that essentially says: put the figure =20= > in > place as soon as you can), sometimes with and sometimes without '!' > before the h, and I have never had reason to complain about the > placement of figures! > > Well, for some journals/conferences, I've had to adapt this to [hp] if > they insist on figures always at the top of a page... but I always =20 > have > both h and p options. > > Just my two =A2s... > Hi Eric, Floats are tricky in LaTeX. The two most frequent problems, in my =20 experience, are the "all the floats at the end" problem that bit =20 Andrea and the "small float on its own page" problem. The first of =20 these comes from not including [p] and the second comes from including =20= [p]. I think you have to pick your poison here--there doesn't seem to =20= be a default that always works perfectly. If you want to avoid both problems, as I do, then I find the best =20 default strategy to be [htb!], with [p] used for figures that are =20 designed specifically to fit the whole page. What this implies is =20 that figures are designed to fit the printed page, with a preference =20 for figures that are short and wide and a strong aversion to figures =20 that are tall and narrow (except, perhaps, with two-column layouts, =20 which have their own drawbacks). For figures at the top of a page, you probably want [tp] rather than =20 [hp], since [h] will let a figure start anywhere in happens to fall on =20= the page. All the best, Tom=