[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to populate a 'list of figures'?

From: Nick Dokos
Subject: Re: [O] How to populate a 'list of figures'?
Date: Wed, 07 Sep 2016 16:13:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Sharon Kimble <address@hidden> writes:

> Peter Frings <address@hidden> writes:
>>> On 07 Sep 2016, at 12:52, Sharon Kimble <address@hidden> wrote:
>>> I'm having great difficulty in being able to generate and populate a
>>> 'list of figures' in my orgmode-2-latex document. I currently have this
>>> as a figure in my org-mode file -
>> [snip]
>>> However, when I generate the pdf using xelatex all that it shows for my
>>> list of figures is 'List of Figures'!
>>> So how can I get the list of figures to be populated please?
>> To get the list of figures (or any other reference, for that matter), you 
>> have to typeset your
>> document twice. The first time, tex build a list of figures (in a separate 
>> file, with .lof
>> extension); the second time, it inserts that list where the \listoffigures{} 
>> is. This is common to
>> tex: you have to typeset twice to get the references and lists correct.
> Thanks Peter. But I'm typesetting it at least three times. But its just
> not building the list of figures.
> However, if I run 'mklatex' on my source file it generates a 'foo.lof',
> but doesn't actually populate the 'list of figures'! And 'mklatex'
> doesn't finish either! But then I'm just learning how to actually use
> it.

I start with a lof.org file that looks like this (I deleted your citation
and changed the path of the image since I don't have either of those locally):

--8<---------------cut here---------------start------------->8---
#+LATEX: \listoffigures{}

* Foo

Some text.

#+CAPTION: The four principles of person-centred care 
#+ATTR_LaTeX: :width 0.5\textwidth :float t :placement [H]
#+LABEL: fig:four-principles

Some more text.
* Bar
--8<---------------cut here---------------end--------------->8---

I exported and got this:

--8<---------------cut here---------------start------------->8---
% Created 2016-09-07 Wed 15:59
% Intended LaTeX compiler: pdflatex
\author{Nick Dokos}
 pdfauthor={Nick Dokos},
 pdfcreator={Emacs (Org mode 8.3.5)}, 




Some text.

The four principles of person-centred care}

Some more text.
--8<---------------cut here---------------end--------------->8---

Then xelatex'ed twice (shell escape is for minted - you may not need it):

   xelatex --shell-escape lof.tex
   # at this point, lof.lof and lof.toc exist and lof.lof contains
   # \contentsline {figure}{\numberline {1}{\ignorespaces The four principles 
of person-centred care}}{1}{figure.1}
   # then again to incorporate them into the output
   xelatex --shell-escape lof.tex

The list of figures is present and complete (see attached PDF).

Attachment: lof.pdf
Description: lof.pdf

If that does not work for you, where exactly does it break?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]