我需要用 R 和 Latex 的考试包写有编号和没有标题的问题,如下所示:
我不需要标题“问题”,如下所示:
最后一张图片是使用以下代码编写的,来自:
http://www.r-exams.org/templates/switzerland/
R中的代码是:
\documentclass{article}
\begin{document}
\SweaveOpts{concordance=TRUE}
<<echo=FALSE, results=hide>>=
library("exams")
#exams2html("swisscapital.Rnw")
exams2pdf("swisscapital.Rnw")
@
\begin{question}[""]
What is the seat of the federal
authorities in Switzerland
(i.e., the de facto capital)?
\begin{answerlist}
\item Basel
\item Bern
\item Geneva
\item Lausanne
\item Zurich
\item St.~Gallen
\item Vaduz
\end{answerlist}
\end{question}
\begin{solution}
There is no de jure capital but
the de facto capital and seat of
the federal authorities is Bern.
\begin{answerlist}
\item False.
\item True.
\item False.
\item False.
\item False.
\item False.
\item False.
\end{answerlist}
\end{solution}
\exname{Swiss Capital}
\extype{schoice}
\exsolution{0100000}
\exshuffle{5}
\end{document}
可以写带编号和不带标题的问题,如何?
谢谢。