<div><br></div>I have to place the endnotes at the end of the book rather than at the end of each chapter.  Easily done, as is.  In the default arrangement, all the endnotes are grouped together wherever I write "<i>\theendnotes</i>."<div>

What I need is the following, one further step.  </div><div><br></div><div>First a heading, say "Notes to Chapter 1" (easily done with  <i>\renewcommand\notesname{Notes to Chapter \thechapter}</i>)</div><div>then all the endnotes referenced by superscripts in the text of the chapter.</div>

<div><br></div><div>Then a heading that says, "Notes to Chapter 2"</div><div>then all the endnotes referenced by superscripts in the text of the chapter.</div><div><br></div><div>Obviously, resetting the endnote counter at the beginning of each chapter with a <i>\setcounter{endnote}{0}</i> is a first step.</div>

<div>But what then.</div><div><br></div><div>Suggestions welcome.</div><div><br></div><div>Bhaskar</div><div><br></div><div><br></div><div><div><br></div><div><br></div><div><br></div><br>
</div>