仅粗体斜体希腊字母需要 cm 系列

仅粗体斜体希腊字母需要 cm 系列

在我的文档中,我需要使用Palatino作为文本字体和Euler数学字体,为此我使用以下代码:

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{palatino,mathpazo}
\usepackage{eulervm}%
\usepackage{amsmath}

\begin{document}
$\boldsymbol{\varphi}\quad \varphi$
\end{document}

但我需要希腊CM字体bold-italic,即\varphi应该是欧拉字体并且\boldsymbol{\varphi}属于标准CM系列,请指教如何实现...

针对我的需求有什么建议吗?请....

请注意,我正在使用LaTeX -> dvips -> ps2pdf

答案1

我不建议这么做。不过,如果你的教授命令你这么做,那么这可能就不值得打了。以下是方法。

在 LuaLaTeX 或 XeLaTeX 中,您可以加载 Latin Modern 或 New Computer Modern 来range=\mbfvarphi重新定义粗体直立\varphirange=bfup/{Greek,greek}重新定义所有粗体直立希腊文或range=bfup重新定义粗体直立字母。您可以使用任何数学字体或任何支持希腊文的粗体直立字体。此示例要求您下载Neo Euler 字体

我提前警告你,这可能比它需要的要复杂得多,但\setmathfont{Neo Euler}对你来说可能没用。我做了很多额外的设置,unicode-math只对字体中的符号使用 Neo Euler,对其他所有符号(以及数字,当然还有希腊字母)使用不同的数学字体。

\documentclass{article}
\usepackage{unicode-math}

\unimathsetup{math-style=upright, partial=upright, nabla=upright}
\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX }

\setmainfont{TeX Gyre Pagella}
\defaultfontfeatures{Scale=MatchLowercase}
\setmathfont{Asana Math}
\setmathfont[range={"0000-"0001,"0020-"007E,
                    "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7,
                    "00D7,"00F7,
                    "0131,
                    "0237,"02C6-"02C7,"02D8-"02DA,"02DC,
                    "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338,
                    "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB,
                    "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5,
                    "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044,
                    "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF,
                    "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128,
                    "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199,
                    "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5,
                    "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E,
                    "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D,
                    "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E,
                    "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5,
                    "22DC-"22DD,"22EF,"22F0-"22F1,
                    "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE,
                    "23DC-"23DF,
                    "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A,
                    "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6,
                    "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505,
                    "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537,
                    "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD,
                    "1D6DF,"1D6E1,"1D7CE-"1D7D7
                   }]{Neo Euler}
\setmathfont[range=up/{greek,Greek}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range=up/{latin,Latin}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range={bfup/{latin, Latin}, frak, bffrak, cal},
             script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range={up/num, bfup/num, it, bfit, scr, bfscr,
                    sfup, sfit, bfsfup, bfsfit, tt}
            ]{Asana Math}
\setmathfont[range=bfup/{Greek,greek}]{NewCMMath-Book}

