Issue 20398 - Problem aligning "equals" signs
Summary: Problem aligning "equals" signs
Status: CLOSED FIXED
Alias: None
Product: Math
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-09-30 02:16 UTC by fkereki
Modified: 2003-10-06 02:10 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description fkereki 2003-09-30 02:16:08 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?
Comment 1 michael.ruess 2003-09-30 09:10:47 UTC
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?
Comment 2 lohmaier 2003-09-30 10:52:43 UTC
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...
Comment 3 fkereki 2003-10-02 02:29:14 UTC
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!
Comment 4 fkereki 2003-10-06 02:10:50 UTC
OK, solved!