答案1
根据文档,您需要添加一个选项才能\usepackage{opensans}
真正更改字体。因此,要将其设置为 sans 字体,您应该执行以下操作:
\documentclass{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage[defaultsans]{opensans}
\renewcommand\familydefault{\sfdefault}
\begin{document}
\Blindtext
\end{document}
但实际上还有另一种选择,可以省去这一renewcommand
行:
\documentclass{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage[default]{opensans}
\begin{document}
\Blindtext
\end{document}
此default
选项将 opensans 设置为整个文档的字体。整个文档,即除任何数学环境之外的文档:
\documentclass{scrartcl}
\usepackage[defaultsans]{opensans}
\renewcommand\familydefault{\sfdefault}
\begin{document}
\section{Heading}
In particular, any associated supporting element necessitates that urgent
consideration be applied to possible bidirectional logical relationship approaches.
\[ e = mc^2 \]
Conversely, any associated supporting element recognizes other systems' importance
and the necessity for possible bidirectional logical relationship approaches.
However, a service-oriented paradigm is further compounded when taking into account
the evolution of specifications over a given time period.
\end{document}
上面链接的文档解释了您还需要做什么才能获得匹配的数学结果。