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

21 lines
1.0 KiB
TeX

% Native noad ligatures, actual operator variants and limits through PDF output.
\input math-fonts
\hsize=270pt \baselineskip=15pt \parskip=4pt
\abovedisplayskip=12pt \belowdisplayskip=12pt
\abovedisplayshortskip=3pt \belowdisplayshortskip=7pt
\mathchardef\Sum="1350 \mathchardef\Product="1351 \mathchardef\Integral="1352
Native text families retain their ligatures inside math: $\fam0 ffi+AV$.
Scripts keep the right nucleus: $\fam0 ff_i^j+fi^2$.\par
Inline operators use side scripts $\Sum_i^n+\Integral\nolimits_0^1$.
Forced limits also work inline $\Product\limits_i^n$.\par
\noindent Display operators use their actual font list successors.
$$\Sum_{i=1}^n x_i+\Product_{j=1}^m y_j$$
Continuation keeps the same baseline state.\par
\noindent Explicit side limits retain the display variant.
$$\Integral\nolimits_0^1 x^2+\mathop{fi}\limits_i^n$$
The native paragraph continues after the formula.\par
\noindent A limit can contain real stretchable material.
$$\Sum\limits^{a\mskip0mu plus1fil b}_j$$
Final text uses the same font resources.\par
\end