TransWikia.com

How do I change labels of the enumerate environment?

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

2 Answers

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:

  • Reformat the counter output for the label
  • Use enumitem package and its label=... option to the environment
  • Use enumerate 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}

enter image description here

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}

enter image description here

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

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP