<p class="MsoNormal">\documentclass[fleqn,12pt,a4paper]{article}</p><p class="MsoNormal">\usepackage{fontspec,xltxtra,xunicode}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{fancyhdr}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\pagestyle{fancy}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{color}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{setspace}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{hyperref}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{cmll}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{tabularx}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{pifont}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{amstext, amsmath}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">\usepackage{enumerate}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> %========================================================</p>
<p class="MsoNormal" style="margin-left:1.0in">\begin{document}</p>
<p class="MsoNormal" style="margin-left:1.0in">\section{This is Header1 6.1.77} \label{6.1.77}</p>
<p class="MsoNormal" style="margin-left:1.0in">\subsection*{This is sub header}</p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.a document of 100 pages</p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.a document of various tables and
other sections </p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.</p>
<p class="MsoNormal" style="margin-left:1.0in">.recalled lables at various places through out the document, \nameref{} entire section header appeared nicely. </p>
<p class="MsoNormal" style="margin-left:1.0in"> </p>
<p class="MsoNormal" style="margin-left:1.0in">\end{document}</p>
<p class="MsoNormal"> %========================================================</p>
<p class="MsoNormal">Above code worked like a charm, I can use \nameref{} anywhere in the document and it created a hyperlink.</p><p class="MsoNormal">I went crazy and created as many as 3900 subsections and now
the PDF prints only two pages and I get stack over flow error.</p><p class="MsoNormal"></p>
<p class="MsoNormal">Hyperlinks appear as ??</p><p class="MsoNormal">I tried using enumurate{} and it does not hyperlink to
specific line as it does in case of section{}, also tried putting lines with labels and still it did not work. </p><p class="MsoNormal"></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Your help would be greatly appreciated. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards</p>
<p class="MsoNormal">Aku</p>