summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-05-27 09:10:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-05-27 09:10:00 +0200
commit1c92a59076998be5f244a9fe5b6f60d83115f28b (patch)
tree602304ec34dee5661b6e89982fee57d38a70720d /tex/context/base/strc-lst.lua
parentd1745ffcb7ddc6271bb9e5dd2d4e1b8f40531bd8 (diff)
downloadcontext-1c92a59076998be5f244a9fe5b6f60d83115f28b.tar.gz
stable 2013.05.27 09:10
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r--tex/context/base/strc-lst.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/tex/context/base/strc-lst.lua b/tex/context/base/strc-lst.lua
index ad7dc0f54..305b6a6fa 100644
--- a/tex/context/base/strc-lst.lua
+++ b/tex/context/base/strc-lst.lua
@@ -679,12 +679,16 @@ commands.listprefixednumber = lists.prefixednumber
commands.listprefixedpage = lists.prefixedpage
-function commands.addtolist (...) context(lists.addto (...)) end -- we could use variables instead of print
-function commands.listsize (...) context(lists.size (...)) end
-function commands.listlocation (...) context(lists.location (...)) end
-function commands.listlabel (...) context(lists.label (...)) end
-function commands.listrealpage (...) context(lists.realpage (...)) end
-function commands.listgroupindex(...) context(lists.groupindex(...)) end
+function commands.addtolist (...) context(lists.addto (...)) end
+function commands.listsize (...) context(lists.size (...)) end
+function commands.listlocation (...) context(lists.location (...)) end
+function commands.listlabel (...) context(lists.label (...)) end
+function commands.listrealpage (...) context(lists.realpage (...)) end
+function commands.listgroupindex (...) context(lists.groupindex(...)) end
+
+function commands.currentsectiontolist()
+ context(lists.addto(sections.current()))
+end
function commands.listuserdata(...)
local str, metadata = lists.userdata(...)