I am writing a report with figures that have (often voluminous) notes. Currently I am writing the notes under the figure.
\documentclass{scrreprt}
\usepackage[demo]{graphicx}
\usepackage{lipsum}
\newcommand{\notes}[1]{\textbf{Notes:}~\footnotesize{\textit{#1}}}
\begin{document}
\lipsum[1]
\begin{figure}[h]
\caption{Main caption}
\includegraphics[width=\linewidth]{}
\notes{\lipsum[1-2]}
\end{figure}
\lipsum[1]
\begin{figure}[h]
\caption{Other caption}
\includegraphics[width=\linewidth]{}
\notes{Foobar}
\end{figure}
\end{document}
But I would prefer that the \notes
are not printed within the figure float (where it takes up too much room) but are printed as endnotes in their own table. Edit That is, I would like a command \printfigurenotes
that prints a list with the contents of the notes:
List of Figure notes:
Figure 1: \lipsum[1-2]
Figure 2: Foobar.
How can I achieve this?
The closest existing structure I could find is to put the contents of the notes within the optional argument to \caption
and produce a list of figures at the end of the document, but this seems to be conceptually backward and would require a lot of work to get the formatting correct (as well as losing the list of figures proper).
I could also write something like (say, using enotez
):
\newcommand{\notes}[1]{Notes:\endnote{#1}}
but I'd like:
- not have endnotes within the float (where the numbering can be out of order). Edit That is, when I use
\endnote
, the numbering for the endnote in the float can be out of order with endnotes in the body; and - to have a separate notes field.
are printed as endnotes in their own table
but I'd like to not have endnotes within the float (where the numbering can be out of order) and I'd like to have a separate notes field.
That is, when I use \endnote, the numbering for the endnote in the float can be out of order with endnotes in the body; and
I see the problem but not sure what do you want. shouldfigurenotes
be numbered independent of other notes? if they share same numbering there is no way to preserve the order.