summaryrefslogtreecommitdiff
path: root/indexing
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-01 03:01:25 +0000
committerNorbert Preining <norbert@preining.info>2023-07-01 03:01:25 +0000
commit3a29216caca37803e25b84a50fd5f7f91ebc04d3 (patch)
tree45c329c33b2bc8601810e0983b3590448a3279ec /indexing
parent711112a97f2a98854236304a216213632d61eeb7 (diff)
CTAN sync 202307010301
Diffstat (limited to 'indexing')
-rw-r--r--indexing/xindex/CHANGELOG1
-rw-r--r--indexing/xindex/README.md9
-rw-r--r--indexing/xindex/doc/xindex-doc.pdfbin492316 -> 517402 bytes
-rw-r--r--indexing/xindex/doc/xindex-doc.tex176
-rw-r--r--indexing/xindex/lualatex/xindex-AU.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-HAdW-eKO.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-RU.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-base.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-baselib.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-cfg-common.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-cfg-uca.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-cfg.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-danteedition.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-dtk.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-lib.lua14
-rw-r--r--indexing/xindex/lualatex/xindex-norsk.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-pretty.lua2
-rw-r--r--indexing/xindex/lualatex/xindex-yannis.lua2
-rwxr-xr-xindexing/xindex/scripts/xindex.lua8
19 files changed, 172 insertions, 62 deletions
diff --git a/indexing/xindex/CHANGELOG b/indexing/xindex/CHANGELOG
index c9e35b1cec..6cfaa2610f 100644
--- a/indexing/xindex/CHANGELOG
+++ b/indexing/xindex/CHANGELOG
@@ -1,3 +1,4 @@
+0.48 2023-06-21 - added option -g|--no_pagenumber
0.47 2023-01-20 - added support for russian language
0.46 2023-01-18 - fix for Czech character ch
- fix for wrong Upper/Lowercase sorting
diff --git a/indexing/xindex/README.md b/indexing/xindex/README.md
index 97d44cc56b..38dae0bdd0 100644
--- a/indexing/xindex/README.md
+++ b/indexing/xindex/README.md
@@ -1,12 +1,6 @@
# xindex
-Copyright 2019-2023 Herbert Voß
-These files are provided under the terms of the LPPL v1.3 or
-later as printed in full text in the manual (xindex.pdf).
-\url{https://ctan.org/license/lppl1.3}.
-
-Report bugs to
- \url{https://gitlab.com/hvoss49/xindex/issues}.
+Copyright 2019-2022 Herbert Voß
Unicode compatible index programm for LaTeX. It needs Lua 5.3 which
will be included in at least LuaTeX 1.09 (TeXLive 2019)
@@ -41,7 +35,6 @@ possible options are (short,long):
-a,--no_casesensitive
-b,--no_labels
-o,--output (default "")
- -k,--checklang
-l,--language (default en)
-p,--prefix (default L)
-u,--use_UCA
diff --git a/indexing/xindex/doc/xindex-doc.pdf b/indexing/xindex/doc/xindex-doc.pdf
index a8e4fb594a..a501b957a4 100644
--- a/indexing/xindex/doc/xindex-doc.pdf
+++ b/indexing/xindex/doc/xindex-doc.pdf
Binary files differ
diff --git a/indexing/xindex/doc/xindex-doc.tex b/indexing/xindex/doc/xindex-doc.tex
index 767ea1b072..25058bc065 100644
--- a/indexing/xindex/doc/xindex-doc.tex
+++ b/indexing/xindex/doc/xindex-doc.tex
@@ -81,9 +81,9 @@
\def\setVersion#1{\setVVersion#1!!}
\def\setVVersion#1=#2!!{\def\xIndexVersion{#2}}
-\setVersion{version = 0.47}% can be automatically changed by perl
+\setVersion{version = 0.48}% can be automatically changed by perl
-\setkeys{hv}{cleanup=false,force=false}
+\setkeys{hv}{cleanup=true,force=false,ExampleDir=Examples,moveToExampleDir}
\title{Program and package \texttt{xindex} \\--\\ \normalsize \xIndexVersion\ (\today)}
@@ -95,7 +95,8 @@
%\enlargethispage{1cm}
\tableofcontents
-\vfill
+\clearpage
+\bgroup\raggedright
Thanks to: \\
Mark Baudoin;
Denis Bitouzé;
@@ -113,7 +114,8 @@ Stefan Pinnow;
Florent Rougon;
Martin Sievers;
Simon Spiegel;
-Jürhen Spitzmüller;
+Jürgen Spitzmüller;
+\egroup
\clearpage
\section{Introduction}
@@ -181,6 +183,7 @@ xindex
[-o,--output ] default is <input>.ind
[-k,--checklang ] default ist false
[-l,--language ] default is en
+ [-g,--no_pagenumber] default is false
[-p,--prefix] default L
[-u,--use_UCA ] default is false
[-s,--use_stdin ] default is false
@@ -253,7 +256,6 @@ are alphabetized.
compiler=lualatex,
crop,
xindex,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -316,7 +318,6 @@ are converted into the internal strings and later back to the origin meaning.
crop,
xindex,
xindexOptions=-e ">",
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -382,7 +383,6 @@ The following example was run with \verb|xindex -l it <file>.idx|:
crop,
xindex,
xindexOptions=-l it -e ">",
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -427,7 +427,6 @@ the \Lfile{aux} file(s). This is only possible if package \Lpack{babel} or \Lpa
crop,
xindex,
xindexOptions=-k -e "?",
- force=true,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -477,7 +476,6 @@ This allows to have different indexes with different language.
crop,
xindex,
xindexOptions=-u -l RU -c RU,
- force=true,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -616,7 +614,6 @@ alphabet_upper = { -- for sorting
crop,
xindex,
xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
usefancyvrb,
@@ -677,7 +674,6 @@ the word beginning with the letter Ö:
crop,
xindex,
xindexOptions=-c DIN2 -l DE,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -758,7 +754,6 @@ The following runs with \verb|xindex -l jp <file>|:
crop,
xindex,
xindexOptions=-l jp,
- force=false,
runs=2,
code=false,
docType=latex,
@@ -807,6 +802,11 @@ The following runs with \verb|xindex -l jp <file>|:
With the optional argument \verb|-u| or alternatively \verb|--use_UCA| the sorting will be done
by Michal Hoftich's Lua package \texttt{LUA-UCA}, which should be part of any \TeX{} installation.
+The sorting order can be easily modified. Read the documentation of the package \texttt{LUA-UCA}
+on how to do it and what languages are supported so far. Any additional code setting for
+UCA should be don't in the file \Lfile{xindex-cfg-uca.lua}, which will automatically be read
+by \Lprog{xindex}.
+
\begin{externalDocument}[
% grfOptions={width=\dimexpr\linewidth-2\fboxsep-2\fboxrule},
@@ -817,7 +817,6 @@ by Michal Hoftich's Lua package \texttt{LUA-UCA}, which should be part of any \T
crop,
xindex,
xindexOptions=-u -l cs,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -846,10 +845,6 @@ Sorted with \verb|-u -l cs|
\end{document}
\end{externalDocument}
-The sorting order can be easily modified. Read the documentation of the package \texttt{LUA-UCA}
-on how to do it and what languages are supported so far. Any additional code setting for
-UCA should be don't in the file \Lfile{xindex-cfg-uca.lua}, which will automatically be read
-by \Lprog{xindex}.
\subsection{Case sensitive index entries}
@@ -867,7 +862,6 @@ the \verb|xindex-???| series because uppercase letters are sorted before lowerca
crop,
xindex,
% xindexOptions=,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -923,7 +917,6 @@ The same example sorted with the \verb|-a| or \verb|--no_casesensitive| has anot
crop,
xindex,
xindexOptions=-a,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -981,7 +974,6 @@ By default \textsf{alpha sort} will be sorted \emph{before} \textsf{alphaA}:
crop,
xindex,
% xindexOptions=,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1020,7 +1012,6 @@ This can be changed with the optional argument \verb|-i| or \verb|--ignoreSpace|
crop,
xindex,
xindexOptions=-i,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1049,8 +1040,9 @@ Test
-%\clearpage
+\clearpage
+\section{Pagenumbers}
\subsection{Compressing pagenumber series}\label{Compressing}
By default page sequences of an entry are compressed to
\begin{description}
@@ -1088,7 +1080,6 @@ folium = {
crop,
xindex,
xindexOptions=-l fr,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1142,7 +1133,6 @@ of the same type, so we get \texttt{1f} in the output.
crop,
xindex,
xindexOptions=-l de,
- force=false,,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1170,9 +1160,132 @@ und foo\index{foo|fbox}
\end{document}
\end{externalDocument}
+\subsection{Supress Pagenumber}
+Instead of printing an index in the default way, one can also print a glossary without
+the pagenumbers. This is possible with the optional argument \verb|-g| which is equivalent
+to the long form \verb|--no_pagenumber|. The following example uses an own config file for
+the definition of the \Lenv{description} environment:
+\begin{verbatim}
+itemPageDelimiter = ""
+compressPages = true
+fCompress = false
+minCompress = 2
+rangeSymbol = "--"
+numericPage = true
+sublabels = {"", "\\item", "\\item", "\\item"}
+pageNoPrefixDel = ""
+idxnewletter = "\\textbf"
+envStart = "\\begin{description}"
+indexOpening = "\\makeatletter\z
+ \\def\\subitem{\\@idxitem} \\def\\subsubitem{\\@idxitem}\z
+ \\def\\subsubsubitem{\\@idxitem}\z
+ \\makeatother\z
+ \\itemsep 0.1ex" -- commands after envStart
+envStop = "\\end{description}"
+\end{verbatim}
+\begin{externalDocument}[
+% grfOptions={width=\dimexpr\linewidth-2\fboxsep-2\fboxrule},
+% mpwidth=0.55\linewidth,
+ pages={2,3},
+ frame=true,
+ compiler=lualatex,
+ %crop,
+ force=true,
+% xindex,
+% xindexOptions=-c description -g,
+ runs=2,code,docType=latex,
+ showFilename,
+ align=\centering,
+ grfOptions={width=0.45\linewidth},
+ usefancyvrb,
+ %lstOptions={columns=fixed}
+ ]{xindex}
+%! lualatex
+\documentclass{article}
+\usepackage[a5paper]{geometry}
+\usepackage{libertinus}
+\setmonofont{DejaVu Sans Mono}[Scale=0.88,FakeStretch=0.9]
+\makeatletter
+\def\theindex{% only for demonstration
+ \section*{\indexname}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\makeatother
+\begin{filecontents}[force,noheader]{xindex-description.lua}
+itemPageDelimiter = "" -- Hello, 14
+compressPages = true -- something like 12--15, instead of 12,13,14,15. the |( ... |) syntax is still valid
+fCompress = false -- 3f -> page 3, 4 and 3ff -> page 3, 4, 5
+minCompress = 2 -- 1--3
+rangeSymbol = "--"
+numericPage = true -- for non numerical pagenumbers, like "VI-17"
+sublabels = {"", "\\item", "\\item", "\\item"} -- for the (sub(sub(sub-items first one is for item
+pageNoPrefixDel = "" -- a delimiter for page numbers like "VI-17" -- not used !!!
+idxnewletter = "\\textbf" -- Only valid if -n is not set
+envStart = "\\begin{description}"
+indexOpening = "\\makeatletter\z
+ \\def\\subitem{\\@idxitem} \\def\\subsubitem{\\@idxitem} \\def\\subsubsubitem{\\@idxitem}\z
+ \\makeatother\z
+ \\itemsep 0.1ex" -- commands after envStart
+envStop = "\\end{description}"
+
+alphabet_lower = { { 'е', 'ё' } }
+alphabet_upper = { { 'Е', 'Ё' } }
+\end{filecontents}
+%StartVisiblePreamble
+\usepackage[english]{babel}
+\usepackage[imakeidx]{xindex}% run xindex internally
+\makeindex[options= -c description -n -g ] % -g same as --no_pagenumber
+\makeindex[name=gls, options= -c description -n --no_pagenumber]
+%StopVisiblePreamble
+\pagestyle{empty}
+\begin{document}
+Abbreviations:
+
+XAS,\index{XAS --- X-ray absorption spectroscopy.}
+XAFS,\index{XAFS --- Extended x-ray absorption fine structure.}
+EXAFS,\index{EXAFS --- Extended x-ray absorption fine structure.}
+XANES,\index{XANES --- X-ray absorption near edge structure.}
+PES,\index{PES --- Photo emission spectroscopy.}
+ARPES,\index{ARPES --- Angle resolved photo electron spectroscopy.}
+SCES,\index{SCES --- Strongly correlated tlectron systems.}
+HTSC,\index{HTSC --- High temperature superconductivity.}
+MOCVD,\index{MOCVD --- Metalorganic chemical vapour deposition.}
+PLD.\index{PLD ---Pulsed laser deposition.}
+
+\smallskip Terms.
+
+Fermions:
+\index[gls]{Fermions@[Fermions]}%
+\index[gls]{Fermions@[Fermions]![\sf Fermion] --- a particle with a
+ half-odd-integer spin $S$.}electron,
+\index[gls]{Fermions@[Fermions]![\sf Electron] --- a subatomic particle
+ with a negative elementary electric charge: $S=1/2$.}proton,
+\index[gls]{Fermions@[Fermions]![\sf Proton] --- a subatomic particle with a
+ positive elementary electric charge: $S=1/2$.}positron,
+\index[gls]{Fermions@[Fermions]![\sf Positron] --- a particle with a positive
+ elementary electric charge, and the same mass as an electron: $S=1/2$.}neutron,
+\index[gls]{Fermions@[Fermions]![\sf Neutron] --- a subatomic electrically
+ neutral particle: $S=1/2$.}neutrino.
+\index[gls]{Fermions@[Fermions]![\sf Neutrino] --- an elementary electrically
+ neutral particle with very small rest mass: $S=1/2$.}
+
+Bosons:
+\index[gls]{Bosons@[Bosons]}%
+\index[gls]{Bosons@[Bosons]![\sf Boson] --- a particle with an
+integer spin $S$.}photon,
+\index[gls]{Bosons@[Bosons]![\sf Photon] --- a quantum of the
+electromagnetic field: $S=1$.}meson,
+\index[gls]{Bosons@[Bosons]![\sf Meson] --- a hadronic subatomic particle
+composed of an equal number of quarks and antiquarks: $S=0$.}pion.
+\index[gls]{Bosons@[Bosons]![\sf Pion] --- any of $\pi^0$-, $\pi^+$-,
+ $\pi^-$- mesons consisting of quark and antiquark: $S=0$.}
+\printindex
+\printindex[gls]
+\end{document}
+\end{externalDocument}
@@ -1261,7 +1374,6 @@ Internally exists a function \verb|compressPageList| which is used if no
crop,
xindex,
xindexOptions=-c HAdW-eKO,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1382,7 +1494,6 @@ The following example runs \verb|xindex -c dtk -l de -n <input>|
crop,
xindex,
xindexOptions=-c dtk -n -l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1455,7 +1566,6 @@ no limit for \Lprog{xindex}.
crop,
xindex,
% xindexOptions=,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1490,7 +1600,7 @@ baz\index{foo!bar!baz} foobar%
-
+\clearpage
\section{\texttt{hyperref}}
@@ -1507,7 +1617,6 @@ Using the package \Lpack{hyperref} is no problem:
crop,
xindex,
xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1584,7 +1693,6 @@ such commands are ignored. In the following example we put an horizontal line af
crop,
xindex,
xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1632,7 +1740,6 @@ the vertical space between different first letters:
crop,
xindex,
xindexOptions=-n,
- force=false,,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1684,7 +1791,6 @@ In the documents preamble there is the definition:
crop,
xindex,
xindexOptions=-c header,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1813,7 +1919,7 @@ run \verb|xindex -c header <file.idx>|
\end{externalDocument}
-
+\clearpage
\section{Automatic index creation}
@@ -1830,7 +1936,6 @@ and adds the program \Lprog{xindex} as the default program to \Lpack{imakeidx}.
crop,
xindex,
xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1932,7 +2037,6 @@ in the argument of \Lcs{indexentry}.
crop,
xindex,
xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -1982,7 +2086,6 @@ Duplicate alpha beta gamma.\index{alpha!beta!gamma}
crop,
xindex,
xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
@@ -2020,7 +2123,6 @@ Test \index{A!Test} oder auch \index{B!Test}
crop,
xindex,
% xindexOptions=-l de,
- force=false,
runs=2,code,docType=latex,
showFilename,
align=\centering,
diff --git a/indexing/xindex/lualatex/xindex-AU.lua b/indexing/xindex/lualatex/xindex-AU.lua
index a9fef04291..a544692b48 100644
--- a/indexing/xindex/lualatex/xindex-AU.lua
+++ b/indexing/xindex/lualatex/xindex-AU.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-AU'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-HAdW-eKO.lua b/indexing/xindex/lualatex/xindex-HAdW-eKO.lua
index 1f0337a06a..c82b153e82 100644
--- a/indexing/xindex/lualatex/xindex-HAdW-eKO.lua
+++ b/indexing/xindex/lualatex/xindex-HAdW-eKO.lua
@@ -11,7 +11,7 @@
-- configuration for index files of the Heidelberger Akademie der Wissenschaften
if not modules then modules = { } end modules ['xindex-HAdW-eKO'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-RU.lua b/indexing/xindex/lualatex/xindex-RU.lua
index c72bc462d8..465a7bdb22 100644
--- a/indexing/xindex/lualatex/xindex-RU.lua
+++ b/indexing/xindex/lualatex/xindex-RU.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-RU'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration to xindex.lua",
author = "Alexey Kuznetzov",
copyright = "Herbert Voß",
diff --git a/indexing/xindex/lualatex/xindex-base.lua b/indexing/xindex/lualatex/xindex-base.lua
index 7a6e918eca..37a6783812 100644
--- a/indexing/xindex/lualatex/xindex-base.lua
+++ b/indexing/xindex/lualatex/xindex-base.lua
@@ -8,7 +8,7 @@
-- $Id: xindex-base.lua 22 2022-02-07 12:18:15Z hvoss $
-----------------------------------------------------------------------
-local info = { version = 0.47 }
+local info = { version = 0.48 }
-- check config
if pageNoPrefixDel ~= "" then
diff --git a/indexing/xindex/lualatex/xindex-baselib.lua b/indexing/xindex/lualatex/xindex-baselib.lua
index 7b43c81942..5e563aec47 100644
--- a/indexing/xindex/lualatex/xindex-baselib.lua
+++ b/indexing/xindex/lualatex/xindex-baselib.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-baselib'] = {
- version = 0.47,
+ version = 0.48,
comment = "base library to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-cfg-common.lua b/indexing/xindex/lualatex/xindex-cfg-common.lua
index 45c8197474..33f4b2cbb4 100644
--- a/indexing/xindex/lualatex/xindex-cfg-common.lua
+++ b/indexing/xindex/lualatex/xindex-cfg-common.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-cfg-common'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-cfg-uca.lua b/indexing/xindex/lualatex/xindex-cfg-uca.lua
index 24e07fe924..2a87366dad 100644
--- a/indexing/xindex/lualatex/xindex-cfg-uca.lua
+++ b/indexing/xindex/lualatex/xindex-cfg-uca.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-cfg-lua'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration to xindex-cfg-uca.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-cfg.lua b/indexing/xindex/lualatex/xindex-cfg.lua
index 082408a0f3..b475a2eb7f 100644
--- a/indexing/xindex/lualatex/xindex-cfg.lua
+++ b/indexing/xindex/lualatex/xindex-cfg.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-cfg'] = {
- version = 0.47,
+ version = 0.48,
comment = "main configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-danteedition.lua b/indexing/xindex/lualatex/xindex-danteedition.lua
index a3a2b00701..80d7426381 100644
--- a/indexing/xindex/lualatex/xindex-danteedition.lua
+++ b/indexing/xindex/lualatex/xindex-danteedition.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-cfg'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration file for the DANTE Edition",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-dtk.lua b/indexing/xindex/lualatex/xindex-dtk.lua
index fcdf30cfc8..0082be4dc9 100644
--- a/indexing/xindex/lualatex/xindex-dtk.lua
+++ b/indexing/xindex/lualatex/xindex-dtk.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-cfg'] = {
- version = 0.47,
+ version = 0.48,
comment = "DTK configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-lib.lua b/indexing/xindex/lualatex/xindex-lib.lua
index 042377410c..97ede6b8fc 100644
--- a/indexing/xindex/lualatex/xindex-lib.lua
+++ b/indexing/xindex/lualatex/xindex-lib.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-lib'] = {
- version = 0.47,
+ version = 0.48,
comment = "main library to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
@@ -774,7 +774,11 @@ function itemOutput(last, v, hyperpage)
writeLog(1,"itemOutput(): We have entry "..Entry.."\n",2)
writeLog(1,"itemOutput(): The entry has "..excl.." Exclamation characters\n",2)
if excl == 0 then
- str = " \\item "..Entry..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n"
+ if show_pagenumber then
+ str = " \\item "..Entry..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n"
+ else
+ str = " \\item "..Entry.."\n"
+ end
for i, str0 in ipairs(escape_chars) do -- undo the escape char setting
str = str:gsub(str0[2],str0[3])
end
@@ -801,7 +805,11 @@ function itemOutput(last, v, hyperpage)
if i < excl+1 then -- there is one more ! => so we print no pagenumber
str = space.."\\"..item.." "..sublabels[i]..currentItems[i].."\n"
else
- str = space.."\\"..item.." "..sublabels[i]..currentItems[i]..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n"
+ if show_pagenumber then
+ str = space.."\\"..item.." "..sublabels[i]..currentItems[i]..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n"
+ else
+ str = space.."\\"..item.." "..sublabels[i]..currentItems[i].."\n"
+ end
end
end
for i, str0 in ipairs(escape_chars) do -- undo the escape char setting
diff --git a/indexing/xindex/lualatex/xindex-norsk.lua b/indexing/xindex/lualatex/xindex-norsk.lua
index 78a06ba988..7fc34e24a3 100644
--- a/indexing/xindex/lualatex/xindex-norsk.lua
+++ b/indexing/xindex/lualatex/xindex-norsk.lua
@@ -10,7 +10,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-no'] = {
- version = 0.47,
+ version = 0.48,
comment = "configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/lualatex/xindex-pretty.lua b/indexing/xindex/lualatex/xindex-pretty.lua
index 939b34fc2c..92d3aa92d8 100644
--- a/indexing/xindex/lualatex/xindex-pretty.lua
+++ b/indexing/xindex/lualatex/xindex-pretty.lua
@@ -7,7 +7,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-pretty'] = {
- version = 0.47,
+ version = 0.48,
comment = "dump a Lua table for debugging",
author = "Steve Donovan",
copyright = "Steve Donovan",
diff --git a/indexing/xindex/lualatex/xindex-yannis.lua b/indexing/xindex/lualatex/xindex-yannis.lua
index 7b00b2bcc2..1ab0b12f6b 100644
--- a/indexing/xindex/lualatex/xindex-yannis.lua
+++ b/indexing/xindex/lualatex/xindex-yannis.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-yannis'] = {
- version = 0.47,
+ version = 0.48,
comment = "main configuration to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
diff --git a/indexing/xindex/scripts/xindex.lua b/indexing/xindex/scripts/xindex.lua
index de8016cc1e..22e07116cd 100755
--- a/indexing/xindex/scripts/xindex.lua
+++ b/indexing/xindex/scripts/xindex.lua
@@ -10,7 +10,7 @@
-----------------------------------------------------------------------
xindex = xindex or { }
- local version = 0.47
+ local version = 0.48
xindex.version = version
--xindex.self = "xindex"
@@ -53,6 +53,7 @@ local args = require ('xindex-lapp') [[
-o,--output (default "")
-k,--checklang
-l,--language (default en)
+ -g,--no_pagenumber
-p,--prefix (default L)
-u,--use_UCA
-s,--use_stdin
@@ -360,6 +361,11 @@ else
writeLog(1,"Index with labels\n",1)
end
+show_pagenumber = not args["no_pagenumber"]
+if not show_pagenumber then
+ writeLog(1,"Output with NO pagenumbers!\n",1)
+end
+
writeLog(2,"Open outputfile "..outfilename,0)
outFile = io.open(outfilename,"w+")
writeLog(2,"... done\n",0)