1

I noticed that if you use the Latin modern font, loading it with the appropriate package and you set the default family to sans-serif, the bullets of the itemize environment are squared rather than rounded.

Why this happens and how to avoid it? Here there is a MWE and two screenshots, the first on the left showing the squared bullets and the second on the right about the normal rounded bullets.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{lmodern}
\renewcommand{\familydefault}{\sfdefault}

\begin{document}
\begin{itemize}
\item a
\item b
\end{itemize}
\end{document}

Squared bullets Normal rounded bullets

EDIT: Seems that the problems starts when you write the \renewcommand{\familydefault}{\sfdefault} line, because I've noticed that if you delete the this line and try to write the itemize environment putting it into a {\sffamily } environment, the bullets appear in rounded shape (see below). Any idea about why this happens?

{\sffamily
   \begin{itemize}
   \item a
   \item b
   \end{itemize}
}
3
  • I can't reproduce that on my system. – leandriis Mar 23 '20 at 13:56
  • @leandriis you don't get squares? I do (using TL19 frozen). It comes down to the \familydefault change. – daleif Mar 23 '20 at 13:58
  • @leandriis try to comment the \usepackage{lmodern} line, you'll see the bullets change their shape – andreagoo8 Mar 23 '20 at 13:59
2

A workaround with enumitem:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{lmodern}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{enumitem}
\setlist[itemize,1]{label=$\bullet$}

\begin{document}

\begin{itemize} 
\item a
\item b
\end{itemize}

\end{document} 

enter image description here

3
  • Thanks for the solution, it works. Any idea about the second question? (I have edited my original question) – andreagoo8 Mar 23 '20 at 14:35
  • I think thatchanging \familydefault` has a wider extent that simply changing the family. In the article class, \labelitemi is defined as \textbullet, and it is taken from the default font. – Bernard Mar 23 '20 at 15:19
  • Ok thanks fort the answer :) – andreagoo8 Mar 23 '20 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.