| <meta http-equiv="REFRESH" content="10;url=http://wiki.services.openoffice.org/wiki/Documentation/FAQ" /> |
| <h3>This page is outdated. You will be redirected to <a href="http://wiki.services.openoffice.org/wiki/Documentation/FAQ">http://wiki.services.openoffice.org |
| /wiki/Documentation/FAQ</a> shortly. Use the new menu list on the right.</h3> |
| |
| <div style="margin-bottom: 10em;"></div> |
| <p><a href="../../index.html">Documentation</a> / <a href="../index.html">User FAQ</a> / <a href="index.html">Formula/Math</a> / <a href="004.html" accesskey="p">Previous</a>-<a href="006.html" accesskey="n">Next</a></p> |
| <h3>How do I align my equations at the equality sign?</h3> |
| <P>Currently <I>Math</I> does not have an alignment construction. |
| Instead you can use a matrix.</P> |
| <P>For example to typeset the equation</P> |
| <P><IMG SRC="005a.gif" NAME="Objekt321" ALIGN="middle" HSPACE=8 WIDTH=113 HEIGHT=41 BORDER=0/></P> |
| <P>you should enter the following:</P> |
| <PRE>matrix{ |
| alignr x+y # {}={} # alignl 2 ## |
| alignr x # {}={} # alignl 2-y |
| }</PRE><P> |
| The empty braces around = are necessary because = is a binary |
| operator and thus needs an expression on each side.</P> |
| <P>You can reduce the spacing around = if you change the inter-column |
| spacing of the matrix:</P> |
| <UL> |
| <LI>Select <B>Format-Spacing</B>. |
| <LI>Click <b>'Category'</b> and choose <B>Matrixes</B> in the pop-up |
| menu. |
| <LI>Now enter<KBD> 0% </KBD>under <B>'Column spacing'</B>. |
| </UL> |
| <P>Here is another example using a different solution:</P> |
| <P>To typeset the equation</P> |
| <P><IMG SRC="005b.gif" NAME="Objekt24" ALIGN="middle" HSPACE=8 WIDTH=249 HEIGHT=59 BORDER=0/></P> |
| <P>the trick is to use <KBD>phantom</KBD> as follows:</P> |
| <PRE>""3(x+4)-2(x-1)=3 x+12-(2 x-2) newline |
| ""phantom {3(x+4)-2(x-1)}=3 x+12-2 x+2 newline |
| ""phantom {3(x+4)-2(x-1)}=x+14</PRE><P STYLE="margin-top: 0.2cm; margin-bottom: 0.21cm; font-weight: medium"> |
| The effect of the empty quotation marks is to left justify the line - |
| a line starting with text (even an empty text) will always be left |
| justified.</P> |
| <P>You can replace<KBD> "" </KBD>with <KBD>alignl</KBD>.</P> |
| <p><a href="../../index.html">Documentation</a> / <a href="../index.html">User FAQ</a> / <a href="index.html">Formula/Math</a> / <a href="004.html" accesskey="p">Previous</a>-<a href="006.html" accesskey="n">Next</a></p> |