home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-09-18 | 2.1 KB | 56 lines | [TEXT/????] |
- % FLEQN DOCUMENT-STYLE OPTION - released 24 May 1989
- % for LaTeX version 2.09
- % Copyright (C) 1989 by Leslie Lamport
-
- % The following commands make the displayed math environments flush left,
- % with an indentation of \mathindent from the prevailing left margin.
-
- % Definitions of \[ and \] changed 9 Mar 87 to use \begin{trivlist} ...
- % \end{trivlist} instead of simulating it; corrects bug that caused
- % following text always to start new paragraph.
- %
- % \[ and \equation changed to set \@beginparpenalty and \@endparpenalty
- % to \predisplaypenalty and \postdisplaypenalty. Change made
- % 24 May 89, suggested by Rainer Sch\"opf and Frank Mittelbach.
-
- \def\[{\relax\ifmmode\@badmath\else\bgroup\@beginparpenalty\predisplaypenalty
- \@endparpenalty\postdisplaypenalty
- \begin{trivlist}\item[]\leavevmode
- \hbox to\linewidth\bgroup$ % $ TO MAKE 'DOLLAR' NESTING OK
- \displaystyle
- \hskip\mathindent\bgroup\fi}
-
- \def\]{\relax\ifmmode \egroup $\hfil % $ TO MAKE DOLLAR NESTING IN THIS FILE OK
- \egroup \end{trivlist}\egroup\else \@badmath \fi}
-
- \def\equation{\@beginparpenalty\predisplaypenalty
- \@endparpenalty\postdisplaypenalty
- \refstepcounter{equation}\trivlist \item[]\leavevmode
- \hbox to\linewidth\bgroup $ % $ TO MAKE DOLLAR NESTING OK
- \displaystyle
- \hskip\mathindent}
-
- \def\endequation{$\hfil % $ TO MAKE DOLLAR NESTING IN THIS FILE OK
- \displaywidth\linewidth\@eqnnum\egroup \endtrivlist}
-
- \def\eqnarray{\stepcounter{equation}\let\@currentlabel=\theequation
- \global\@eqnswtrue
- \global\@eqcnt\z@\tabskip\mathindent\let\\=\@eqncr
- \abovedisplayskip\topsep\ifvmode\advance\abovedisplayskip\partopsep\fi
- \belowdisplayskip\abovedisplayskip
- \belowdisplayshortskip\abovedisplayskip
- \abovedisplayshortskip\abovedisplayskip
- $$\halign % $$ DOLLAR MATCHING
- to \linewidth\bgroup\@eqnsel\hskip\@centering$\displaystyle\tabskip\z@
- {##}$&\global\@eqcnt\@ne \hskip 2\arraycolsep \hfil${##}$\hfil
- &\global\@eqcnt\tw@ \hskip 2\arraycolsep $\displaystyle{##}$\hfil
- \tabskip\@centering&\llap{##}\tabskip\z@\cr}
-
- \def\endeqnarray{\@@eqncr\egroup
- \global\advance\c@equation\m@ne$$\global\@ignoretrue % $$ MATCHING
- }
-
- \newdimen\mathindent
- \mathindent = \leftmargini
-
-