I am looking to create a numbered list such that the numbers of the list items be incremented by fractional amounts as in 1.1, 1.2, 1.3… etc.
Can this be done by manipulating the enumerate
counter?
#enumeratelists
I am looking to create a numbered list such that the numbers of the list items be incremented by fractional amounts as in 1.1, 1.2, 1.3… etc.
Can this be done by manipulating the enumerate
counter?
Best Answer
Depending on the usage,
enumitem
allows to specify alabel
(andref
) option toenumerate
. Here is a minimal example that steps some counter (mycount
) at the start of everyenumerate
, and prints that counter in "fractional amounts":etoolbox
provides the means to "tap into" the start ofenumerate
and update themycount
counter and every instance.label
refers to how the enumeration label will be typeset, whileref
refers to how it will be referenced from within the document (if you're using\label
and\ref
). The settings forenumerate
are made global (via\setlist[enumerate]{...}
), although it could also be localized to a particularenumerate
environment via an option argument:If you're interested in labelling lists via some other counter (like
section
, orsubsection
, for instance), this is easily modifiable.