\documentclass[12pt,addpoints,answers]{exam}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage[math]{iwona} %nice font
\begin{document}
\begin{questions}
\question[5]
\pounds2600
\begin{solution}
\pounds 6
\end{solution}
\question[5]
\pounds2600
\begin{solution}
\[
\begin{cases}
C = \pounds 4 \\
B = \pounds 7
\end{cases}
\]
\end{solution}
\end{questions}
\end{document}
我尝试了该\usepackage[T1]{fontenc}
解决方案,但它对第二个问题不起作用。
如何确保它“始终”是符号\pounds
?
谢谢。
答案1
该\pounds
符号通常很难管理;在这种情况下,您可以通过重新定义\mathsterling
使用来解决该问题\textsterling
:
\documentclass[12pt,addpoints,answers]{exam}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage[math]{iwona} %nice font
\renewcommand{\mathsterling}{\textrm{\textsterling}}
\begin{document}
\begin{questions}
\question[5]
\pounds2600
\begin{solution}
\pounds 6
\end{solution}
\question[5]
\pounds2600
\begin{solution}
\[
\begin{cases}
C = \pounds 4 \\
B = \pounds 7
\end{cases}
\]
\end{solution}
\end{questions}
\end{document}