\newcommand\vectorsym[1]{\symbf{#1}}

\begin{document}
\[ u, v, w, \varphi, \vartheta, \vectorsym{v}, \vectorsym{\varphi}
\]
\end{document}

Neo Euler/新计算机现代数学样本

为了进行比较,仅使用 Neo Euler 中的字母,您将获得:

Neo Euler 示例

如果您还需要使用 PDFLaTeX,您可以定义一个使用 Euler\mathversion{normal}和 Computer Modern的奇怪的数学字母表\mathversion{bold}

\documentclass{article}
\usepackage{amsmath}
\usepackage{tgpagella}
\usepackage{eucal, eufrak, eulervm}
\usepackage{bm}

\DeclareSymbolFont{weirdletters}{U}{zeur}{m}{n}
\SetSymbolFont{weirdletters}{bold}{OML}{cmm}{b}{it}

\DeclareMathSymbol\Gamma    {\mathalpha}{weirdletters}{"00}
\DeclareMathSymbol\Delta    {\mathalpha}{weirdletters}{"01}
\DeclareMathSymbol\Theta    {\mathalpha}{weirdletters}{"02}
\DeclareMathSymbol\Lambda   {\mathalpha}{weirdletters}{"03}
\DeclareMathSymbol\Xi       {\mathalpha}{weirdletters}{"04}
\DeclareMathSymbol\Pi       {\mathalpha}{weirdletters}{"05}
\DeclareMathSymbol\Sigma    {\mathalpha}{weirdletters}{"06}
\DeclareMathSymbol\Upsilon  {\mathalpha}{weirdletters}{"07}
\DeclareMathSymbol\Phi      {\mathalpha}{weirdletters}{"08}
\DeclareMathSymbol\Psi      {\mathalpha}{weirdletters}{"09}
\DeclareMathSymbol\Omega    {\mathalpha}{weirdletters}{"0A}
\DeclareMathSymbol{\alpha}  {\mathalpha}{weirdletters}{"0B}
\DeclareMathSymbol{\beta}   {\mathalpha}{weirdletters}{"0C}
\DeclareMathSymbol{\gamma}  {\mathalpha}{weirdletters}{"0D}
\DeclareMathSymbol{\delta}  {\mathalpha}{weirdletters}{"0E}
\DeclareMathSymbol{\epsilon}{\mathalpha}{weirdletters}{"0F}
\DeclareMathSymbol{\zeta}   {\mathalpha}{weirdletters}{"10}
\DeclareMathSymbol{\eta}    {\mathalpha}{weirdletters}{"11}
\DeclareMathSymbol{\theta}  {\mathalpha}{weirdletters}{"12}
\DeclareMathSymbol{\iota}   {\mathalpha}{weirdletters}{"13}
\DeclareMathSymbol{\kappa}  {\mathalpha}{weirdletters}{"14}
\DeclareMathSymbol{\lambda} {\mathalpha}{weirdletters}{"15}
\DeclareMathSymbol{\mu}     {\mathalpha}{weirdletters}{"16}
\DeclareMathSymbol{\nu}     {\mathalpha}{weirdletters}{"17}
\DeclareMathSymbol{\xi}     {\mathalpha}{weirdletters}{"18}
\DeclareMathSymbol{\pi}     {\mathalpha}{weirdletters}{"19}
\DeclareMathSymbol{\rho}    {\mathalpha}{weirdletters}{"1A}
\DeclareMathSymbol{\sigma}  {\mathalpha}{weirdletters}{"1B}
\DeclareMathSymbol{\tau}    {\mathalpha}{weirdletters}{"1C}
\DeclareMathSymbol{\upsilon}{\mathalpha}{weirdletters}{"1D}
\DeclareMathSymbol{\phi}    {\mathalpha}{weirdletters}{"1E}
\DeclareMathSymbol{\chi}    {\mathalpha}{weirdletters}{"1F}
\DeclareMathSymbol{\psi}    {\mathalpha}{weirdletters}{"20}
\DeclareMathSymbol{\omega}  {\mathalpha}{weirdletters}{"21}
\DeclareMathSymbol{\varepsilon}{\mathalpha}{weirdletters}{"22}
\DeclareMathSymbol{\vartheta}{\mathalpha}{weirdletters}{"23}
\DeclareMathSymbol{\varpi}  {\mathalpha}{weirdletters}{"24}
\DeclareMathSymbol{\varphi} {\mathalpha}{weirdletters}{"27}
\DeclareMathSymbol\upOmega  {\mathord}{weirdletters}{"0A}
\DeclareMathSymbol\upDelta  {\mathord}{weirdletters}{"01}

\newcommand\vectorsym[1]{\boldsymbol{#1}}

\begin{document}
\[ u, v, w, \varphi, \vartheta, \vectorsym{v}, \vectorsym{\varphi}
\]
\end{document}

欧拉 / 计算机现代样本

我不得不说,我不同意你的教授认为这样更好。如果你至少可以替换不同的字体,你可以使用三种左右包含希腊文的直立传统数学字体中的一种,例如 Math Design Charter:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tgpagella}
\usepackage{eucal, eufrak, eulervm}
\usepackage{bm}

\DeclareSymbolFont{weirdletters}{U}{zeur}{m}{n}
\SetSymbolFont{weirdletters}{bold}{OML}{mdbch}{b}{n}

\DeclareMathSymbol\Gamma    {\mathalpha}{weirdletters}{"00}
\DeclareMathSymbol\Delta    {\mathalpha}{weirdletters}{"01}
\DeclareMathSymbol\Theta    {\mathalpha}{weirdletters}{"02}
\DeclareMathSymbol\Lambda   {\mathalpha}{weirdletters}{"03}
\DeclareMathSymbol\Xi       {\mathalpha}{weirdletters}{"04}
\DeclareMathSymbol\Pi       {\mathalpha}{weirdletters}{"05}
\DeclareMathSymbol\Sigma    {\mathalpha}{weirdletters}{"06}
\DeclareMathSymbol\Upsilon  {\mathalpha}{weirdletters}{"07}
\DeclareMathSymbol\Phi      {\mathalpha}{weirdletters}{"08}
\DeclareMathSymbol\Psi      {\mathalpha}{weirdletters}{"09}
\DeclareMathSymbol\Omega    {\mathalpha}{weirdletters}{"0A}
\DeclareMathSymbol{\alpha}  {\mathalpha}{weirdletters}{"0B}
\DeclareMathSymbol{\beta}   {\mathalpha}{weirdletters}{"0C}
\DeclareMathSymbol{\gamma}  {\mathalpha}{weirdletters}{"0D}
\DeclareMathSymbol{\delta}  {\mathalpha}{weirdletters}{"0E}
\DeclareMathSymbol{\epsilon}{\mathalpha}{weirdletters}{"0F}
\DeclareMathSymbol{\zeta}   {\mathalpha}{weirdletters}{"10}
\DeclareMathSymbol{\eta}    {\mathalpha}{weirdletters}{"11}
\DeclareMathSymbol{\theta}  {\mathalpha}{weirdletters}{"12}
\DeclareMathSymbol{\iota}   {\mathalpha}{weirdletters}{"13}
\DeclareMathSymbol{\kappa}  {\mathalpha}{weirdletters}{"14}
\DeclareMathSymbol{\lambda} {\mathalpha}{weirdletters}{"15}
\DeclareMathSymbol{\mu}     {\mathalpha}{weirdletters}{"16}
\DeclareMathSymbol{\nu}     {\mathalpha}{weirdletters}{"17}
\DeclareMathSymbol{\xi}     {\mathalpha}{weirdletters}{"18}
\DeclareMathSymbol{\pi}     {\mathalpha}{weirdletters}{"19}
\DeclareMathSymbol{\rho}    {\mathalpha}{weirdletters}{"1A}
\DeclareMathSymbol{\sigma}  {\mathalpha}{weirdletters}{"1B}
\DeclareMathSymbol{\tau}    {\mathalpha}{weirdletters}{"1C}
\DeclareMathSymbol{\upsilon}{\mathalpha}{weirdletters}{"1D}
\DeclareMathSymbol{\phi}    {\mathalpha}{weirdletters}{"1E}
\DeclareMathSymbol{\chi}    {\mathalpha}{weirdletters}{"1F}
\DeclareMathSymbol{\psi}    {\mathalpha}{weirdletters}{"20}
\DeclareMathSymbol{\omega}  {\mathalpha}{weirdletters}{"21}
\DeclareMathSymbol{\varepsilon}{\mathalpha}{weirdletters}{"22}
\DeclareMathSymbol{\vartheta}{\mathalpha}{weirdletters}{"23}
\DeclareMathSymbol{\varpi}  {\mathalpha}{weirdletters}{"24}
\DeclareMathSymbol{\varphi} {\mathalpha}{weirdletters}{"27}
\DeclareMathSymbol\upOmega  {\mathord}{weirdletters}{"0A}
\DeclareMathSymbol\upDelta  {\mathord}{weirdletters}{"01}

\newcommand\vectorsym[1]{\boldsymbol{#1}}

\begin{document}
\[ u, v, w, \varphi, \vartheta, \vectorsym{v}, \vectorsym{\varphi}
\]
\end{document}

欧拉/数学设计宪章

相关内容