Nick Dokos <ndo...@gmail.com> writes: > Eric S Fraga <e.fr...@ucl.ac.uk> writes: > >> Luke Crook <l...@balooga.com> 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