开发者

temporarily change fonts in latex with T1 font

开发者 https://www.devze.com 2023-01-01 14:31 出处:网络
I want to temporarily change fonts in latex, to arev. Usually, this would work, as described here: \\documentclass{article}

I want to temporarily change fonts in latex, to arev. Usually, this would work, as described here:

\documentclass{article}
\begin{document}
{\fontencoding{T1}\fontfamily{arev} the开发者_运维知识库 font is temporarily changed}
\end{document}

it doesnt though, and I think it has to do with the fact that arev is a T1 font. I think I need to specify more?

Thanks in advance for any advice, I appreciate it!

Georg Raba


Try this:

\newcommand*{\titlefont}{\fontencoding{T1}\fontfamily{fav}\selectfont}

You need to use "fav" as the font family name. You can find this mapping by looking in arevtext.sty (for me it is in C:\Program Files\MiKTeX 2.9\tex\latex\arev)


Try:

{\fontencoding{T1}\fontfamily{arev}\selectfont
Arev looks like this}.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号