This is an 'import symbol from a different font' question, but I'm sure its is not duplicated.

I would like to get the upright \varepsilonfrom the \newtxmathpackage. Concretely, I would like to get the symbol ''34 of ntxmia.tfm (I have used `fonttable to find it). My attepms:

1.- Using the code from Import empty set from Computer Modern font:

  <5> <6> <7> <8> <9> <10> gen * matha
  <10.95> ntxmia <12> <14.4> <17.28> <20.74> <24.88> ntxmia


(Once I would had got the symbol I would change the character (i. e. to be a \mathord).

2.- Using the code from Importing a Single Symbol From a Different Font:



3.- Using the code from Upright small greek via newtxmath without replacing the math font:


4.- And using the same code as above but including the lines


Only 4 works, but then I have to use libertine font ands newtxmath math symbols and I don't want. I want to use the usual computer modern font together with symbols provided by the mathabx package.

Any solution?

  • It's decimal 34, not hexadecimal. – egreg Feb 7 '18 at 17:57
  • Oh, sorry. I don't understand anything about all these things... :( – Dog_69 Feb 7 '18 at 17:58

It's much easier than that:


\DeclareFontFamily{U}{ntxmia}{\skewchar\font=127 }
  <-> ntxmia
  <-> txbmia


$x\in X$


enter image description here

  • Only one wuestion. What does the number 127 mean? – Dog_69 Feb 7 '18 at 17:57
  • @Dog_69 It's the character used by TeX for kerning math accents. – egreg Feb 7 '18 at 17:57
  • Ahhm... I don't understand anything you say, but don't worry. Thanks again. – Dog_69 Feb 7 '18 at 18:03

If using pdflatex, you can just unslant the Computer Modern \varepsilon using pdf special. See Upright Greek font fitting to Computer Modern

        \pdfsetmatrix{1 0 #1 1}%

$x\mathrel{\unslant\varepsilon\!} X$

enter image description here

  • I thought that, but I prefer much more the other varepsilon. Thanks anyway. – Dog_69 Feb 7 '18 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.