TeX - LaTeX Asked by benedito on July 26, 2021
I write
begin{enumerate}
item MMMMMM
item NNNNNNN
end{enumerate}
but when I compiled appear:
a)MMMMMMM
b)NNNNNNNN
I wish the item to appear in Arabic numerals instead of letters
1)MMMMMMM
2)NNNNNNN
The standard setup of enumerate
does not use a)
labelling -- it's 1.
etc.
There are basically three possibilities to do achieve the 1)
style:
enumitem
package and its label=...
option to the environmentenumerate
package and say begin{enumerate}[1)]....
A enumitem
quick and dirty solution ....
documentclass{article}
usepackage{enumitem}
begin{document}
begin{enumerate}
item This
item is
item the
item traditional
item labelling
end{enumerate}
begin{enumerate}[label={arabic*)}]
item This
item is
item another
item way
item of
item labelling
end{enumerate}
end{document}
Basically the same can be achieved with (watch the different label separations/indentations!) enumerate
package:
documentclass{article}
usepackage{enumerate}
begin{document}
begin{enumerate}
item This
item is
item the
item traditional
item labelling
end{enumerate}
begin{enumerate}[1)]
item This
item is
item another
item way
item of
item labelling
end{enumerate}
end{document}
Correct answer by user31729 on July 26, 2021
To change enumerate
and other similar environments label style globally, the enumitem
package also has a setlist
command, which can be applied to all levels or a specific level:
% setlist[environment,<levels>]{<options>}
setlist[enumerate]{label=arabic*)} % all levels
setlist[enumerate,2]{label=alph*)} % level 2 only
Answered by Nicolas on July 26, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP