Files
texrra-engine/examples/native-bootstrap/math.tex

17 lines
804 B
TeX

% Native math modes/noads/families and actual paragraph penalties.
\input math-fonts
\hsize=240pt \parskip=5pt
Inline $a+b=c$ uses real binary and relation classes. Scripts $x_i^2+y^{jk}$
retain their measured optical font masters.\par
Grouped ${a+b}=c$ suppresses inner automatic penalties. Fractions
${a+b\over c+d}=x$ use the same measured geometry for layout and painting.\par
\mathchardef\alpha="010B \mathchardef\beta="010C
Math character definitions $\alpha+\beta=1$ use real family slots.\par
\hbox{Restricted $a+b=c$ inserts no automatic penalties.}
\hsize=85pt \binoppenalty=-10000 \relpenalty=-10000
\noindent$a+b+c=d+e+f=g+h+i$\par
\hsize=240pt \binoppenalty=10000 \relpenalty=10000
Prohibited internal breaks keep $a+b=c+d$ together.\par
\message{Native math noad execution completed.}
\end