TransWikia.com

enumerate: custom list alignment

TeX - LaTeX Asked on April 19, 2021

documentclass{article}
usepackage{enumerate}

begin{document}
    begin{enumerate}[1)]
        item aaa 
        item bbb
        item [2textit{bis})] ccc
        item ddd
        item eee
        item fff
        item [5textit{bis})] ggg
        item [5textit{ter})] hhh
    end{enumerate}
end{document}

How can I align 2bis, 5bis, and 5ter items with the other numbers?

One Answer

So far your items' labels are right aligned, Do you like to have left aligned? With use of the enumitem package you can simple left align items' labels with option align=left:

documentclass{article}
usepackage{enumitem}

begin{document}
    begin{enumerate}[leftmargin=*, label=arabic*), widest=7bis), align=left]
        item aaa
        item bbb
        item [2textit{bis})] ccc
        item ddd
        item eee
        item fff
        item [5textit{bis})] ggg
        item [5textit{ter})] hhh
    end{enumerate}
end{document}

enter image description here

If you drop widest=... from enumerate options, than you will get:

enter image description here

Correct answer by Zarko on April 19, 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