\documentclass[a4paper,11pt,openany,french]{book}
\usepackage{float} % figure wont float anymore
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{angles}
\usetikzlibrary{decorations.pathmorphing,decorations.markings,calc}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{caption}
\usepackage[lastexercise,answerdelayed]{exercise}
\begin{document}
\begin{Exercise}[label={}, difficulty={1}]
Prove whatever.
\end{Exercise}
\begin{Answer}
\begin{figure}[H]
\begin{tikzpicture}[scale=.5]
\tkzInit[xmin=-4,xmax=9,ymin=-3,ymax=9]
\tkzClip
\tkzDefPoint(2,3){A}
\tkzDefPoint[shift={(2,3)}](31:8){B}
\tkzDefPoint[shift={(2,3)}](158:8){C}
\tkzDrawSegments[color=red,line width=1pt](A,B A,C)
\tkzProtractor[scale=1.25,with=full,return](A,C)
\end{tikzpicture}
\caption{}\label{uisf}
\end{figure}
\end{Answer}
\part{Solutions}
\shipoutAnswer
\end{document}
此代码可以编译,但如果您复制粘贴练习数百次,tex 容量就会达到上限。问题似乎是选项answerdelayed
:tex 没有足够的容量来存储答案并在最后打印它们。如何解决这个问题?