This question led to a new feature in a package:
sepfootnotes
I'm using a "mix" of sepfootnotes, endnotes and subfiles in an arrangement like that of the MWE below. The actual project is eleven chapters by now (so a few files) and I'd like to keep the note content i the chapter-/subfiles.
I would like to declare the \sepfootnotecontent in the top of each
chapter like the \sepfootnotecontent{a}{In subfile.} in the
subfile. Unfortunately, this doesn't work and I get a message
'a' has not been assigned a content on input line 4..
In the resulting PDF, the footnote content of foot note no one is (obciously) empty whereas note no 2 and 3 look as expected.
I've been reading the sepfootnotes.sty file but I'm not getting it.
The subfilespackage is simply inputing the subfile so what is the
actual difference between the first and third note with respect to
sepfootnotes.
I'm wondering why this is and whether there's a solution.
subfiles-sepfootnotes.tex
\documentclass{article}
\usepackage{subfiles,sepfootnotes}
\usepackage{endnotes}
\let\footnote\endnote
\begin{document}
\sepfootnotecontent{b}{In main file.}
\subfile{child}
\theendnotes
\end{document}
child.tex
\documentclass[subfiles-sepfootnotes.tex]{subfiles}
\begin{document}
\sepfootnotecontent{a}{In subfile.}
Some text with footnotes in
subfile\sepfootnote{a}, with
endnote\endnote{In endnote.}
and in parent
file\sepfootnote{b}.
\end{document}
sepfootnotesgathers content beforesubfilesincludes the subfiles? Would that be circumventable? – Mats May 20 '16 at 15:51sepfootnotespackage also provides endnotes. – eduardo.tex Jul 12 '16 at 19:30