I'm working on a very large report with a variety of endnotes (using both \footnote and \autocite commands). I need to have the endnotes reset with each chapter (ie. restart at 1). Minimal working example as follows,
\documentclass{report}
\usepackage{biblatex-chicago}
\usepackage{endnotes}
\let\footnote=\endnote
\renewcommand\enoteheading{\chapter*{\notesname}\mbox{}\par\vskip-\baselineskip}
\makeatletter
@addtoreset{endnote}{chapter} % Reset endnote numbering every new chapter
\makeatother
\usepackage{footmisc}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\chapter{Alpha}
Some text \autocite{A01}.
Some text with footnote.\footnote{ \autocite{B02}}
Some text \autocite{A01}.
\theendnotes
\chapter{Bravo}
Some text \autocite{B02}.
Some text \autocite{C03}.
\theendnotes
\end{document}
I'm curious if the preamble I included is the most efficient (or minimal) solution to my desired outcome? This block of code seems a bit unwieldy and trying to refine my LaTeX coding. In other words, is there a simpler or shorter preamble that I can include yet still achieve my desired outcome of resetting the endnote number every chapter?
\renewcommand\enoteheading{\chapter*{\notesname}\mbox{}\par\vskip-\baselineskip}
\makeatletter
\@addtoreset{endnote}{chapter} % Reset endnote numbering every new chapter
\makeatother
\usepackage{footmisc}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
biblatexso that citations work in an end note context? Is it sufficient to set\toggletrue { blx@footnote }? I ask because I'm working on some related stuff and for me it would be critical to getbiblatexrunning smoothly with it. (I understand that part of the problem forenotezis an expansion which occurs when the .aux file is read. I don't have this particular issue. So what I'd love to know is, excluded .aux file issues, is setting the boolean sufficient?) – gusbrs Apr 05 '22 at 14:46biblatexneeds to know we're in a footnote-like environment (we need theblx@footnotetoggle). I can imagine that there are more issues, but I guess those will mostly depend on the exact implementation of your footnotes (e.g. expansion issues when the footnotes are written to a file, cite context [refsection etc.]). – moewe Apr 05 '22 at 15:11enotezandbiblatex, saying that "footnote detection does not quite work". Soblx@footnoteis required forbiblatexto know it is in a footnote-like environment, I got that covered. I suppose the requirement is handling idem and ibidem trackers. So far I haven't stumbled in expansion issues, since I don't write the notes contents to a file at all. About the relation between refsection and cite context, I have to think, it may be tricky indeed. I may pester you again later on... And thank you! – gusbrs Apr 05 '22 at 15:19