I am using latex to type up a logical system that has some equations. The abbreviation for the logical system is DAS. I would like the equations to be numbered
DAS.1
DAS.2
…
DAS.n
I expected that
\begin{enumerate}[{DAS.1}]
\item
\item
...
\item
\end{enumerate}
would work. However the output I get is:
D1S.1
D2S.2
…
DnS.n
So I suppose the question could be restated as: how does one control which letter the enumerate environment … enumerates? Any suggestions are greatly appreciated.
Best Answer
The
enumerate
package provides the optional argument functionality to listing environments likeenumerate
. However, to make this work as expected, you need to "shield" the unwanted enumeration from the choices. This is done by puttingDAS
inside braces, and therefore usingsince in
the first available enumerations (albeit grouped) are specified by
A
and1
, causing theD1S.1
,D2S.2
, ... output. That is,enumerate
identifies two locations to place the enumeration, and sets the enumeration style as the last one encountered (1
/\arabic
in this case). Consequently, usingwould yield the enumeration
D111S.1
,D222S.2
, ..., as is visible from the following minimal example: