I have a book project with a structure I copied a few years ago from some instructional page. The product file looks like this:
\startproduct prd_book \project project_teoada
\starttext \start \startstandardmakeup \ss \hairline \start \switchtobodyfont[20pt]\bf \leftaligned{Test Project Title}% \stop \hairline \blank[line]\rightaligned{Gerben Wierda}% \blank[10cm]\start\leftskip=10cm\hairline\stop \rightaligned{1995--2006}% \stopstandardmakeup \stop
\startfrontmatter \completecontent \component c_foo \stopfrontmatter \startbodymatter \component c_bar \component c_foobar \stopbodymatter \startappendices \component c_endnotes \stopappendices
\stoptext
\stopproduct
My book has per page notes as well as more lengthy end notes which end up in a chapter at the end of the book. c_endnotes.tex looks like this:
\startcomponent c_endnotes \product prd_book \project project_teoada
\starttext \startbuffer [chapter:quote] ToDo \stopbuffer \chapter[h:endnotes]{Notes}
\placenotes[endnote]
\stoptext
\stopcomponent
But I would at this stage like to compile the chapters per chapter. This works, but if I compile c_chapter1.tex, I do not get the endnotes of the chapter. How do I go about it that when compiling per chapter, I get the endnotes for that chapter at the end of that file, while when compiling the entire book they go at the end of the book as they should? Thanks, G