我正在使用该dialogue
软件包排版正文之间的一些对话。正文采用衬线字体,我希望对话以无衬线字体显示,并且尺寸小于正文。
对于较小的尺寸,我目前将对话环境封闭在一个小环境中,但尝试使用 sans 进行同样的操作却不起作用。但我需要将两者都设置为默认设置。在这方面可以做些什么?
平均能量损失
\documentclass{article}
\usepackage{dialogue}
\begin{document}
% {\textsf % this not working, all text should be in sans by default
\begin{small} % this works, but needs to be set by default for all
% text within dialogue
% \begin{textsf} % neither is this working
\begin{dialogue}
\speak{AJ} This is about the oil.
\speak{AA} What oil?
\speak{AJ} The oil that the current produced.
\end{dialogue}
%\end{textsf}
\end{small}
%}
\end{document}
答案1
您可以重新定义\PreDialogue
宏以包含字体开关,即
\renewcommand\PreDialogue{\sffamily\small}
\documentclass{article}
\usepackage{dialogue}
\renewcommand\PreDialogue{\sffamily\small}
\begin{document}
Text before dialogue.
\begin{dialogue}
\speak{AJ} This is about the oil.
\speak{AA} What oil?
\speak{AJ} The oil that the current produced.
\end{dialogue}
Text between dialogue.
\begin{dialogue}
\speak{AJ} This is about the oil.
\speak{AA} What oil?
\speak{AJ} The oil that the current produced.
\end{dialogue}
\end{document}