summaryrefslogtreecommitdiff
path: root/indexing/xindex/lualatex/xindex-lib.lua
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/xindex/lualatex/xindex-lib.lua
parent711112a97f2a98854236304a216213632d61eeb7 (diff)
CTAN sync 202307010301
Diffstat (limited to 'indexing/xindex/lualatex/xindex-lib.lua')
-rw-r--r--indexing/xindex/lualatex/xindex-lib.lua14
1 files changed, 11 insertions, 3 deletions
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