LyXHelp with aligning math formula and numbering

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Help with aligning math formula and numbering

Post by meho_r »

OK, here's one way:
  1. Insert AMS align Environtment (Insert > Math > AMS align Environment)
  2. In the first placeholder type the left part of the equation, including the equal sign
  3. In the second placeholder type the rest of the first line, then press Ctrl+Return
  4. Leave the first placeholder on the second line empty, and type in the second one the rest of the second line. Do same for all subsequent lines.
  5. To help indent the second and other lines, use phantom command, just type in the front of + from the beginning of the second (and other) line(s): \phantom{ and then type in the placeholder which will appear: Ctrl+Space then = and then again Ctrl+Space. This will create an empty space equal to Space+=+Space.
  6. To number a particular line, click in that line, then Edit > Math > Number This Line. Alternatively, you can use Insert > Label to label the equation (and the line in which the cursor is placed will be numbered) so you can reference to it in the text.
In the attachment is an example file (you'll need LyX 2.0.0rc3 to open it).
Attachments
Example.zip
An example file. LyX 2.0.0rc3 or greater needed to open the file.
(54.38 KiB) Downloaded 185 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply