我的文档中有带标题和不带标题的问题,我也在使用 ifthen 包,但在不带标题的问题中,方括号中有数字。我该如何去掉它们?
我的文件:
\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}