我想在使用包排版练习答案时减小字体大小exercise
。像这样:
{\tiny
\shipoutAnswer
}
但这不起作用。我在软件包手册中找不到如何操作。
有什么提示吗?
答案1
这是一个选项;由于没有提供 MWE,我提供了更改答案字体以及答案标题所需的代码;更改\AnswerFont
为所需的字体规范(我\tiny
只是为了示例而选择的):
\documentclass{article}
\usepackage{exercise}
\newcommand\AnswerFont{\tiny}
% change font for answers text
\renewcommand\AtBeginAnswer{\AnswerFont}
% change font for answers header
\renewcommand\AnswerHeader{\medskip\centerline{{\AnswerFont\textbf{
Answer of \ExerciseName\ \ExerciseHeaderNB}\smallskip}}}
% change font for answers list header
\renewcommand\AnswerListHeader{{\AnswerFont\textbf{\AnswerListName\
(\ExerciseListName\ \ExerciseHeaderNB)\ ---\ }}}
\begin{document}
\begin{Exercise}
Some introductory text.
\Question \label{first}The first question?
\Question \label{second}The second question?
\end{Exercise}
\begin{Answer}
The answer to Question~\ref{first}.
\end{Answer}
\begin{Answer}
The answer to Question~\ref{second}.
\end{Answer}
\end{document}