[tex4ht] [bug #146] index: div theindex is starting too late
Akim Demaille
puszcza-hackers at gnu.org.ua
Tue Sep 6 11:06:35 CEST 2011
Follow-up Comment #4, bug #146 (project tex4ht):
Dear CV,
Thanks for the answer. Your latest proposal is much better, but there are
still flaws.
First of all, when the ist is using subsection*, the structure of the
generated HTML file is broken and hard to read because of all the noindent
stuff:
<h3 class="likesectionHead"><a id="x1-1000"></a>Index</h3>
<div class="index">
<!--l. 2--><p class="noindent" ></p>
<h4 class="likesubsectionHead"><a id="x1-2000"></a>A</h4>
<p class="idx">AA, <a href="index-headings.html#x1-2" >1</a></p>
<p class="idx">AB, <a href="index-headings.html#x1-3" >2</a></p>
<p class="idxsp"></p>
<h4 class="likesubsectionHead"><a id="x1-3000"></a>B</h4>
<p class="idx">
<!--l. 8-->
<p class="noindent">BA, <a href="index-headings.html#x1-4" >3</a></p>
<p class="idx">BB, <a href="index-headings.html#x1-5" >4</a></p>
<p class="idxsp"></p>
</p>
<!--l. 12--><p class="noindent" ></p>
<h4 class="likesubsectionHead"><a id="x1-4000"></a>C</h4>
<p class="idx">
<!--l. 13-->
<p class="noindent">CA, <a href="index-headings.html#x1-6" >5</a></p>
<p class="idx">CB, <a href="index-headings.html#x1-7" >6</a></p>
</div>
</p>
So really I think using subsection* is smart and consistent with the expected
output, but wrong for tex4ht, so I prefer an ist file as follows:
headings_flag 1
heading_prefix "\textbf{\Large{}"
heading_suffix "}"
which generates a more readable output (I can easily use a fresh macro
instead of textbfLarge to provide more configurability, like subsection* but
without all the messing around noindent; that's really not the point here):
<h3 class="likesectionHead"><a id="x1-1000"></a>Index</h3>
<div class="index">
<!--l. 2--><p class="noindent" >
<span class="cmbx-12x-x-120">A</span>
<p class="idx">AA, <a href="index-headings.html#x1-2" >1</a> </p>
<p class="idx">AB, <a href="index-headings.html#x1-3" >2</a> </p>
<p class="idxsp"></p>
<span class="cmbx-12x-x-120">B</span>
<p class="idx">BA, <a href="index-headings.html#x1-4" >3</a> </p>
<p class="idx">BB, <a href="index-headings.html#x1-5" >4</a> </p>
<p class="idxsp"></p>
<span class="cmbx-12x-x-120">C</span>
<p class="idx">CA, <a href="index-headings.html#x1-6" >5</a> </p>
<p class="idx">CB, <a href="index-headings.html#x1-7" >6</a> </p>
</div>
</p>
Yet, as you can see, the structure is still broken: <div
class="index"><p>...</div></p>.
Thanks again.
Attached another version of the tarball (index-headings-2011-09-06.tar.bz2),
with the current status of the files.
(file #110)
_______________________________________________________
Additional Item Attachment:
File name: index-headings-2011-09-06.tar.bz2 Size:0 KB
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?146>
_______________________________________________
Message posté via/par Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list