[tex4ht-commits] [SCM] tex4ht updated: r1659 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Mar 26 12:36:33 CET 2025


Author: michal_h21
Date: 2025-03-26 11:36:32 +0000 (Wed, 26 Mar 2025)
New Revision: 1659

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
added index-plain option

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-03-18 11:53:50 UTC (rev 1658)
+++ trunk/lit/ChangeLog	2025-03-26 11:36:32 UTC (rev 1659)
@@ -1,3 +1,8 @@
+2025-03-26  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (ooffice.4ht): added index-plain option.
+	https://github.com/michal-h21/make4ht/issues/170
+
 2025-03-18  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (latex.4ht): don't redefine \index inside caption.

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2025-03-18 11:53:50 UTC (rev 1658)
+++ trunk/lit/tex4ht-ooffice.tex	2025-03-26 11:36:32 UTC (rev 1659)
@@ -6924,14 +6924,39 @@
 
 
 \<ooffice index\><<<
+\:CheckOption{index-plain}\if:Option
+|<plain index|>
+\else
+|<fancy index|>
+    \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+          use the command line option `index-plain'}
+\fi
+>>>
+
+This is the way to get the index that doesn't change after `Update TOC and Index' in LibreOffice.
+See \Link[https://github.com/michal-h21/make4ht/issues/170]{}{}issue 170\EndLink for more info.
+
+\<plain index\><<<
 \Configure{theindex}
+   {\ifvmode\IgnorePar\fi
+    \EndP\HCode{<text:section style:style-name="theindex-section">}%
+    \csname put:IndexTitle\endcsname}
+   {\HCode{</text:section>}}
+   |<index list|>
+>>>
+
+\<fancy index\><<<
+\Configure{theindex}
    {\ifvmode\IgnorePar\fi 
     \EndP\HCode{<text:alphabetical-index text:name="theindex"  >
       |<index format|>%
       <text:index-body>\Hnewline}%
-    \csname put:IndexTitle\endcsname
-   }
-   {\HCode{</text:index-body></text:alphabetical-index>}}
+    \csname put:IndexTitle\endcsname}
+    {\HCode{</text:index-body></text:alphabetical-index>}}
+    |<index list|>
+>>>
+
+\<index list\><<<
    {\HCode{<text:p text:style-name="P6"  >}}
       {\HCode{<text:tab-stop/></text:p>}\hfill\break}
    {\HCode{<text:p text:style-name="P7"  >}}



More information about the tex4ht-commits mailing list.