[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, 14 Sep 2016 14:53:46 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Sharon Kimble <address@hidden> writes:
>
> Your setup is working as you say even though I'm using the report class,
> and it *does* generate the list of figures.
>
IIUC, when you use the report class, things work fine, but when you use
your my-report class, they don't - is that correct?
>>
>>
>> If that does not work for you, where exactly does it break?
>
> But I am using the 'my-report' class which is defined as this in my init.org
> file.
>
> (add-to-list 'org-latex-classes
> '("my-report"
> "\\documentclass{report}
> [NO-DEFAULT-PACKAGES]"
> ("\\chapter{%s}" . "\\chapter*{%s}")
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
>
> Using this class my main working file is exported and built into 395
> pages, however if I use the 'report' class it works out to about 483
> pages.
>
AFAICT, the difference between report and my-report is that the report class
produces parts from the top-level headlines, instead of chapters.
Not sure why there is such a big difference in page numbers. How many
top-level headlines do you have? I imagine a part adds a couple of
pages, so about 40 top-level headlines would account for the
difference in page numbers.
> Using just the 'report' class it does generate a '*.lof' file, and this is it
> -
>
> ...
> \contentsline {figure}{\numberline {8.1}{\ignorespaces The four principles of
> person-centred care \parencite {0055}\relax }}{30}{figure.caption.25}
> ...
>
> Which is obviously useless for my needs.
Well, yes: the page numbers are going to be off.
So you have just one figure, correct?
>
> Tomorrow I'm going to be working on what differences there are between
> the '*.tex' file built using the report class and my working document in
> 'my-report' class, and try and build into my 'my-report' class the
> differences and try and generate some useful 8.lof files.
>
The preamble and the first few lines after \begin{document} should be
instructive.
Meanwhile, I have a class like your my-report class: no parts (no para/subparas
either but
I can't see that that would make any difference):
("report-sans-parts" "\\documentclass[11pt]{report}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
I modified my test file to use that:
--8<---------------cut here---------------start------------->8---
#+LATEX_CLASS: report-sans-parts
#+LATEX: \listoffigures{}
#+T
* 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
[[../images/one.png]]
Some more text.
* Bar
--8<---------------cut here---------------end--------------->8---
It still works fine (see attached PDF).
lof.pdf
Description: lof.pdf
--
Nick