Issue 29053 - Align Equations to =
Summary: Align Equations to =
Status: CLOSED DUPLICATE of issue 5998
Alias: None
Product: Math
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: bettina.haberer
QA Contact: issues@sw
Keywords: oooqa
Depends on:
Reported: 2004-05-11 14:15 UTC by ivand
Modified: 2013-08-07 14:55 UTC (History)
1 user (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description ivand 2004-05-11 14:15:35 UTC
When I write more equations, I would like to see them aligned not to center,
left or right, but to "=" (equal sign), for example (I hope you have a fixed
size font):

sin^2 x + cos^2 x = 1 newline
cos^2 x = 1 - sin^2 x

should produce upon request ... see image at URL

IMHO there is no way to reach this effect today.

Could you add some new "align" or "tab" command, please?

To make it a bit more universal, I would recommend the LaTeX philosophy:

LaTeX people use & (ampersand) character for this exactly. The referenced image
was produced with a code:

 \sin^2x + \cos^2x &= & 1\\
 \sin^2x &= & 1 - \cos^2x
Comment 1 mci 2004-05-11 15:39:19 UTC
reassigned to bh
Comment 2 lcn 2004-05-11 19:05:33 UTC
Any similiraties with issue 5998 ?
Comment 3 ivand 2004-05-12 07:32:21 UTC
The same problem.
I swear I was trying to search the database before entering the new issue, but I
couldn't find it somehow.
Still, my two cents for bringing up the LaTeX ampersand marking idea :-)
Comment 4 lohmaier 2004-05-13 22:50:16 UTC
marking duplicate. (thanks again for finding it)
right now to align a formula, you can use a matrix:
sin^2 x + cos^2 x#{} ={}# 1 ##
cos^2 x #{}={} #1 - sin^2 x
or, with the alignment like in the example-gif:
alignr sin^2 x + cos^2 x#{}={}#alignl 1 ##
alignr cos^2 x #{}={} #alignl 1 - sin^2 x

*** This issue has been marked as a duplicate of 5998 ***
Comment 5 lohmaier 2004-05-13 22:50:41 UTC
closing duplicate.
Comment 6 ivand 2004-07-15 23:00:42 UTC
Great advice from cloph. I used that immediately in May. Now I got back to write
some science again and I couldn't recall the empty brackets in #{} ={}#, so I
had to find this issue again.

Could you guys put that as a "TIP: writing equations aligned to = sign"
somewhere in the help of Formula Editor? I bet this is an adept for some F.A.Q.
as well.

Thank you in advance.
Comment 7 lohmaier 2004-07-16 18:49:37 UTC
please file an issue against the documentation project. You may want to
reference this issue in the new issue.
see issue 21484 as well
Thank you.
Closing as duplicate again.

*** This issue has been marked as a duplicate of 5998 ***
Comment 8 lohmaier 2004-07-16 18:51:20 UTC
closing again. A seperate issue for the documentation project is necessary to
have new Tips and documentation added (needs to be translated, etc).
Comment 9 localhost00 2005-08-31 18:06:16 UTC
I agree, except this alignment option should also be available to all 
relations in general.