[texhax] the best way to typeset

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Wed Feb 3 12:00:44 CET 2010


Maybe something like :

     \def oneortwo #1#2%
         {\setbox 0 = \hbox {$#1 = #2$}
          \ifdim \wd 0 > \linewidth
                % generate two rows of an \halign
          \else
                % generate one row of an \halign
          \fi
         }

and allow the \halign to worry about working out where
the tab should go ?

Philip Taylor
--------
Victor Ivrii wrote:
 > I have the row of equalities with left/right sides of different
 > lengths, some fitting into single line and some not,  and I want to
 > typeset them as
 >
 >
 > A=         B
 > AAA =   BBBB
 > AAAAAAAAAAAA=
 >               BBBBBBBBBBBBBBB
 > AAAAAAAA=
 >               BBBBBBB
 >
 >
 > so that left hand expressions would be left-aligned and right-hand
 > expressions would be also left-aligned on "some tab" (automatically
 > chosen so the width of the whole thing  is just \linewidth)


More information about the texhax mailing list