pxfont upgreek... 为什么我不能使用?

pxfont upgreek... 为什么我不能使用?

我正在尝试使用字体 数学中直立的希腊字母如下图所示,但不起作用。当我写字时,\alpha我希望\upalpha从 px 中看到。我的主要字体是 libertine。

\documentclass[11pt,a4paper]{article}%
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage[libertine,liby,libaltvw,vvarbb]{newtxmath}
\DeclareSymbolFont{greeksymbols}{OML}{npxmi}{m}{it}
\DeclareMathSymbol{\alpha}{\mathalpha}{greeksymbols}{11}
\DeclareMathSymbol{\beta}{\mathalpha}{greeksymbols}{12}
\DeclareMathSymbol{\gamma}{\mathalpha}{greeksymbols}{13}
\DeclareMathSymbol{\delta}{\mathalpha}{greeksymbols}{14}
\DeclareMathSymbol{\epsilon}{\mathalpha}{greeksymbols}{15}
\DeclareMathSymbol{\zeta}{\mathalpha}{greeksymbols}{16}
\DeclareMathSymbol{\eta}{\mathalpha}{greeksymbols}{17}
\DeclareMathSymbol{\theta}{\mathalpha}{greeksymbols}{18}
\DeclareMathSymbol{\iota}{\mathalpha}{greeksymbols}{19}
\DeclareMathSymbol{\kappa}{\mathalpha}{greeksymbols}{20}
\DeclareMathSymbol{\lambda}{\mathalpha}{greeksymbols}{21}
\DeclareMathSymbol{\mu}{\mathalpha}{greeksymbols}{22}
\DeclareMathSymbol{\nu}{\mathalpha}{greeksymbols}{23}
\DeclareMathSymbol{\xi}{\mathalpha}{greeksymbols}{24}
\DeclareMathSymbol{\pi}{\mathalpha}{greeksymbols}{25}
\DeclareMathSymbol{\rho}{\mathalpha}{greeksymbols}{26}
\DeclareMathSymbol{\sigma}{\mathalpha}{greeksymbols}{27}
\DeclareMathSymbol{\tau}{\mathalpha}{greeksymbols}{28}
\DeclareMathSymbol{\upsilon}{\mathalpha}{greeksymbols}{29}
\DeclareMathSymbol{\phi}{\mathalpha}{greeksymbols}{30}
\DeclareMathSymbol{\chi}{\mathalpha}{greeksymbols}{31}
\DeclareMathSymbol{\psi}{\mathalpha}{greeksymbols}{32}
\DeclareMathSymbol{\omega}{\mathalpha}{greeksymbols}{33}
\DeclareMathSymbol{\varepsilon}{\mathalpha}{greeksymbols}{34}
\DeclareMathSymbol{\vartheta}{\mathalpha}{greeksymbols}{35}
\DeclareMathSymbol{\varpi}{\mathalpha}{greeksymbols}{36}
\DeclareMathSymbol{\varrho}{\mathalpha}{greeksymbols}{37}
\DeclareMathSymbol{\varsigma}{\mathalpha}{greeksymbols}{38}
\DeclareMathSymbol{\varphi}{\mathalpha}{greeksymbols}{39}
\DeclareMathSymbol{\partial}{\mathalpha}{greeksymbols}{64}

\renewcommand{\alpha}{\upalpha}
\renewcommand{\beta}{\upbeta}
\renewcommand{\theta}{\uptheta}
\renewcommand{\gamma}{\upgamma}
\renewcommand{\sigma}{\upsigma}
\renewcommand{\varepsilon}{\upvarepsilon}
\renewcommand{\delta}{\updelta}
\renewcommand{\epsilon}{\upepsilon}
\renewcommand{\zeta}{\upzeta}
\renewcommand{\eta}{\upeta}
\renewcommand{\kappa}{\upkappa}
\renewcommand{\lambda}{\uplambda}
\renewcommand{\mu}{\upmu}
\renewcommand{\nu}{\upnu}
\renewcommand{\xi}{\upxi}
\renewcommand{\pi}{\uppi}
\renewcommand{\rho}{\uprho}
\renewcommand{\upsilon}{\upupsilon}
\renewcommand{\phi}{\upphi}
\renewcommand{\chi}{\upchi}
\renewcommand{\psi}{\uppsi}
\renewcommand{\omega}{\upomega}
\renewcommand{\varepsilon}{\upvarepsilon}
\renewcommand{\vartheta}{\upvartheta}
\renewcommand{\varpi}{\upvarpi}
\renewcommand{\varphi}{\upvarphi}
\renewcommand{\varpi}{\upvarpi}
\renewcommand{\varsigma}{\upvarsigma}
\renewcommand{\varrho}{\upvarrho}
\begin{document}
$\alpha\beta\gamma\mu\varpi\pi\varsigma\sigma\rho\zeta\delta\varepsilon$

