[tex4ht-commits] [SCM] tex4ht updated: r1719 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sat Jul 12 22:17:10 CEST 2025
Author: michal_h21
Date: 2025-07-12 20:17:10 +0000 (Sat, 12 Jul 2025)
New Revision: 1719
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
better markup for theindex
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2025-07-11 15:44:05 UTC (rev 1718)
+++ trunk/lit/ChangeLog 2025-07-12 20:17:10 UTC (rev 1719)
@@ -1,3 +1,9 @@
+2025-07-12 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): better markup for theindex
+ environment.
+ https://github.com/michal-h21/tex4ebook/issues/140#issuecomment-3063533566
+
2025-07-11 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (url.4ht): add underscore to the list of characters
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2025-07-11 15:44:05 UTC (rev 1718)
+++ trunk/lit/tex4ht-html4.tex 2025-07-12 20:17:10 UTC (rev 1719)
@@ -4991,6 +4991,9 @@
\else
|<mult-col index|>
\fi
+\Css{.theindex-letter{ margin-top: 1em;}}
+\Css{.index-subitem{ margin-left: 2ch;}}
+\Css{.index-subsubitem{ margin-left: 4ch;}}
>>>
@@ -5004,6 +5007,22 @@
use the command line option `index=i' (e.g., index=2)}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
+ \HCode{<div class="theindex">}\HCode{<div class="theindex-letter">}\def\end:theidx{\HCode{</div>}}}
+ {\end:theidx\HCode{</div>}}
+ {\hbox\bgroup\HCode{<div class="index-item">}}
+ {\HCode{</div>}\egroup\hfill\break}
+ {\hbox\bgroup\HCode{<div class="index-subitem">}}
+ {\HCode{</div>}\egroup\hfill\break}
+ {\hbox\bgroup\HCode{<div class="index-subsubitem">}}
+ {\HCode{</div>}\egroup\hfill\break}
+ {\hbox{\end:theidx\HCode{<div class="theindex-letter">}}}
+
+>>>
+
+
+\<one-col index old\><<<
+\Configure{theindex}
+ {\ifvmode \IgnorePar\fi \EndP
\HCode{<div class="theindex">}\HCode{<p class="theindex">}\def\end:theidx{\HCode{</p>}}}
{\end:theidx\HCode{</div>}}
{\hbox\bgroup\HCode{<span class="index-item">}}
@@ -5041,8 +5060,24 @@
\Log:Note{the number of columns
requested by the option `index=\a:IndexColumns' can
be modified through the command \string\Configure{IndexColumns}{i}}
+
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
+ \HCode{<div class="theindex" style="columns:\a:IndexColumns">}\HCode{<div class="theindex-letter">}\def\end:theidx{\HCode{</div>}}}
+ {\end:theidx\HCode{</div>}}
+ {\hbox\bgroup\HCode{<div class="index-item">}}
+ {\HCode{</div>}\egroup\hfill\break}
+ {\hbox\bgroup\HCode{<div class="index-subitem">}}
+ {\HCode{</div>}\egroup\hfill\break}
+ {\hbox\bgroup\HCode{<div class="index-subsubitem">}}
+ {\HCode{</div>}\egroup\hfill\break}
+ {\hbox{\end:theidx\HCode{<div class="theindex-letter">}}}
+
+>>>
+
+\<mult-col indexOLD\><<<
+\Configure{theindex}
+ {\ifvmode \IgnorePar\fi \EndP
\HCode{<div class="theindex">}%
|<index mult cols|>\let\end:theidx|=\empty}
{\end:theidx
More information about the tex4ht-commits
mailing list.