2

I am trying to figure out how to justify the text inside the bullet points, pardon me I am a little new on LaTeX.

My code is the following

\documentclass[10pt,letterpaper,onecolumn]{article}
\usepackage{lipsum}
\begin{document}
\begin{itemize}
\item \lipsum[1-1]
\item \lipsum[1-1]
\item \lipsum[1-1]
\end{itemize}
\end{document}

This are the bullet points that I have not been able to justify

4
  • 1
    Add \sloppy to your preamble. The problem is that it doesn't know by default how to efficiently hyphenate Latin, so some words overrun the margin. Apr 2, 2021 at 3:54
  • 3
    It is justified. Just use regular text and not lipsum.
    – Werner
    Apr 2, 2021 at 3:55
  • 1
    If you "teach" it to hyphenate Latin, the problem goes away: \usepackage[latin]{babel}. My earlier comment, \sloppy, compensates for both narrow margins and poor hyphenation, but is generally not recommended. Apr 2, 2021 at 3:59
  • If the language you write in doesn't have a babel module, try loading the microtype package.
    – Mico
    Apr 2, 2021 at 5:18

1 Answer 1

2

As noted in the comments, the problem is that the lipsum text cannot be hyphenated properly. Assuming you are actually writing your documents in Latin, then you need to load babel with the [latin] option.

\documentclass[10pt,letterpaper,onecolumn]{article}
\usepackage[latin]{babel}
\usepackage{lipsum}
\begin{document}
\begin{itemize}
\item \lipsum[1-1]
\end{itemize}
\end{document}

Latin

Since it's unlikely you're actually writing in Latin, then any text that TeX knows how to hyphenate will be justified automatically. So for example, if we load the kantlipsum package, we get proper hyphenation and therefore justification.

\documentclass[10pt,letterpaper,onecolumn]{article}
\usepackage{kantlipsum}
\begin{document}
\begin{itemize}
\item \kant[1]
\end{itemize}
\end{document}

Kant

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .