<div dir="ltr">I am writing a long document which is divided into chapters. The last section of the chapter is a summary of the chapter.  At the end of the document I want to create a finaly chapter which collates all the summary sections of all the preceding chapters and print them at one place creating a `summary' for the document automatically. <div>

<br></div><div>Illustration:</div><div><br></div><div>\chapter{chapter One}</div><div>Blah <br></div><div>\section{summary} <br></div><div>Text-1<br></div><div><br></div><div><div>\chapter{chapter Two}</div><div>Blah <br>

</div><div>\section{summary} <br></div><div>Text-2<br></div><div><br></div><div><br></div><div><div>\chapter{Summary}</div><div>Text-1</div></div><div>Text-2</div><div><br></div><div><br></div><div><div><br></div>-- <br>
Shubho Roy<br>
National Institute of Public Finance and Policy<br>18/2 Satsang Vihar Marg,<br>Special Institutional Area,<br>New Delhi 110067.<br>[Near JNU East Gate]<br><br>Mobile:- +91-9716479606<br>Location:- <a href="http://goo.gl/ICCjh" target="_blank">http://goo.gl/ICCjh</a>
</div></div></div>