如何向 exsheets 添加标题和作者?

如何向 exsheets 添加标题和作者?

我有一个不错的exsheets模板,但是我就是无法添加标题和作者!(如果我添加一个,它仍然可以编译,但标题永远不会显示。)请帮我添加标题和作者?

这是我的模板:

\documentclass{article}
\usepackage{exsheets}
\SetupExSheets{counter-format=se.qu}

% due to a bug in versions >0.3a:
\providecommand*\checkedchoicebox{\ckeckedchoicebox}

\usepackage[inline]{enumitem}
\newlist{choices}{itemize}{1}
\newlist{choices*}{itemize*}{1}
\setlist[choices*]{itemjoin=\qquad}
\newcommand*\choice{\item[\choicebox]}
\newcommand*\correctchoice{\PrintSolutionsTF{\item[\checkedchoicebox]}{\item[\choicebox]}}

\begin{document}
\section{Exercises}
\begin{question}\label{qu:one}
 This is the first question.
 \begin{choices}
  \choice Wrong answer
  \correctchoice This is a correct answer
  \correctchoice This is another answer
  \choice Wrong answer
 \end{choices}
\end{question}
\begin{solution}
 This is the first question.
 \begin{choices}
  \choice Wrong answer
  \correctchoice This is a correct answer
  \correctchoice This is another answer
  \choice Wrong answer
 \end{choices}
 You find the question on page~\pageref{qu:one}.
\end{solution}
\begin{question}\label{qu:two}
 This is the second question.

 \begin{choices*}
  \correctchoice True
  \choice False
  \correctchoice True
  \choice false
 \end{choices*}
\end{question}
\begin{solution}
 This is the second question.

 \begin{choices*}
  \correctchoice True
  \choice False
  \correctchoice True
  \choice false
 \end{choices*}

 \noindent You find the question on page~\pageref{qu:two}.
\end{solution}

\section{Solutions}
\printsolutions

\end{document}

答案1

文档类有什么问题article?像这样吗?

\documentclass{article}
\title{A Small \LaTeX{} Exercise Template}
\author{Your Name  \\
    Your Company / University  \\
        }
        \date{}
\usepackage{exsheets}
\SetupExSheets{counter-format=se.qu}

% due to a bug in versions >0.3a:
\providecommand*\checkedchoicebox{\ckeckedchoicebox}

\usepackage[inline]{enumitem}
\newlist{choices}{itemize}{1}
\newlist{choices*}{itemize*}{1}
\setlist[choices*]{itemjoin=\qquad}
\newcommand*\choice{\item[\choicebox]}
\newcommand*\correctchoice{\PrintSolutionsTF{\item[\checkedchoicebox]}{\item[\choicebox]}}

\begin{document}
\maketitle
\section{Exercises}
\begin{question}\label{qu:one}
 This is the first question.
 \begin{choices}
  \choice Wrong answer
  \correctchoice This is a correct answer
  \correctchoice This is another answer
  \choice Wrong answer
 \end{choices}
\end{question}
\begin{solution}
 This is the first question.
 \begin{choices}
  \choice Wrong answer
  \correctchoice This is a correct answer
  \correctchoice This is another answer
  \choice Wrong answer
 \end{choices}
 You find the question on page~\pageref{qu:one}.
\end{solution}
\begin{question}\label{qu:two}
 This is the second question.

 \begin{choices*}
  \correctchoice True
  \choice False
  \correctchoice True
  \choice false
 \end{choices*}
\end{question}
\begin{solution}
 This is the second question.

 \begin{choices*}
  \correctchoice True
  \choice False
  \correctchoice True
  \choice false
 \end{choices*}

 \noindent You find the question on page~\pageref{qu:two}.
\end{solution}

\section{Solutions}
\printsolutions

\end{document}

在此处输入图片描述

相关内容