[OS X TeX] enumitem list issues

Ross Moore ross.moore at mq.edu.au
Thu Apr 15 09:27:58 CEST 2021

Hi Alan,

On 15 Apr 2021, at 4:56 pm, Dr Alan Litchfield <alan at alphabyte.co.nz<mailto:alan at alphabyte.co.nz>> wrote:


I should have been more explicit.

In the pdf, the cross references to the enumerated items do not correlate with their label numbers. Specifically, the 4th, 5th, 7th and 8th.

OK. I see it now.

Here’s the issue:

I inserted these lines before the 1st wrong item:

\item reference is rq:4 \label{rq:4}

Here’s what you get:

> \theenumrqi=macro:
->{RQ\arabic {enumrqi}}.
l.20 \show\theenumrqi

> \theenumrqii=macro:
->{RQ\arabic {enumrqii}(\alph {enumrqii})}.
l.21 \show\theenumrqii

> \theenumrqiii=macro:
->{RQ\arabic {enumrqiii}(\alph {enumrqiii})\roman {enumrqiii}.}.
l.22 \show\theenumrqiii


See how the expansions for the 2nd- and 3rd-level counters are wrong.
It should be:

> \theenumrqiii=macro:
->{RQ\arabic {enumrqi}(\alph {enumrqii})\roman {enumrqiii}.}.

Here’s one way to get it correct:

%, ref=RQ\arabic*}
%\setlist[enumrq,2]{align=left,leftmargin=*,labelsep=.25em,label=~(\alph*), ref=RQ\arabic*(\alph*)}
%\setlist[enumrq,3]{align=left,leftmargin=*,labelsep=.25em,label=~\roman*., ref=RQ\arabic*(\alph*)\roman*.}

\setlist[enumrq,1]{align=left,labelsep=.5em,label=RQ\arabic*, ref=RQ\arabic*}
\setlist[enumrq,2]{align=left,leftmargin=*,labelsep=.25em,label=~(\alph*), ref=RQ\arabic{enumrqi}(\alph*)}
\setlist[enumrq,3]{align=left,leftmargin=*,labelsep=.25em,label=~\roman*., ref=RQ\arabic{enumrqi}(\alph{enumrqii})\roman*.}

It seems that you cannot use multiple *s in the  ref=  field.

That kind of makes sense, if * is meant to refer to a default counter.
How will it know internally that you actually meant 3 different counters?



Hope this helps.


Dr Ross Moore
Department of Mathematics and Statistics
12 Wally’s Walk, Level 7, Room 734
Macquarie University, NSW 2109, Australia
T: +61 2 9850 8955  |  F: +61 2 9850 8114
M:+61 407 288 255  |  E: ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>
[cid:image001.png at 01D030BE.D37A46F0]
CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University. <http://mq.edu.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210415/f64fe10f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210415/f64fe10f/attachment-0001.png>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list.