为什么此代码中的正确答案没有出现在答题纸中?
\documentclass[twoside,a4paper,cleardoublepage=empty,14pt]{book}
\usepackage{enumitem}
\usepackage{multicol}
\usepackage{tasks}
\usepackage{exsheets,tikz}
\SetupExSheets[question]{type=exam}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=rectangle,draw,inner sep=2pt] (char) {#1};}}
\setlist[enumerate]{label=\protect\circled{\arabic*}}
\SetupExSheets{counter-format=ch.qu[1]}
\RenewQuSolPair{question}[headings-format=\large\bfseries,name=Problem]{solution}
\usepackage{pgffor}
\newcounter{solcount}
\setcounter{solcount}{1}
\newcommand\CC{%
\ref{ans}\label{sol:\arabic{solcount}}
\stepcounter{solcount}
}
\newcommand\printmyanswers{%
\section*{\centering Answers Sheet}
\foreach \x in {1,...,\thequestion}{%
\noindent
\x.~\ref{sol:\x}\par
}
}
\begin{document}
\tableofcontents
\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
\chapter{Analysis of Algorithms}
\begin{question}
What is a function?
\begin{multicols}{3}
\begin{enumerate}
\item First item
\item Second item\label{ans}
\item Fourth item
\end{enumerate}
\end{multicols}
\end{question}\printmyanswers
\end{document}
在答题纸上,我们看到“??”代替了数字 2。
我该如何解决这个问题?另外,我更希望在答题纸上看到答案的计数,例如问题编号:1.1. 2