\documentclass[letterpaper]{article}
\usepackage{enumitem, showframe, lipsum}
\setlength{\parindent}{0pt}
\begin{document}
\begin{enumerate}[leftmargin=*, labelindent=0pt, label=\bfseries label \arabic*.]
\item \lipsum[66]
\item \lipsum[75]
\end{enumerate}
\begin{enumerate}[leftmargin=*, labelindent=0pt]
\item[\bfseries label] blah blah
\item[\bfseries long label] blah
\item[\bfseries long long label] \lipsum[75]
\end{enumerate}
\end{document}
I'm hoping to align labels from a list to the left boundary, and labelindent=0pt
produces exactly what I want.
But it doesn't work for customized labels:
How can I have a list like this without exceeding left boundary of the document :
label 0: XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
label long: XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
label long long: XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
I think I can achieve so by measuring the length of longest label name and play with leftmargin
and labelindent
but I wonder is there a smarter way to do so?