[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mathdiscretionary



To:	IN%"math-font-discuss@cogs.susx.ac.uk"

not that it belongs onto this list, but it is a nice item:

> \mathdiscretionary??
> 
>  > SZILLAT@iaas-berlin.d400.de
>  > Ein anderes Detail, das mir aufgefallen ist, 
>  > ist der Satz umgebrochener Formeln
>  > a = b +
>  >  + c
>  > Das Operationszeichen taucht auf beiden Zeilen auf.
> 
> In English: the plus sign of the broken formula is repeated.
> 
> QUIERY:  Can TeX provide for this automatically?
> Or is this another challenge for NTS?

sure it does (shouldn't you know Larry? :-) if you define


\mathchardef\mathplus=\the\mathcode`\+
\mathcode`\+="8000
{\catcode`\+=\active
 \gdef+{\mathplus\discretionary{}{\the\textfont0\char"2B}{}%
        \mathbin{}}
}

\hsize=3cm

a bit $a + b + C + d + e + f + f + g$

unfortunately TeX doesn't allow to use math inside the \discretionary
so one has to fiddle around a bit. (and one could do better in NTS)

Frank