r3tex

custom LuaTeX format
git clone git://git.rr3.xyz/r3tex
Log | Files | Refs | README | LICENSE

commit d43dd577146c8f6677b7fa4a6ec380d73be34276
parent 791ade53da1a3bd37bc055ebe956fc0c8f3adfd5
Author: robert <robertrussell.72001@gmail.com>
Date:   Sun, 16 Jan 2022 11:13:28 -0800

Document list.tex

Diffstat:
Mlist.tex | 23+++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/list.tex b/list.tex @@ -1,18 +1,25 @@ -% Derive bullet from \Lfmt based on \Lcnt, which is incremented per item. - -\newcount\Lcnt % item number within current list -\newcount\Llvl \Llvl=0 % list nesting level +% The label of each list item is derived from \Lfmt, which should be a macro +% whose expansion optionally depends on \Llvl (the nesting level of list, where +% 0 means not in a list, 1 means in a top-level list, etc.) and \Lcnt (the item +% number, where 0 means before the first item, 1 means in the first item, +% etc.). Alternatively, \Lfmt can be overridden with an explicit label on an +% item-by-item basis by using \xitem in place of \item. Each label is +% overlapped in to the ident of the first paragraph in the item. The geometry +% of a list is mostly controlled by the following parameters. \newdimen\Lindent % indent of first paragraph in item -\newdimen\Lmaxprotrusion % max protrusion of item label +\newdimen\Lmaxprotrusion % max protrusion of item label into left margin \newdimen\Llmargin % bring left margin in by this amount \newdimen\Lrmargin % bring right margin in by this amount \newskip\Ltopskip % vskip above list \newskip\Lmidskip % vskip between items \newskip\Lbotskip % vskip below list -\newcount\Ltoppenalty -\newcount\Lmidpenalty -\newcount\Lbotpenalty +\newcount\Ltoppenalty % penalty above list +\newcount\Lmidpenalty % penalty between items +\newcount\Lbotpenalty % penalty below list + +\newcount\Lcnt % item number within current list +\newcount\Llvl \Llvl=0 % list nesting level \def\@Lbeg{% \par