# Use text font for alphanumeric characters in math

My document currently uses TeX Gyre Termes as the main text font and Computer Modern for math. I would like to continue using Computer Modern for math mode symbols, operators, and greek, but replace the normal roman and italic alphanumeric characters (a-z A-Z 0-9) with the corresponding ones from the text font.

In short, I would like to go from the above equation to the below equation.

The code for the mockup perhaps helps to illustrate the point further:

I would like to go from this,
$$2 \, \alpha \, v \begin{pmatrix} \cos(t) \\ \sin(t) \end{pmatrix} \;,$$
to this,
$$\mbox{2} \, \alpha \, \mbox{\textit v} \begin{pmatrix} \mbox{cos}(\mbox{\textit t}) \\ \mbox{sin}(\mbox{\textit t}) \end{pmatrix}\;.$$
As you can see, the number 2, the italic \textit{v}'' and \textit{t}'', and
the upright cos'', sin'' are taken from the main text font.


Unfortunately, I do not know the correct terminology to refer to these different types of fonts, which makes searching for a solution that much harder.

• Welcome to TeX SX! In the opinion of many (including me), mixing Times and Computer Modern is hideous! Jul 12, 2016 at 9:51
• I do not disagree, @Bernard.
– user109906
Jul 12, 2016 at 9:53
• Why don't you use \usepackage{newtxtext,newtxmath}? It's mainly based on TeX Gyre Termes, and the fonts will be consistent. Jul 12, 2016 at 9:56
• Unfortunately, I need to match the style of a prior work, which uses this rather odd combination of symbols. And some symbols in Times, especially the bold greek, stick out as completely different.
– user109906
Jul 12, 2016 at 10:03
• The operators (sums, integrals) are conspicuously Computer Modern as well, unfortunately. As it is, the difference between what I get and what I try to mimic is much less noticeable then what it would be for newtxmath with CM greek.
– user109906
Jul 12, 2016 at 10:12