<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<pre><span style="font-family: "Courier New", monospace; font-size: 12pt; font-weight: 400;">Herbert Voss</span> wrote:<br><br>>Am 06.07.23 um 20:43 schrieb Michael Barr, Prof.:
>><i class="ContentPasted0"> Can anyone tell me what parameter controls the label placement in the
</i>>><i class="ContentPasted0"> enumerate package? If you compile the following file
</i>>><i>
</i>>><i class="ContentPasted0"> \documentclass{article}
</i>>><i class="ContentPasted0"> \usepackage{maa-monthly}
</i>>><i class="ContentPasted0"> \usepackage{enumerate}
</i>>
>
>change the order:
>
>\usepackage{enumerate}
>\usepackage{maa-monthly}
>
>
>Herbert
</pre>
Changing the order doesn't work. maa-monthly.sty changes the definition of enumerate and the desired label prefix "Alg-" (added by the enumerate package) is lost.</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
The enumerate package simply parses the optional argument to define \labelenumi (etc.) and then ends with the rest of the standard definition of enumerate. Unfortunately, that definition ultimately calls \@listi and \@listI, which have been changed by maa-monthly.sty.</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
If one has to do this only seldom, one could delete the enumerate package and just use something like
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
\item[Alg-1]<br>
</div>
<div class="elementToProof">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
\item[Alg-2]</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Alternatively, one could save and reuse the old definition of \@listi:</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
\let\save@listi=\@listi</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
\let\save@listI=\@listI</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
\usepackage{maa-monthly}</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
...</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
{</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
\let\@listi<span style="font-size:12pt" class="ContentPasted2">\save@listi</span><br class="ContentPasted2">
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size:12pt" class="ContentPasted2"> \let\@listI\save@listI</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size:12pt" class="ContentPasted2"> \begin{enumerate}[{Alg}-1]</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size:12pt" class="ContentPasted2"> ...</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size:12pt" class="ContentPasted2"> \end{enumerate}</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size:12pt" class="ContentPasted2">}<br>
</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
I can't guarantee there wouldn't be side effects that render this unsuitable.</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
A third possibility is to let the editors of the Monthly see the odd formatting and respond with a suggestion.<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
The Monthly asks submissions not to include any additional packages. So, it would seem that you shouldn't use enumerate.sty at all.</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers, Dan<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3" face="Courier New">Daniel H. Luecking [luecking@uark.edu]
<br>
Department of Mathematical Sciences<br>
1 University of Arkansas<br>
Fayetteville, AR, USA 72701-1201</font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>