获取 minionpro 包的 minionint 选项提供的积分符号,用于 LuaLaTeX

获取 minionpro 包的 minionint 选项提供的积分符号,用于 LuaLaTeX

正如标题所述,我希望获得使用minionintMinionPro软件包选项时激活的积分符号,而无需安装它。可能吗?我不确定该怎么做。我正在使用 Minion Pro.otf字体,并且已从MinionPro软件包中复制了引用积分的代码,但积分符号没有发生任何变化。缺少什么?

\documentclass{article}

\usepackage{fontspec}
\setmainfont[Path=./fuentes/minion/,
   UprightFont=*-Regular.otf,
   BoldFont=*-Bold.otf,
   ItalicFont=*-Italic.otf,
   BoldItalicFont=*-BoldItalic.otf
   ]{MinionPro}

\newfontface\Swash{MinionPro-Italic}[
Path=./fuentes/minion/,
 Extension = .otf,
 Contextuals=Swash]
\DeclareTextFontCommand{\textsw}{\Swash}
%\usepackage{MnSymbol}

\makeatletter

% integrals
%\newcommand\Mn@load@integrals{}

\newcommand\Mn@Decl@Minion@Ints{%
\DeclareFontFamily{U}{MnSymbolFI}{}
\DeclareFontShape{U}{MnSymbolFI}{m}{it}{
    <-6>  MnSymbolFI\Mn@minionint@opticals5
   <6-7>  MnSymbolFI\Mn@minionint@opticals6
   <7-8>  MnSymbolFI\Mn@minionint@opticals7
   <8-9>  MnSymbolFI\Mn@minionint@opticals8
   <9-10> MnSymbolFI\Mn@minionint@opticals9
  <10-12> MnSymbolFI\Mn@minionint@opticals10
  <12->   MnSymbolFI\Mn@minionint@opticals12
}{}
\DeclareFontShape{U}{MnSymbolFI}{b}{it}{
    <-6>  MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals5
   <6-7>  MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals6
   <7-8>  MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals7
   <8-9>  MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals8
   <9-10> MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals9
  <10-12> MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals10
  <12->   MnSymbolFI\Mn@minionint@bold\Mn@minionint@opticals12
}{}
\DeclareSymbolFont{intsymbols}  {U}{MnSymbolFI}{m}{it}
\SetSymbolFont{intsymbols}{bold}{U}{MnSymbolFI}{b}{it}
\let\varint\tint
\let\variint\tiint
\let\variiint\tiiint
\let\variiiint\tiiiint
\let\varidotsint\tidotsint
\let\varlandupint\tlandupint
\let\varlanddownint\tlanddownint
\let\varstrokedint\tstrokedint
\let\varoint\toint
\let\varoiint\toiint
\let\varrcirclerightint\trcirclerightint
\let\varlcirclerightint\tlcirclerightint
\let\varrcircleleftint\trcircleleftint
\let\varlcircleleftint\tlcircleleftint
\let\varsumint\tsumint
\DeclareMathSymbol\tint            \mathop{intsymbols}{112}
\DeclareMathSymbol\tiint           \mathop{intsymbols}{114}
\DeclareMathSymbol\tiiint          \mathop{intsymbols}{116}
\DeclareMathSymbol\tiiiint         \mathop{intsymbols}{118}
\DeclareMathSymbol\tidotsint       \mathop{intsymbols}{120}
\DeclareMathSymbol\tlandupint      \mathop{intsymbols}{122}
\DeclareMathSymbol\tlanddownint    \mathop{intsymbols}{124}
\DeclareMathSymbol\tstrokedint     \mathop{intsymbols}{126}
\DeclareMathSymbol\toint           \mathop{intsymbols}{128}
\DeclareMathSymbol\toiint          \mathop{intsymbols}{130}
\DeclareMathSymbol\trcirclerightint\mathop{intsymbols}{132}
\DeclareMathSymbol\tlcirclerightint\mathop{intsymbols}{134}
\DeclareMathSymbol\trcircleleftint \mathop{intsymbols}{136}
\DeclareMathSymbol\tlcircleleftint \mathop{intsymbols}{138}
\DeclareMathSymbol\tsumint         \mathop{intsymbols}{140}
\let\intop\tint
\let\ointop\toint
}
% \Mn@load@integrals

\makeatother

\begin{document}
This is Minion Pro font and \textsw{This is the Swashes}
\[\int  f dx\]
\end{document}

相关内容