Apache OpenOffice (AOO) Bugzilla – Issue 20398
Problem aligning "equals" signs
Last modified: 2003-10-06 02:10:50 UTC
I want to align different formulae, so the "equals" signs line up. The way I found to do it was using "matrix" as in matrix{a#{}={}#1+2+3+4+5+6+7+8+9+...+n ##{}#{}={}#{n(n+1)} over 2} The problem with the code above is that the n(n+1)/2 appears centered, too separated from the equals sign. However, if I write matrix{a#{}={}#1+2+3+4+5+6+7+8+9+...+n ##{}#{}={}# alignl {{n(n+1)} over 2}} then both numerator and denominator get "alignl'ed", which looks quite ugly. I tried adding a "alignc" writing the last term as below, but it doesn't work. alignl { alignc{{n(n+1)} over 2} How do you align the equals signs?
Try this: matrix{a#{}={}#1+2+3+4+5+6+7+8+9+...+n ##{}#{}={} #alignl {n(n+1)} over {alignc 2}} Is this what you tried to get?
much shorter: matrix{a#{}={}#1+2+3+4+5+6+7+8+9+...+n ##{}#{}={} #""{n(n+1)} over {2} ^^ Empty string -> makes the expression left-aligned without changing the rest...
OK, thanks! The first solution was the one I was shooting for, but the second one (the sneaky trick with the "") is quite good, too!
OK, solved!