From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex export bug? Odd behavior with figures... Date: Wed, 26 May 2010 00:23:40 -0400 Message-ID: <15804.1274847820@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=51241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH89h-0006ux-Jf for emacs-orgmode@gnu.org; Wed, 26 May 2010 00:23:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OH89g-0007Nl-HS for emacs-orgmode@gnu.org; Wed, 26 May 2010 00:23:45 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:52252) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH89g-0007Nd-EQ for emacs-orgmode@gnu.org; Wed, 26 May 2010 00:23:44 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L300013OEVGC3JD@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 25 May 2010 23:23:40 -0500 (CDT) In-reply-to: Message from John Hendy of "Tue, 25 May 2010 17:26:35 CDT." 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: John Hendy Cc: nicholas.dokos@hp.com, emacs-orgmode John Hendy wrote: > > I've inspected the generated .tex file and this shows up where expected in > both picture instances: > > \begin{figure}[htb] > \centering > \includegraphics[width=12cm]{/home/jwhendy/Desktop/file[1/2].pdf} > \caption{text here} > \end{figure} > Figures (and tables) are floating environments: latex will place them at or after the place where they are mentioned in the latex file, at the first place where it finds space, consistent with the spec ([htb] above). You can try this: #+ATTR_LaTeX: width=12cm placement=[H] The spacing will probably be awful. Another way to force the order is to forego the CAPTION: that will translate the images into \includegraphics without the figure environment. The spacing might be awful but the order will be preserved. There was a discussion about such matters some time ago on the mailing list (in particular, how CAPTIONS affect output), but I don't remember the resolution and I'm too tired to go look. Seek and ye shall find. You can also look in the TeX FAQ, e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=figurehere, for more. HTH, Nick