DejaVu Serif Condensed:使用 PdfLaTeX 匹配数学字体

DejaVu Serif Condensed:使用 PdfLaTeX 匹配数学字体

我喜欢使用 DejaVu Serif Condensed 字体作为文本字体,但我没有找到合适的数学字体。

为了解决这个问题,我想到两种可能的解决方案:

  • 寻找一种与 DejaVu Serif Condensed 结合效果良好的现有数学字体

  • 使用\SetMathAlphabet命令将 DejaVu Serif 用作数学字母。

我对第二点非常感兴趣。这有效吗?有意义吗?或者这会弄乱数学符号(必须来自另一种字体)吗?

到目前为止,我还没有设法使第二点发挥作用,按照以下解决方案所示这里

有什么建议么?

这是一个最简单的例子:

\documentclass{article}

\usepackage[english]{babel}  
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[scaled=.85]{DejaVuSerifCondensed}
\usepackage[scaled=.85]{DejaVuSansCondensed}

% Math letters in Times font
\DeclareMathVersion{mathtimes}
\SetSymbolFont{letters}{mathtimes}{OML}{txmi}{m}{it}
\newcommand\timesmath{\mathversion{mathtimes}}

% Math letters in DejaVu font
\DeclareMathVersion{mathdeja}
\SetSymbolFont{letters}{mathdeja}{OML}{dejavu}{m}{it}
\newcommand\dejamath{\mathversion{mathdeja}}

\parindent 0pt

\begin{document}

  Some text written in DejaVu Serif Condensed. And the math is as default in CM.
  \[
    \frac{a}{b} + c \cdot d = \sum \int E \, .
  \]
  Now I can change the math alphabet with 
  \verb|\timesmath|      
  \timesmath
  and the result is
  \[
    \frac{a}{b} + c \cdot d = \sum \int E \, .
  \]
  Now I would like to do the same, but with the DejaVu Serif font, but if I do this the same
  way, the command \verb|\dejamath|
  does not work, as \verb|dejavu| is obviously not the correct name for the font shape.
  \dejamath
  \[
    \frac{a}{b} + c \cdot d = \sum \int E \, .
  \]

  My question is now, how do I get the correct font shape (equivalent to \verb|txmi|) for
  DejaVu; and does it make sense after all to use such a font in this way. One problem is, that
  DejaVu produces quite big letters (that is why I used the \verb|scaled=.85| option).

\end{document}

相关内容