When I add a question label it goes beyond the left margin.
Here a minimal code :
\documentclass[11pt,a4paper]{exam}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,showframe]{geometry}
\usepackage{setspace}
\usepackage{fancybox}
\renewcommand{\thequestion}{\bf\arabic{question}}
\renewcommand{\questionlabel}{\bf\llap{Q}\thequestion.}
\begin{document}
\begin{questions}
\question This is the first question
\question This is the second question
\question Another question
\end{questions}
\end{document}
How I can solve this issue ?
\bf
is deprecated. Use\bfseries
instead. See also: “Correct” way to bold/italicize text?\llap{Q}
withQ
in order to prevent the label from running into the left margin.