2

I use mtpro2 package in my article for writing math and Times Roman for text. The question is how to use certain Greek letters (like \gamma which I see better in newtxmath) from newtxmath instead of those in mtpro2. Here is a MWE:

\documentclass{article}
\usepackage[T1]{fontenc}
\renewcommand{\rmdefault}{ptm}
\usepackage{amsmath,amsfonts}
\usepackage[zswash,lite]{mtpro2}
\usepackage{bm}

\begin{document}

Law of Quadratic Reciprocity:

Some text goes here ...
\begin{equation}
f(z) = 50\sigma \times E_0 e^{-\gamma x} \cos(\omega t-\beta z) \mathbf{a}_x \quad \mathbf{A} + \Gamma
\end{equation}
\end{document}

UPDATE:

For gamma, the problem was solved with the the answer by @egreg below, but for Gamma it wasn't. I tried the following workaround:

\DeclareSymbolFont{newtxletters}{OML}{ntxmi}{m}{it}
\SetSymbolFont{newtxletters}{bold}{OML}{ntxmi}{b}{it}
\DeclareMathSymbol{\Gamma}{\mathord}{newtxletters}{0}

but it gave me the italic version of Gamma. I know that mtpro2 and newtxmath have different (and incompatible) output encodings, but there must be some workaround. Here is my current code:

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{tgtermes}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage[lite]{mtpro2}
\usepackage{bm}

\begin{document}

\[
\gamma \ \bm{\gamma} \ \Gamma \ \bm{\Gamma} 
\]

\end{document}

Which outputs this:

enter image description here

But the required is this:

enter image description here

Thank you.

1 Answer 1

3

Define a new symbol font using the font of newtxmath and tell TeX to take \gamma from it.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tgtermes}
\usepackage{amsmath,amsfonts}
\usepackage[zswash,lite]{mtpro2}
\usepackage{bm}

\DeclareSymbolFont{newtxletters}{OML}{ntxmi}{m}{it}
\SetSymbolFont{newtxletters}{bold}{OML}{ntxmi}{b}{it}
\DeclareMathSymbol{\gamma}{\mathord}{newtxletters}{13}

\begin{document}

Law of Quadratic Reciprocity: $\gamma\ne\beta$
\begin{equation}
f(z) = 50\sigma \times E_0 e^{-\gamma x} \cos(\omega t-\beta z) \mathbf{a}_x \quad \mathbf{A} + \Gamma
\end{equation}
\end{document}

enter image description here

Here's the same without the change.

enter image description here

16
  • @ egreg The solution does not work in case of \mathbf{\gamma}. Any idea? Thank you.
    – latex fan
    May 19, 2015 at 23:46
  • @latexfan Of course it doesn't; mtpro2 has a special setup for that; it uses different specially tailored output encodings. And no, it's incompatible with the standard encoding used by newtxmath. But \bm{\gamma} will do.
    – egreg
    May 19, 2015 at 23:50
  • @ egreg - Nice, it works for \bm{\gamma}, but for uppercase \Gamma it doesn't. I guess I should \DeclareMathSymbol{\Gamma}{\mathord}{newtxletters}{<number>}?
    – latex fan
    May 19, 2015 at 23:56
  • 1
    @Aim Oh, the standard Computer Modern symbol? Do \DeclareSymbolFont{cmletters}{OML}{cmm} {m}{it} \SetSymbolFont{cmletters}{bold}{OML}{cmm}{b}{it} \DeclareMathSymbol{\lambda}{\mathord}{cmletters}{"15}
    – egreg
    Jan 2, 2022 at 10:40
  • 1
    @Aim Look for the fontmath.ltx file on your system.
    – egreg
    Jan 2, 2022 at 16:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .