2

I'm using Tex Live on Linux (Ubuntu). I have the MathTime Pro 2 (lite version) fonts installed, using the script I found here. I always used them with tex, pdftex or xetex and they worked correctly. But now, after switching to luatex (because I need some luatex specific features), I'm encountering some problems. Consider the following TeX file:

\input amstex
\input mtp2

$$\left(\matrix1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\0&0&0&1&0\\0&0&0&0&1\endmatrix\right)$$
$$\PARENS{\matrix1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\0&0&0&1&0\\0&0&0&0&1\endmatrix}$$

\bye

Typesetting with tex, pdftex or xetex I obtain

enter image description here

If I use luatex, instead I get

enter image description here

The same problem happens with the square root sign. What's going wrong? How can I properly use mtp2 with luatex?

7
  • 1
    probably related tex.stackexchange.com/questions/232109/… Commented Nov 1, 2015 at 20:13
  • @UlrikeFischer Yes, it is the same problem! (Except the fact that here I'm using the plain format and there they use the latex format.)
    – User
    Commented Nov 1, 2015 at 20:22
  • 1
    wow you are using amstex still? :-) Commented Nov 1, 2015 at 21:23
  • @David Carlisle. What's wrong with amstex? :) Is there a better macro set for mathematical typesetting compatible with plain tex?
    – User
    Commented Nov 2, 2015 at 16:51
  • 1
    @User Yes sure, of course they use amsmath. It is only loosely a port: the basic ideas came from amstex last century and it has been separately maintained since then, there is hardly any recognisable code in common now as amsmath is written to fit with latex font handling. As for using plain for real documents as opposed to small excercises, you are of course free to an opinion:-) Commented Nov 3, 2015 at 15:47

1 Answer 1

4

The same patch I proposed for the LuaLaTeX problem (LuaLatex and large braces with MathTime Professional 2) seems to give good results:

\input amstex
\input mtp2

\catcode`@=11
\def\PEX@#1{\setbox\Pbox@\vbox{$$\left.\vcenter{\copy\prePbox@}\right)$$}%
 \setbox\Pbox@\vbox{\unvbox\Pbox@\unskip\unpenalty
 \setbox\Pbox@\lastbox
 \setbox\Pbox@\hbox{\unhbox\Pbox@\setbox\Pbox@\lastbox
 \setbox\Pbox@\hbox{\unhbox\Pbox@\setbox\Pbox@\lastbox
 \setbox\z@\hbox{#1}%
 \ifdim\ht\Pbox@>\dp\z@\global\PEX@true\else
 \global\PEX@false\fi}}}}
\catcode`@=12

$$\left(\matrix1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\0&0&0&1&0\\0&0&0&0&1\endmatrix\right)$$
$$\PARENS{\matrix1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\0&0&0&1&0\\0&0&0&0&1\endmatrix}$$

\bye

enter image description here

You must log in to answer this question.

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