From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to populate a 'list of figures'?
Date: Wed, 14 Sep 2016 14:53:46 -0400 [thread overview]
Message-ID: <878tuuz51h.fsf@gmail.com> (raw)
In-Reply-To: 87wpie2xqo.fsf@skimble.plus.com
[-- Attachment #1: Type: text/plain, Size: 3094 bytes --]
Sharon Kimble <boudiccas@skimble.plus.com> 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).
[-- Attachment #2: lof.pdf --]
[-- Type: application/pdf, Size: 625479 bytes --]
[-- Attachment #3: Type: text/plain, Size: 10 bytes --]
--
Nick
prev parent reply other threads:[~2016-09-14 18:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 10:52 How to populate a 'list of figures'? Sharon Kimble
2016-09-07 13:36 ` Peter Frings
2016-09-07 15:02 ` Sharon Kimble
2016-09-07 20:13 ` Nick Dokos
2016-09-14 17:32 ` Sharon Kimble
2016-09-14 18:53 ` Nick Dokos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878tuuz51h.fsf@gmail.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.