4

According to the Russian (Czech, Polish, etc.) typesetting tradition, we have the following rules of equation breaking:

If an equation cannot be fit into one line, a typesetter should put part of the equation to the next line. First of all, breaking is allowed on binary relation symbols (=, <, etc.) and signs +, -. In the second place, breaks are allowed on multiplication signs (not on divisions!).

The symbol where the break was done should be repeated in the beginning of the next line. The "x" sign should be used in case of break in multiplication.

The question is how to achieve this behaviour.

As one can see, it's not an issue for displayed equations since breaking is always done manually. Interesting part are embedded equations which LaTeX can break without repeating the sign of operation.

Possible yet conservative solution is to turn off equation breaking inside paragraph at all. Unfortunately this could cause too large spaces between words.

2 Answers2

2

I found the russmath package (not on CTAN) perfectly solves the problem. It defines a universal way to declare correctly breakable binary operations and relations through \bbin{<expr>} and \brel{<expr>} commands correspondingly.

It employs the following code

\global\relpenalty=10000
\global\binoppenalty=10000

\makeatletter
\def\m@th{\mathsurround=0pt}
\def\@thick{\hbox{\m@th$\mskip\thickmuskip$}}
\def\@med{\hbox{\m@th$\mskip\medmuskip$}}

\def\brel#1{\discretionary{\@thick\hbox{\m@th$#1$}}{}{} #1}
\def\bbin#1{\discretionary{\@med\hbox{\m@th$#1$}}{}{} #1}
\makeatother

Here are some examples from the package documentation (in Russian):

enter image description here

1

These are also Polish rules. In the multiline displayed equation it is simple: one writes down needed symbols. Interesting part is a non-displayed case. The set o macros by Jacek Czekaj should be useful in this case:

http://www.gust.org.pl/bachotex/2010/program

(Jacek Czekaj, Uniwersytet Śląski, Instytut Matematyki, Katowice, Polska `Pots.tex' and other useful plain TeX packages

This article firstly describes the pots.tex package designed for plain TeX. This is a set of macros providing convenient methods for typesetting mathematical formulas with respect to old traditions and practice, with support for encoding Polish characters in UTF-8 standard. Subsequently, the article describes how to include graphics in extended TeX, and other useful packages designed for plain TeX, which are not well documented.)