I have titled and notitled question in my document, also I'm using ifthen package, but in notitled questions, there are numbers in square brackets. How can I get rid of them??
My document:
\documentclass[a4paper,10pt,addpoints]{exam}
\usepackage{ifthen}
\qformat{\textbf{Question \thequestion .
\ifthenelse{\equal{\thequestion}{\thequestiontitle}}
{}
}
{~{\small [\thequestiontitle]}}
\hfill
\textsl{(\thepoints)}}
\renewcommand{\questionshook}{%
\setlength{\leftmargin}{0pt}%
\setlength{\labelwidth}{-\labelsep}%
}
\pointname{\ p}
\begin{document}
\begin{questions}
\titledquestion{Title}[5] The first question
\question[3] My question
\end{questions}
\end{document}
}
slightly: ...{} {~{\small [\thequestiontitle]}} } \hfill
...}
of\textbf{...}
where you want the bold to end. Originally you had it in the middle ofifthenelse
, pushing what was intended to be the false part outside the ifthenelse. E,g., try ...\thequestion .}
...