> 
>       Hi.
> 
>       I'm new to LyX (and LaTeX in general) so this could be a
>       trivial question:
> 
>       I'm writing an article with a certain number of mathematical
>       expressions. Labeling and numbering works good. Since I have 4
>       sections in my article I'd like the math. expressions to start
>       counting from 1 at each beginning of the section, but the
>       number should look like (sectionnumber-expressionnumber), e.g.
>       second expression in fourth section would have the number
>       (4-2).

Finally, I can help instead of getting helped! I had the exact same problem
just recently. Add to the LaTeX preamble the following line, if you are 
using the article class:
\renewcommand{\theequation}{\thesection.\arabic{equation}}

This works for figues and tables also:
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
\renewcommand{\thetable}{\thesection.\arabic{table}}

The AMS article class does this automatically, but it seems to have
problems with fancy headers and footers. (or perhaps I did something wrong,
which is a good possiblity!)

>       I have \setcounter{equation}{0} just below the each section
>       title, but it shows just the expression's number, and
>       (obviously) not the section number.
> 
>       What I have to put instead of \setcounter{equation}{0} to
>       number my expressions as (X-Y)?

Try:
\addtocounter{equation}{-1}

> 
>       Can I somehow define the default behaviour of the math.
>       numbering procedure (I'm sure I can, but don't know where).
> 
>       Hehe... it's obvious that I just started using LyX.

Same here! But it solved the massive problems I was having using Word. If it
wasn't the most used format, I'd drop it completely. Unfortuneatly,
translating LaTeX to Word is a tedious problem if you're doing more than
just simple documents.

> 
>       Thanks for the answers.
> 
Hope it works.

>       Davor
> 
> -- 
>       v
> Davor Cengija
> [EMAIL PROTECTED]
> ===================================
> "Please allow 30 days for delivery"
> 
> 

Reply via email to