LyXequation numbering in multiline equation

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ekoset
Posts: 1
Joined: Wed Jul 30, 2008 2:52 am

equation numbering in multiline equation

Post by ekoset »

Hi, Anyone
I am Ekos, new member in Latex community and new user of Latex. Now, I am writing monthly technical report.
I would like to numbering multiline equations such as
2.23a
2.23b
2.23c
2.23d

but I could not find the way to do it. Anyone can help me?


Thank a lot and Best Regards,
Ekos

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

equation numbering in multiline equation

Post by Stefan Kottwitz »

Hi Ekos,

welcome to the board!
It can easily be accomplished with amsmath, even with alignment. Have a look at this compilable demonstration example:

Code: Select all

\documentclass[a4paper,10pt]{book}
\usepackage{amsmath}
\begin{document}
\chapter{Subequations}
\begin{subequations}
\begin{equation}
  e^{\pi} + 1 = 0
\end{equation}
\begin{equation}
  E = mc^2
\end{equation}
\end{subequations}
\chapter{Subequations with alignment}
\begin{subequations}
\begin{align}
  z_0 &=  0 \\
  z_{n+1} &= z_n^2+c
\end{align}
\end{subequations}
\end{document}
The documentation for amsmath can be found here.

For explanation above I've used LaTeX code, you can use this subequation environment in LyX too, just make sure that amsmath is enabled. If needed check Document -> Settings -> Math options, activate "Use AMS math package automatically" or even choose "Use AMS math package".

Stefan
LaTeX.org admin
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: equation numbering in multiline equation

Post by T3. »

Last time I checked (LyX 1.5.5) there was no built-in support for subequations environment. You have to insert it manually as TeX string (RET - Red Evil Text in LyX's terminology). And make sure that amsmath is selected as Stefan suggests.

Cheers,

Tomek
Post Reply