<div dir="ltr">I think the collect package might be pretty much exactly what you are looking for.<div><br></div><div><a href="http://get-software.net/macros/latex/contrib/sauerj/collect.pdf">http://get-software.net/macros/latex/contrib/sauerj/collect.pdf</a><br>

</div><div><br></div><div><br></div><div> -Tom</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 21, 2013 at 6:48 AM, Shubho Roy <span dir="ltr"><<a href="mailto:shubho.roy85@gmail.com" target="_blank">shubho.roy85@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><span class="HOEnZb"><font color="#888888"><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:- <a href="tel:%2B91-9716479606" value="+919716479606" target="_blank">+91-9716479606</a><br>

Location:- <a href="http://goo.gl/ICCjh" target="_blank">http://goo.gl/ICCjh</a>
</div></font></span></div></div>
<br>_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br></blockquote></div><br></div>