
\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}
解決方案,但它不適用於第二個問題。
如何確保它是“ALWAYS”符號\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}