These letters should come from pxfont.
\end{document}

答案1

\documentclass[11pt,a4paper]{article}%
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage[libertine,liby,libaltvw,vvarbb]{newtxmath}
\DeclareSymbolFont{greeksymbols}{U}{pxmia}{m}{it}
\DeclareMathSymbol{\alpha}{\mathalpha}{greeksymbols}{11}
\DeclareMathSymbol{\beta}{\mathalpha}{greeksymbols}{12}
\DeclareMathSymbol{\gamma}{\mathalpha}{greeksymbols}{13}
\DeclareMathSymbol{\delta}{\mathalpha}{greeksymbols}{14}
\DeclareMathSymbol{\epsilon}{\mathalpha}{greeksymbols}{15}
\DeclareMathSymbol{\zeta}{\mathalpha}{greeksymbols}{16}
\DeclareMathSymbol{\eta}{\mathalpha}{greeksymbols}{17}
\DeclareMathSymbol{\theta}{\mathalpha}{greeksymbols}{18}
\DeclareMathSymbol{\iota}{\mathalpha}{greeksymbols}{19}
\DeclareMathSymbol{\kappa}{\mathalpha}{greeksymbols}{20}
\DeclareMathSymbol{\lambda}{\mathalpha}{greeksymbols}{21}
\DeclareMathSymbol{\mu}{\mathalpha}{greeksymbols}{22}
\DeclareMathSymbol{\nu}{\mathalpha}{greeksymbols}{23}
\DeclareMathSymbol{\xi}{\mathalpha}{greeksymbols}{24}
\DeclareMathSymbol{\pi}{\mathalpha}{greeksymbols}{25}
\DeclareMathSymbol{\rho}{\mathalpha}{greeksymbols}{26}
\DeclareMathSymbol{\sigma}{\mathalpha}{greeksymbols}{27}
\DeclareMathSymbol{\tau}{\mathalpha}{greeksymbols}{28}
\DeclareMathSymbol{\upsilon}{\mathalpha}{greeksymbols}{29}
\DeclareMathSymbol{\phi}{\mathalpha}{greeksymbols}{30}
\DeclareMathSymbol{\chi}{\mathalpha}{greeksymbols}{31}
\DeclareMathSymbol{\psi}{\mathalpha}{greeksymbols}{32}
\DeclareMathSymbol{\omega}{\mathalpha}{greeksymbols}{33}
\DeclareMathSymbol{\varepsilon}{\mathalpha}{greeksymbols}{34}
\DeclareMathSymbol{\vartheta}{\mathalpha}{greeksymbols}{35}
\DeclareMathSymbol{\varpi}{\mathalpha}{greeksymbols}{36}
\DeclareMathSymbol{\varrho}{\mathalpha}{greeksymbols}{37}
\DeclareMathSymbol{\varsigma}{\mathalpha}{greeksymbols}{38}
\DeclareMathSymbol{\varphi}{\mathalpha}{greeksymbols}{39}
\DeclareMathSymbol{\partial}{\mathalpha}{greeksymbols}{64}    
\begin{document}
$\alpha\beta\gamma\mu\varpi\pi\varsigma\sigma\rho\zeta\delta\varepsilon$

These letters should come from pxfont.
\end{document}

在此处输入图片描述

name                   type              encoding         emb sub uni object ID
---------------------- ----------------- ---------------- --- --- --- ---------
XIJCAC+Pxmia           Type 1            Builtin          yes yes no       4  0
RMSEWS+LinLibertineT   Type 1            Custom           yes yes no       5  0

相关内容