I have an indentation problem that I finally solved adding \usepackage{enumitem}
but I can't understand the reasons why the problem happened in the first place and got solved using enumitem
. I nailed it to the following MWE :
\documentclass[varwidth]{standalone}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{verbatim}
\begin{document}
some text
\begin{itemize}
\item an item
\end{itemize}
some more text
\begin{verbatim}
some verbatim
\end{verbatim}
\end{document}
which renders as
but I don't want any indentation on the some text
line. Actually if I remove the french babel package, I get the desired output but as I'm writing in french, I would rather keep that :
Now if I remove the itemize
part in the middle I also get the desired indentation on the first line but maybe that's because everything gets indented and the standalone is automatically cropped.
but I would rather keep that itemize, and when I remove the verbatim
part, everything gets indented
I'm therefore not really capable to predict what happens here. I tried removing indentation using \noindent
or \setlength{\parindent}{0pt}
without success. I finally managed to get the desired output by adding the package enumitem
, but I can't really determine what happened.
\frenchbsetup{IndentFirst=false}
right after ``babel`\section{title section}
right after\begin{document}
?some text
in the first image