Support for Printing Chapter-Specific Appendices Immediately After Chapter Bibliographies
First of all, thank you for this amazing package! It’s been really helpful in managing the appendices and bibliographies for my papers. However, I'm running into a small issue when it comes to the organisation of the appendices in my thesis.
Issue:
I’m writing a long document (thesis) that contains multiple papers, each with its own bibliography. Currently, when I use the package with the following options:
\usepackage[bibliography=common,appendix=append]{apxproof}
The appendices for each paper are being printed at the end of the document after the last chapter's bibliography. Here’s an example of the current output:
Paper 1
Bib 1
Paper 2
Bib 2
Paper 3
Bib 3
Paper 4
Bib 4
Appendix 1
Appendix 2
Appendix 3
Appendix 4
I would like to have the appendices printed immediately after the bibliography of each paper, like so:
Paper 1
Bib 1
Appendix 1
Paper 2
Bib 2
Appendix 2
Paper 3
Bib 3
Appendix 3
Paper 4
Bib 4
Appendix 4
Current Setup:
Here is the setup I am using for my document:
\documentclass[a4paper,twoside,10pt,openright]{mythesis}
\usepackage{apxproof}
\usepackage[backend=bibtex8,natbib=true,backref=true,refsection=part]{biblatex}
\begin{document}
\newrefsection
\chapter{Paper 1}
\input{paper1}
\printbibliography[heading=subbibliography]
\newrefsection
\chapter{Paper 2}
\input{paper2}
\printbibliography[heading=subbibliography]
\newrefsection
\chapter{Paper 3}
\input{paper3}
\printbibliography[heading=subbibliography]
\newrefsection
\chapter{Paper 4}
\input{paper4}
\printbibliography[heading=subbibliography]
\end{document}
Request:
Would it be possible to modify the package (or provide an option) to ensure that the appendices for each paper are printed immediately after the bibliography for each chapter, rather than being collected at the end of the document? Ideally, this could be an option that works with the \newrefsection command, ensuring that the appendices follow the chapter’s bibliography.
I took a look into the package code, specifically this part here: https://github.com/PierreSenellart/apxproof/blob/57b421356aacc913762747d292cbe88e410d2015/apxproof.sty#L510
It looks like it might be possible to modify the placement of the appendices by adjusting how they're handled after the bibliography. However, I’m not entirely sure if that’s the best approach. Alternatively, one could explore hooking into the end-of-chapter mechanism instead. Just thought I’d point that out, as this line might be where the appendices are being placed, and adjusting it could potentially trigger them after the bibliography.
Thanks again for the great work on this package! I look forward to hearing your thoughts on this.
Thanks for your message. This is not trivial to implement as I heavily rely on the fact that there is a single appendix; all appendix content is in particular stored into a .axp file that is just \input'ed at the end of the document. Having several appendices would mean generating several such files. Also, LaTeX standard document class have a single appendix, you need something like the subappendices from the appendix package to have multiple appendix per chapter.
So a solution would involve:
- a specific option to activate the feature
- depending on
appendixpackage to have multiple appendices - at the beginning of each chapter creating a new
.axpXXfile with appendix content for this chapter - at the end of each chapter, inputting the corresponding
.axp, within a new appendix - there would also need to be some work on bibliography management, but a first step would be to only support
bibliography=common
It is by no means infeasible, but I am not sure I would have time to work on this in the near future. I keep this issue open just in case though.