TransWikia.com

itemize, removing natural indent

TeX - LaTeX Asked by Bobdul on August 28, 2021

When you itemize items you usually have the entire list indented. This is expected when you have a title or description of what you are listing. I want to itemize but not have the natural indent. I need to move all of the bullet points over towards the the leftmost edge of the margin like all other text you would enter. How can I do this?

2 Answers

Any customization of a list environment, such as itemize, enumerate, etc, is most elegantly handled by the enumitem package.

You can use leftmargin=* locally,

begin{itemize}[leftmargin=*]
  item one 
  item two
  item three
end{itemize}

or else you use

setlist[itemize]{leftmargin=*}

in your preamble to make the change global.

screenshot

documentclass{article}
usepackage[showframe=true]{geometry}
usepackage{enumitem}

begin{document}

begin{itemize}
  item one 
  item two
  item three
end{itemize}

begin{itemize}[leftmargin=*]
  item one 
  item two
  item three
end{itemize}
end{document}

Correct answer by cmhughes on August 28, 2021

emumitem package is a convenient tool. Since version 3.6, it offers a key called "left", with which one can set two tabstops one for the start of label and another for the start of the text. For example in the following MWE:

documentclass{article}
usepackage{enumitem}
setlist[itemize]{align=parleft,left=0pt..1em}
%
begin{document}
%
begin{itemize}
item first item
item second item
end{itemize}
%
end{document}

align=parleft aligns the label to left in the parbox of size labelwidth. left=0pt..1em means that the label (bullet symbol) begins at the margin, and the subsequent text (first item, second item etc.) start at 1em from the margin.

Answered by CyclicUniverse on August 28, 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