On Thu, Jun 14, 2001 at 07:37:37AM +0200, Herbert Voss wrote:
> Wonil Chang wrote:
> > I'm trying to get this problem solved. I've look up lyx documents, latex books,
> > Deja news, and of course, this lyx mailing list. The situation I have is
> > examplified as follows,
> > 
> > But what I want is something like
> > 
> > a=b+c   (1.1)
> > d=e+f   (1.2)
> > g=h+i   (1.3)
> 
> in latex preamble
> 
> \renewcommand{\theequation}{\thechapter.\arabic{equation}}
> or \thesection instead of \thechapter if you have article class

It is better to put \numberwithin{equation}{chapter}' in the preamble and
enable AMS-math (using layout document dialog).

But I'm not sure if this is what Wonil wanted.
I think that he wanted to have sub-numbering for multi-line formulae.
This is done by putting \begin{subequations}/\end{subequations}
before/after the formula (and enabling AMS-math).
Actually, this will give (1a),(1b),... numbering.
To get (1.1),(1.2),... numbering, put the following lines into the preamble,
and then use \begin{mysubequations}/\end{mysubequations}

\newenvironment{mysubequations}
  {\begin{subequations}
    \renewcommand{\theequation}{\theparentequation.\arabic{equation}}}
  {\end{subequations}}

Reply via email to