[tex4ht] [bug #146] index: div theindex is starting too late

Akim Demaille puszcza-hackers at gnu.org.ua
Fri Sep 2 10:45:56 CEST 2011


Follow-up Comment #2, bug #146 (project tex4ht):

Hi CV (is this the right way to name you?)

while your suggestion definitely provides something better that what I did,
it does not change what I mean to report as a bug.

The diff looks like:


@@ -28,23 +28,33 @@
  id="x1-7"></a>
    <h3 class="likesectionHead"><a 
  id="x1-1000"></a>Index</h3>
-<!--l. 2--><p class="noindent" ><span 
-class="cmbx-12x-x-120">A</span> </p><div class="theindex"><span
class="index-item">AA, <a 
+<!--l. 2--><p class="noindent" >
+</p>
+   <h4 class="likesubsectionHead"><a 
+ id="x1-2000"></a>A</h4>
+   <div class="theindex"><span class="index-item">AA, <a 
 href="#x1-2" >1</a> <br /></span>
 <span class="index-item">AB, <a 
 href="#x1-3" >2</a> <br /></span>
-<p class="theindex"><span 
-class="cmbx-12x-x-120">B</span> <span class="index-item">BA, <a 
+<p class="theindex">
+   <h4 class="likesubsectionHead"><a 
+ id="x1-3000"></a>B</h4>
+<span class="index-item">BA, <a 
 href="#x1-4" >3</a> <br /></span>


What I'm reporting is that the structure is

<h3 class="likesectionHead"><a id="x1-1000"></a>Index</h3>
<p class="noindent" ></p>
<h4 class="likesubsectionHead"><a id="x1-2000"></a>A</h4>
<div class="theindex">
  <span class="index-item">AA, <a href="#x1-2" >1</a> <br /></span>
  <span class="index-item">AB, <a href="#x1-3" >2</a> <br /></span>
  <p class="theindex">
    <h4 class="likesubsectionHead"><a id="x1-3000"></a>B</h4>
    <span class="index-item">BA, <a href="#x1-4" >3</a> <br /></span>
  <p class="noindent" >
    <span class="index-item">BB, <a href="#x1-5" >4</a> <br /></span>
  </p>
  <p class="theindex">
  </p>
  
I.e. in the case of the first heading (A), it is *outside* its theindex
environment:

while in the case of the others, the heading (B) is *inside*.  Actually,
looking at the output, the result is more confusing with subsection* because
of all the "noindent" that are then output.  Of course, I can define a new
command and Configure it, but really, that's not the problem here.  The
problem is the structure: there are one theindex per non-first heading which
embedded in a global theindex corresponding to the first heading.

I don't know how to describe simply :(  You really have to look at the
structure here:


<h3 class="likesectionHead"><a id="x1-1000"></a>Index</h3>
<p class="noindent" >
  <span class="cmbx-12x-x-120">A</span>
</p>
<div class="theindex">
  <span class="index-item">AA, <a href="#x1-2" >1</a> <br /></span>
  <span class="index-item">AB, <a href="#x1-3" >2</a> <br /></span>
  <p class="theindex">
    <span class="cmbx-12x-x-120">B</span>
    <span class="index-item">BA, <a href="#x1-4" >3</a> <br /></span>
    <span class="index-item">BB, <a href="#x1-5" >4</a> <br /></span>
  </p>
  <p class="theindex">
    <span class="cmbx-12x-x-120">C</span>
    <span class="index-item">CA, <a href="#x1-6" >5</a> <br /></span>
    <span class="index-item">CB, <a href="#x1-7" >6</a> <br /></span>
  </p>
</div>

Cheers!

    _______________________________________________________

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