From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: List of Figures not being generated in 8.0.3? Date: Thu, 13 Jun 2013 08:46:48 +0100 Message-ID: <87hah2a1w7.fsf@ucl.ac.uk> References: <8761xjnx5t.fsf@ucl.ac.uk> <87fvwn2qj5.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un3xc-0008DS-KP for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 05:36:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un3xb-0007GE-0B for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 05:36:52 -0400 Received: from ch1ehsobe005.messaging.microsoft.com ([216.32.181.185]:54971 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un3xa-0007G5-Qn for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 05:36:50 -0400 In-Reply-To: <87fvwn2qj5.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Wed, 12 Jun 2013 13:21:50 -0400") 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: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Eric S Fraga writes: > >> Luke Crook writes: >> >>> I just noticed that the List of Figures is not being generated in 8.0.3. >>> >>> I have a figure with; >>> >>> #+LATEX: \listoffigures >>> >>> #+ATTR_LaTeX: width=5.5cm >> >> Maybe try with >> >> #+attr_latex: :width 5.5cm >> >> The format for attributes has changed in version 8 of org. > > Although this might lead to a problem in how the figure appears on the > page, I believe the main problem was that there was no caption > associated with the image, so it was not put in a figure environment, it > was just inlined: inline images do not contribute to the list of > figures. > As Rasmus pointed out, #+caption was incorrectly associated with the > code block, rather than with the resulting image. Indeed! I had taken the OP's initial problem and changed the src block to a direct link to a figure so as to try it out. The interesting thing is that, with an image, the OP's attr_latex line being wrong leads to no figure and no figure caption obviously. Fixing that line allowed the figure to appear along with caption and table of contents. I totally forgot about there being a src block in the original case! The OP's problem was fundamentally about the wrong place for the caption and attr_latex lines, as you indicate. However, it would appear that my experiment highlights a lack of robustness in the processing of attr_latex lines. Having the figure disappear completely because of an error in that line seems a little drastic. Unfortunately, trying to fix this is a little beyond me... :( -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.3-193-g334581