I have a structuration dilemma. The source problem is that my appendix (in a report) needs full page figures, referenced individually in the main text.
But it also has tables, and sometimes sections constituted only of text, so I place the figures inside their own section. Example:
\documentclass[12pt,a5paper]{report}
\usepackage[toc]{appendix}
\usepackage{mwe}
\usepackage{float} % Figure placement "Here".
\usepackage{fancyhdr} % headers and footers
\pagestyle{fancy}
\begin{document}
\tableofcontents
\chapter{Main stuff}
\section{Stuff 1}
This is Stuff 1.
\markboth{Appendices}{}
\begin{appendices}
\floatplacement{H}
\section{Full page image}
\begin{figure}
\includegraphics[width=\linewidth,height=\textheight]{example-image-b}
\caption{Full page image}
\label{appendix:img-b}
\end{figure}
\section{Other explanations}
Here come details.
\end{appendices}
\end{document}

The problem is that :
- The figure is not displayed in the right appendix section;
- Anyway the section title would be redundant with the figure caption;
- If I remove the section around the figure, I won't have a TOC entry for that figure, nor the correct header marks. Also this means I have to put all appendix figures at the beginning.
Isn't it a common situation to put full page documents in appendix? What is the canonical way to do it?
Currently, I'm considering these options:
- Defining invisible
sectionheadings inside the appendix (Then I have to write the same text as section title and as caption.) ; - Defining a new environment,
sectionfigure, which just inserts a full page figure and simultaneaously starts a new section. - Use
\phantomsection(from hyperref) +\addcontentslineto delineate the figures. This looks the simplest.
Are there better ways? If not, I will have to ask more questions about how to achieve the previous points...
EDIT
Currently, I "solved" my problem by defining invisible section headings, with a preceding \clearpage:
\newcommand\invisiblesection[1]{%
\refstepcounter{section}%
\addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}%
\sectionmark{#1}}
...
\clearpage{}
\invisiblesection{Full page image}
\listoffiguresand no need for your\section{Full page image}. – Peter Wilson Jul 15 '20 at 17:08