diff options
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r-- | tex/context/base/strc-lst.lua | 16 |
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(...) |