I know that the TeXbook says : "boundary ligatures are automatically disabled in math mode". But I'd like to know if this behaviour can be bypassed.
I am creating an environment in order to copy my (young) students' works. For that purpose, I use the frcursive package. But the problem is that, in math mode, the letters are partially displayed because of the boundary ligatures the font designer used in his METAFONT's font files.
As you can see with the ECM below, TeX renders perfectly ligatures between letters in both text and math modes, but boundary ligatures only in text mode. Oddly, the right boundary ligature is displayed correctly for the letter a juste before the closing parenthesis...
Thanks in advance if you could help me.
Fab.
(Sorry for my english speaking, french inside)
ECM
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{frcursive}
\DeclareMathVersion{cursiveMath}
% Initialize cursive fonts with default ones
\DeclareSymbolFont{cursiveOperators}{OT1}{cmr}{m}{n}
\DeclareSymbolFont{cursiveLetters}{OML}{cmm}{m}{it}
% Modification of cursive fonts for the "cursiveMath" version
\SetSymbolFont{cursiveOperators}{cursiveMath}{T1}{frc}{m}{n}
\SetSymbolFont{cursiveLetters}{cursiveMath}{T1}{frc}{m}{n}
% Some new symbols
\DeclareMathSymbol{a}{\mathalpha}{cursiveLetters}{`a}
\DeclareMathSymbol{b}{\mathalpha}{cursiveLetters}{`b}
\DeclareMathSymbol{m}{\mathalpha}{cursiveLetters}{`m}
\DeclareMathSymbol{r}{\mathalpha}{cursiveLetters}{`r}
\DeclareMathSymbol{s}{\mathalpha}{cursiveLetters}{`s}
\DeclareMathSymbol{2}{\mathalpha}{cursiveOperators}{`2}
\DeclareMathSymbol{,}{\mathpunct}{cursiveOperators}{`,}
\DeclareMathSymbol{(}{\mathopen}{cursiveLetters}{`(}
\DeclareMathSymbol{)}{\mathclose}{cursiveLetters}{`)}
\begin{document}
\cursive
\mathversion{cursiveMath}
\begin{center}
Test with {\slshape frcursive}
\end{center}
\bigskip
\underline{Text mode:}
\smallskip
\qquad a, b, m, r, s
\vspace{20pt}
\underline{Math mode:}
\medskip
\qquad $ab^2 + ba^2 = ab (b + a)$
\smallskip
\qquad $mr^2 + sm^2 = rs^2$
\end{document}
a
is not at a boundary. If you want to use a letter, define\newcommand{\cl}[1]{\textup{#1}}
after loadingamsmath
. Then\cl{ma}
would use text mode and boundary ligatures.