【发布时间】:2009-11-10 13:18:28
【问题描述】:
对于某些字体,很容易将默认字体替换为:\renewcommand{\rmdefault}{somefont}。
不过,有些字体,比如BrushScriptX
希望您使用像\bsifamily 这样的特殊命令来使用字体。在
\bsifamily 在 /usr/share/texmf-texlive/tex/latex/brushscr/pbsi.sty 中定义:
\DeclareRobustCommand\bsifamily{\fontencoding{T1}\fontfamily{pbsi}%
\fontseries{xl}\fontshape{n}\selectfont}
在这种情况下,我有一个使用我正在编辑的 cls 样式表的文档。我正在使用标准包含来使用此字体:
\usepackage[T1]{fontenc}
\usepackage{pbsi}
如果我尝试在我的文档模板中使用\renewcommand{\rmdefault}{bpsi},它会失败并出现错误:Font shape `T1/pbsi/m/n' undefined
在模板中用 BrushScriptX 替换默认罗马字体的最佳方法可能是什么,就像 \renewcommand{\rmdefault}{otherfont} 那样?
【问题讨论】: