GeneralModifying default behavior of itemized lists

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Modifying default behavior of itemized lists

Post by tripwire45 »

Guess I'm on a roll today.

I need to create nested itemized lists in a document. Problem is, I want *all* of the items to appear as bulleted or "bullet-like". The default behavior is to display the top-level items as bullets but the second-level items as dashes. The dashes look "funky" to me and I'd rather have something a tad more conventional. Even if the second-level item bullets appear clear instead of solid or even a different shape such as square or diamond would be ok.

I know there is a way to modify the default...probably through the use of a "label" such as \item[label]. but Googling doesn't produce the specific method. I'd appreciate any of your ideas on the matter. Thanks.

-Trip

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Modifying default behavior of itemized lists

Post by gmedina »

Take a look at the enumitem package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Modifying default behavior of itemized lists

Post by Juanjo »

An approach that does not require loading packages reads as follows.
The characters appearing in the labels of the itemize environment are stored in the following commands: \labelitemi, \labelitemii, \labelitemiii and \labelitemiv, depending of the nesting level. If, for example, you want diamonds at the second level, add somewhere the code:

Code: Select all

\renewcommand{\labelitemii}{$\diamond$}
If you put this in the preamble, the redefinition will affect all itemized lists (at level 2) in the document. If you only want to change the behaviour of a specific list, write that inside the environment, right after \begin{itemize}.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Modifying default behavior of itemized lists

Post by Stefan Kottwitz »

Hi Trip,

I just want to mention, if you want to use Juanjo's approach, the command for the bullet used at first level is \textbullet, if you want to use the same at deeper levels. For \textbullet no math mode is needed.

Stefan
User avatar
tripwire45
Posts: 129
Joined: Thu Apr 10, 2008 4:35 am

Modifying default behavior of itemized lists

Post by tripwire45 »

Actually, using:

Code: Select all

\renewcommand{\labelitemii}{$\circ$}
did the trick. Thanks.
Post Reply