Changes

Jump to navigation Jump to search
m
Link to \index command
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
<tt>\setregisterentry</tt> is more structured form of the regular <tt>\{{cmd|index</tt> }} command. With it's its more complex and robust structure it is suitable for automatic workflows.
When processing the command on Lua end, one has to take care of colons in the <tt>key:1</tt> and <tt>entry:1</tt> paramaters parameters by enclosing them in inside <tt>["..."]</tt>, which is more robust form of putting key in Lua table, see example bellow.
</cd:description>
<cd:examples><cd:example title="Three levels, changes in the sorting, comma in the entry"><texcode>
</cd:example><cd:example title="Processing on Lua end"><texcode>
\startluacode
context.setregisterentry({ "MyIndexindex" },
{ ["keys:1"]="sorting key", ["entries:1"]="displayed entry"})
\stopluacode
138

edits

Navigation menu