Commit f0f74538 authored by liziwl's avatar liziwl
Browse files

add times math font

parent 4cba1fd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@
  %
  % 数学字体
  % math-style = GB,  % GB (中文默认) | TeX (英文默认)
  math-font  = cambria,  % cambria (默认,同 Word 默认数学字体一致) | xits (TeX 内常用数学字体)
  math-font  = cambria,  % cambria (默认,同 Word 默认数学字体一致) | xits (TeX 内常用数学字体)| times (Times New Roman 的TeX克隆版)
}

% 载入所需的宏包
+12 −0
Original line number Diff line number Diff line
@@ -1189,6 +1189,7 @@
      xits,
      stix,
      none,
      times,
    },
    default = cambria,
  },
@@ -1780,6 +1781,17 @@
    range        = {cal,bfcal},
  ]%
}
\newcommand\thu@load@math@font@times{%
  \setmathfont{texgyretermes-math}[
    Extension    = .otf,
    StylisticSet = \thu@xits@integral@stylistic@set,
  ]%
  \setmathfont{texgyretermes-math}[
    Extension    = .otf,
    StylisticSet = 1,
    range        = {cal,bfcal},
  ]%
}
\newcommand\thu@load@math@font@stix{%
  \setmathfont{STIX2Math}[
    Extension    = .otf,