texlive[74761] Master/texmf-dist: index-plain option
commits+karl at tug.org
commits+karl at tug.org
Wed Mar 26 21:28:36 CET 2025
Revision: 74761
https://tug.org/svn/texlive?view=revision&revision=74761
Author: karl
Date: 2025-03-26 21:28:36 +0100 (Wed, 26 Mar 2025)
Log Message:
-----------
index-plain option
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-03-26 20:25:09 UTC (rev 74760)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-03-26 20:28:36 UTC (rev 74761)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex 2025-03-26 20:25:09 UTC (rev 74760)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex 2025-03-26 20:28:36 UTC (rev 74761)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 1655 2025-02-28 17:09:49Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 1659 2025-03-26 11:36:32Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -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" >}}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht 2025-03-26 20:25:09 UTC (rev 74760)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht 2025-03-26 20:28:36 UTC (rev 74761)
@@ -1,4 +1,4 @@
-% ooffice.4ht (2025-02-28-09:13), generated from tex4ht-ooffice.tex
+% ooffice.4ht (2025-03-26-13:14), generated from tex4ht-ooffice.tex
% Copyright 2009-2025 TeX Users Group
% Copyright 2001-2009 Maarten Wisse, James Naughton, Eitan M. Gurari
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2025-02-28-09:13}
+\immediate\write-1{version 2025-03-26-13:14}
\exit:ifnot{Preamble,%
algorithmicx,%
@@ -4079,8 +4079,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -4124,10 +4140,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -4134,6 +4149,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -5504,8 +5524,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -5549,10 +5585,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -5559,6 +5594,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -6885,8 +6925,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -6930,10 +6986,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -6940,6 +6995,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -10005,8 +10065,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -10050,10 +10126,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -10060,6 +10135,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -11415,8 +11495,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -11460,10 +11556,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -11470,6 +11565,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -12825,8 +12925,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -12870,10 +12986,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -12880,6 +12995,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -14853,8 +14973,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -14898,10 +15034,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -14908,6 +15043,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -16246,8 +16386,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -16291,10 +16447,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -16301,6 +16456,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
@@ -17704,8 +17864,24 @@
</style:style>\Hnewline
}
+\:CheckOption{index-plain}\if:Option
\Configure{theindex}
{\ifvmode\IgnorePar\fi
+ \EndP\HCode{<text:section style:style-name="theindex-section">}%
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:section>}}
+ {\HCode{<text:p text:style-name="P6" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P7" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {\HCode{<text:p text:style-name="P8" >}}
+ {\HCode{<text:tab-stop/></text:p>}\hfill\break}
+ {}
+
+
+\else
+\Configure{theindex}
+ {\ifvmode\IgnorePar\fi
\EndP\HCode{<text:alphabetical-index text:name="theindex" >
<text:alphabetical-index-source
text:sort-algorithm="alphanumeric" >\Hnewline
@@ -17749,10 +17925,9 @@
</text:alphabetical-index-source>\Hnewline
%
<text:index-body>\Hnewline}%
- \csname put:IndexTitle\endcsname
- }
- {\HCode{</text:index-body></text:alphabetical-index>}}
- {\HCode{<text:p text:style-name="P6" >}}
+ \csname put:IndexTitle\endcsname}
+ {\HCode{</text:index-body></text:alphabetical-index>}}
+ {\HCode{<text:p text:style-name="P6" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{\HCode{<text:p text:style-name="P7" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
@@ -17759,6 +17934,11 @@
{\HCode{<text:p text:style-name="P8" >}}
{\HCode{<text:tab-stop/></text:p>}\hfill\break}
{}
+
+
+ \Log:Note{to get the index that doesn't change after `Update TOC and Index',
+ use the command line option `index-plain'}
+\fi
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
More information about the tex-live-commits
mailing list.