[tex4ht-commits] [SCM] tex4ht updated: r1537 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sat Jul 6 21:48:42 CEST 2024
Author: michal_h21
Date: 2024-07-06 19:48:42 +0000 (Sat, 06 Jul 2024)
New Revision: 1537
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
Added itemize+ option
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-07-03 12:08:13 UTC (rev 1536)
+++ trunk/lit/ChangeLog 2024-07-06 19:48:42 UTC (rev 1537)
@@ -1,3 +1,9 @@
+2024-07-06 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): added itemize+ option. It will keep
+ original characters for itemize bullets.
+ https://tex.stackexchange.com/a/722062/2891
+
2024-07-03 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (fontawesome5.4ht): use icon name as the alt text.
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2024-07-03 12:08:13 UTC (rev 1536)
+++ trunk/lit/tex4ht-html4.tex 2024-07-06 19:48:42 UTC (rev 1537)
@@ -2950,6 +2950,22 @@
\EndP\HCode{</li></ul>}\ShowPar}
{\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
{\HCode{<li class="\getClass{li}itemize">}\afterGetClass{li}|<list par|>}
+
+\:CheckOption{itemize+}\if:Option
+\ConfigureList{itemize}%
+ {\EndP\HCode{<ul \a:LRdir
+ class="\getClass{itemize}itemize\expandafter\the
+ \csname @itemdepth\endcsname">}%
+ \afterGetClass{itemize}%
+ |<save end:itm|>\global\let\end:itm=\empty}
+ {|<recall end:itm|>\ifvmode \IgnorePar\fi
+ \EndP\HCode{</li></ul>}\ShowPar}
+ {\end:itm \global\def\end:itm{\EndP\Tg</li>}\HCode{<li class="\getClass{li}itemize"><span class="itemizeHead" aria-hidden="true">}\afterGetClass{li}}
+ {\HCode{</span>}|<list par|>}
+\Css{.itemizeHead{float: left; margin-left: -1em; width: 1em;}}
+\Css{li.itemize{list-style: none;}}
+\fi
+
\NewConfigure{itemizeClass}{2}
\Configure{itemizeClass}{}{}
\NewConfigure{liClass}{2}
More information about the tex4ht-commits
mailing list.