I am using opmac with xetex, and I would like to have Monotype Baskerville as text font and MathTime Pro 2 as math font. I came up writing the following:

\input opmac    

% roman 
% bold
\font\tenbf="BaskervilleMTPro-Semibold:mapping=tex-text, extend=.86"
% italic
\font\tenit="BaskervilleMTPro-Italic:mapping=tex-text, extend=1.13"
% bold-italic
\font\tenbi="BaskervilleMTPro-SemiboldIt:mapping=tex-text, extend=.89
% typewriter


% Substitutes \slfam with \bifam

\input mtp2



  % Scaling to make text `x' and math `x' have about the same height
  \tmpdim=.913242\fontdim % .913242 = 1000 divided by \magstephalf

  \tmpdim=.913242\fontdim % .913242 = 1000 divided by \magstephalf


\rm % default roman

It seems to work quite well, but I think this is not the proper way to set up things in opmac. What is the proper way to do it?

In addition, I would like to have also the typewriter font typeset with the same x-height as the Baskerville font (or, equivalently, the math font), which is not achieved with my "solution".

1 Answer 1


OPmac includes ams-math.tex from csplain package in order to set math (because the default math setting from plain TeX is very poor and it doesn't allow the font size changing simply).

IMHO, there is nothing bad, if you call OPmac and then another macro for math setting (mtp2.tex in this example). Of course, the default math setting (by OPmac) is re-written by mtp2.tex, but this does the trick. Moreover, you rewrote \typosize and \typoscale macros from OPmac in order to set right font sizes of text fonts and of math fonts from new math environment too.

Of course, if I had the MTpro fonts then I would copy the tx-math.tex to mtpro-math.tex file and would do a modification of this file in order to make MTpro fonts work in the same way as with using another *-math.tex files from csplain. The reason: the macros from *-math.tex files are more compact and understandable. And then I would use mtpro-math.tex file and never use mtp2.tex. But this is additional (and maybe non trivial) work which is not explicitly needed when your solution is used and working.

To your second question: You can equalize the x-height of normal font and typewriter font using OPmac trick 0001, i.e. by:


Comment to Baskerville Math: I am working right now in a project of developing real Baskerville Math font with Mr. Štorm from Storm Type Foundry. But the project is in the initial alpha state now, not ready to general and public use. You can look at this documentation, where Baskerville Math font from our project is used. There are much more various sizes of brackets and more additional specialities.

  • By now I'm quite satisfied by the combination of Monotype Baskerville and MathTime fonts. But, anyway, thank you for having let me know about your project (and thank you for the answer too).
    – User
    Nov 17, 2015 at 12:10
  • I was reading some other answers from you, and I have noticed that, according to me, you use the expression "in order to" in a wrong way. I'm not an english expert (I'm Italian), but I'm quite sure that the way you use it is wrong. For example you shouldn't put the 'ing' form at the verb following it. Take this comment as a suggestion, not as a criticism ;)
    – User
    Nov 17, 2015 at 23:01
  • @User Please, correct the phrases directly in my answers. I hope that everybody can do this. It will be welcomed by me because my English is very bad and I will be able to learn from my faults.
    – wipet
    Nov 18, 2015 at 7:11
  • Has the Baskerville Math project progressed, or has it been abandoned?
    – User
    Apr 8, 2023 at 16:45
  • 1
    Unfortunately, it has been abandoned. I don't know the details which are probably hidden in contracts between Mr. Štorm (contractor) and Charles University in Prague (customer), but I know that demands on me (external consultant) for technical solutions stopped a long time ago.
    – wipet
    Apr 11, 2023 at 13:53

You must log in to answer this question.

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