### Re: formula numbering


On Aug 19, 2013, at 5:56 AM, Guenter Milde mi...@users.sf.net wrote:

On 2013-08-08, bieniasz wrote:
Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

But how do you find out the up-to-date number of the equation in chapter
3 you want to reference in chapter 14?

...

LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Reference by numbers is used in the printout, but reference by label is used
in all LaTeX source documents.

In the printed text, I usually use a description of the formula + the
reference number so that the reader can look it up if required but generally
does not need to:

The incident radiation is absorbed and distributes in the sensor layer
by means of heat conduction (Equations [15] and [16]) resulting in a
time-dependent temperature field T(\xyz,t).

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

But IMO, the even bigger problem is, if you insert a new formula between
E1 and E2 but continue to use E15 for new references to the heat
equation (or whatever) which is now E16!!!

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

I daresay that all of this would be much easier if LyX had a _graphical_
equation browser, built in to the Outline tool. By default, equations would be
organized by section, subsection, etc., so that you could in most cases find
the equation that you want to reference by the most natural way--clicking on
the section that you recall it being in, seeing a rendering of the equations in
a scrollable list, then clicking once to insert the reference at the cursor
location. The rendered equation (in the list) would still be immediately
recognizable in most cases even if only a part of it were visible (without
expanding the Outline window a lot). Of course, the graphical equation browser
would also be available in the existing equation list in the Outline.

And somewhat separately, it would sometimes be nice to have multiple instances
of the Outline so that one would not have to switch between list types as often.

Jerry

I dare to say that the label/reference system is one of the main
advantages of LaTeX (and LyX) for scientific writing. It may be more
complicated to begin with but that effort pays as soon as you write more
than 10 equations in one paper, say.

Günter



### Re: formula numbering


On Aug 19, 2013, at 5:56 AM, Guenter Milde mi...@users.sf.net wrote:

On 2013-08-08, bieniasz wrote:
Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

But how do you find out the up-to-date number of the equation in chapter
3 you want to reference in chapter 14?

...

LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Reference by numbers is used in the printout, but reference by label is used
in all LaTeX source documents.

In the printed text, I usually use a description of the formula + the
reference number so that the reader can look it up if required but generally
does not need to:

The incident radiation is absorbed and distributes in the sensor layer
by means of heat conduction (Equations [15] and [16]) resulting in a
time-dependent temperature field T(\xyz,t).

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

But IMO, the even bigger problem is, if you insert a new formula between
E1 and E2 but continue to use E15 for new references to the heat
equation (or whatever) which is now E16!!!

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

I daresay that all of this would be much easier if LyX had a _graphical_
equation browser, built in to the Outline tool. By default, equations would be
organized by section, subsection, etc., so that you could in most cases find
the equation that you want to reference by the most natural way--clicking on
the section that you recall it being in, seeing a rendering of the equations in
a scrollable list, then clicking once to insert the reference at the cursor
location. The rendered equation (in the list) would still be immediately
recognizable in most cases even if only a part of it were visible (without
expanding the Outline window a lot). Of course, the graphical equation browser
would also be available in the existing equation list in the Outline.

And somewhat separately, it would sometimes be nice to have multiple instances
of the Outline so that one would not have to switch between list types as often.

Jerry

I dare to say that the label/reference system is one of the main
advantages of LaTeX (and LyX) for scientific writing. It may be more
complicated to begin with but that effort pays as soon as you write more
than 10 equations in one paper, say.

Günter



### Re: formula numbering


On Aug 19, 2013, at 5:56 AM, Guenter Milde  wrote:

> On 2013-08-08, bieniasz wrote:
>> Richard Heck  lyx.org> writes:
>
>>> What happens, then, when you add a new equation somewhere in
>>> the middle of the document?
>
>> This is what LyX already does - it updates automatically the equation
>> numbers. My point is why one cannot use these numbers for referencing
>> the equations in the text, since they are already there, up-to-date.
>
> But how do you find out the up-to-date number of the equation in chapter
> 3 you want to reference in chapter 14?
>
> ...
>
>> LaTeX users are primarily
>> scientists who write scientific texts. In such text one ALWAYS
>> refers to equations by numbers, and not by any peculiar labels.
>
> Reference by numbers is used in the printout, but reference by label is used
> in all LaTeX source documents.
>
> In the printed text, I usually use a description of the formula + the
> reference number so that the reader can look it up if required but generally
> does not need to:
>
>  The incident radiation is absorbed and distributes in the sensor layer
>  by means of heat conduction (Equations [15] and [16]) resulting in a
>  time-dependent temperature field T(\xyz,t).
>
>>> Still, making up a label isn't that hard, and it can make it easier
>>> to remeber which equation you want to reference later. You can
>>> of course just use numbers if you wish.
>
>> Well, yes and no. If I use my own labels, like
>> E1, E2, E3 etc., then I am in trouble when I need to add something
>> between E1 and E2, let's say. The problem is that user-defined labels
>> are not automatically updated, whereas the real equation numbers are.
>> Hence, I have a mess in which labels are in no clear relation to
>> the numbers.
>
> But IMO, the even bigger problem is, if you insert a new formula between
> E1 and E2 but continue to use E15 for new references to the "heat
> equation" (or whatever) which is now E16!!!
>
>
>> So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
>> needs a reasonable revision. If there are any LyX programmers out there,

I daresay that all of this would be much easier if LyX had a _graphical_
equation browser, built in to the Outline tool. By default, equations would be
organized by section, subsection, etc., so that you could in most cases find
the equation that you want to reference by the most natural way--clicking on
the section that you recall it being in, seeing a rendering of the equations in
a scrollable list, then clicking once to insert the reference at the cursor
location. The rendered equation (in the list) would still be immediately
recognizable in most cases even if only a part of it were visible (without
expanding the Outline window a lot). Of course, the graphical equation browser
would also be available in the existing equation list in the Outline.

And somewhat separately, it would sometimes be nice to have multiple instances
of the Outline so that one would not have to switch between list types as often.

Jerry
>
> I dare to say that the label/reference system is one of the main
> advantages of LaTeX (and LyX) for scientific writing. It may be more
> complicated to begin with but that effort pays as soon as you write more
> than 10 equations in one paper, say.
>
> Günter
>



### Re: formula numbering

On 2013-08-08, bieniasz wrote:
Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

But how do you find out the up-to-date number of the equation in chapter
3 you want to reference in chapter 14?

...

LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Reference by numbers is used in the printout, but reference by label is used
in all LaTeX source documents.

In the printed text, I usually use a description of the formula + the
reference number so that the reader can look it up if required but generally
does not need to:

The incident radiation is absorbed and distributes in the sensor layer
by means of heat conduction (Equations [15] and [16]) resulting in a
time-dependent temperature field T(\xyz,t).

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

But IMO, the even bigger problem is, if you insert a new formula between
E1 and E2 but continue to use E15 for new references to the heat
equation (or whatever) which is now E16!!!

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

I dare to say that the label/reference system is one of the main
advantages of LaTeX (and LyX) for scientific writing. It may be more
complicated to begin with but that effort pays as soon as you write more
than 10 equations in one paper, say.

Günter



### Re: formula numbering

On 2013-08-08, bieniasz wrote:
Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

But how do you find out the up-to-date number of the equation in chapter
3 you want to reference in chapter 14?

...

LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Reference by numbers is used in the printout, but reference by label is used
in all LaTeX source documents.

In the printed text, I usually use a description of the formula + the
reference number so that the reader can look it up if required but generally
does not need to:

The incident radiation is absorbed and distributes in the sensor layer
by means of heat conduction (Equations [15] and [16]) resulting in a
time-dependent temperature field T(\xyz,t).

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

But IMO, the even bigger problem is, if you insert a new formula between
E1 and E2 but continue to use E15 for new references to the heat
equation (or whatever) which is now E16!!!

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

I dare to say that the label/reference system is one of the main
advantages of LaTeX (and LyX) for scientific writing. It may be more
complicated to begin with but that effort pays as soon as you write more
than 10 equations in one paper, say.

Günter



### Re: formula numbering

On 2013-08-08, bieniasz wrote:
> Richard Heck  lyx.org> writes:

>> What happens, then, when you add a new equation somewhere in
>> the middle of the document?

> This is what LyX already does - it updates automatically the equation
> numbers. My point is why one cannot use these numbers for referencing
> the equations in the text, since they are already there, up-to-date.

But how do you find out the up-to-date number of the equation in chapter
3 you want to reference in chapter 14?

...

> LaTeX users are primarily
> scientists who write scientific texts. In such text one ALWAYS
> refers to equations by numbers, and not by any peculiar labels.

Reference by numbers is used in the printout, but reference by label is used
in all LaTeX source documents.

In the printed text, I usually use a description of the formula + the
reference number so that the reader can look it up if required but generally
does not need to:

The incident radiation is absorbed and distributes in the sensor layer
by means of heat conduction (Equations [15] and [16]) resulting in a
time-dependent temperature field T(\xyz,t).

>> Still, making up a label isn't that hard, and it can make it easier
>> to remeber which equation you want to reference later. You can
>> of course just use numbers if you wish.

> Well, yes and no. If I use my own labels, like
> E1, E2, E3 etc., then I am in trouble when I need to add something
> between E1 and E2, let's say. The problem is that user-defined labels
> are not automatically updated, whereas the real equation numbers are.
> Hence, I have a mess in which labels are in no clear relation to
> the numbers.

But IMO, the even bigger problem is, if you insert a new formula between
E1 and E2 but continue to use E15 for new references to the "heat
equation" (or whatever) which is now E16!!!

> So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
> needs a reasonable revision. If there are any LyX programmers out there,

I dare to say that the label/reference system is one of the main
advantages of LaTeX (and LyX) for scientific writing. It may be more
complicated to begin with but that effort pays as soon as you write more
than 10 equations in one paper, say.

Günter



### Re: formula numbering

  El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck escribió:

On 08/08/2013 01:19 PM, curtis osterhoudt wrote:

I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like Poisson-Eqn---not having to coddle
to the structure of the paper. If I want to refer to the equation 20 pages
later, I don't have to go back and find the number and adapt the label or the
references, nor do I have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my brain
since I've used LyX for about a decade now) requirement/suggestion to put
dashes in place of spaces in one's labels.

Yes, LaTeX regards the space as separating tokens, and as things now are
labels get entered as raw LaTeX, not as something that gets processed by LyX.
So no spaces. That, however, would be easy to fix.

Richard

I have written my MSc thesis in LyX and the way references are handled helps me
a lot, but I got only one suggestion: when I set my own labels LyX also asigns
a number to the equation which is automatically changed but doesn´t correspond
to the real equation number that appears in the final text, so when I finally
got about 120 pages written I detect one wrong equation and I have to spend a
few time to detect which equation is in the LyX document because I didn´t find
the equation 2.4 instead it was equation 17. So I think this behaviour is wrong
and must be fixed.

Best Regards
Alex


### Re: formula numbering


On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck
mailto:rgh...@lyx.org escribió:

On 08/08/2013 01:19 PM, curtis osterhoudt wrote:

I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like Poisson-Eqn---not
having to coddle to the structure of the paper. If I want to
refer to the equation 20 pages later, I don't have to go back and
find the number and adapt the label or the references, nor do I
have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my
requirement/suggestion to put dashes in place of spaces in one's
labels.

Yes, LaTeX regards the space as separating tokens, and as things
now are labels get entered as raw LaTeX, not as something that
gets processed by LyX. So no spaces. That, however, would be easy
to fix.

Richard

I have written my MSc thesis in LyX and the way references are handled
helps me a lot, but I got only one suggestion: when I set my own
labels LyX also asigns a number to the equation which is automatically
changed but doesn´t correspond to the real equation number that
appears in the final text, so when I finally got about 120 pages
written I detect one wrong equation and I have to spend a few time to
detect which equation is in the LyX document because I didn´t find the
equation 2.4 instead it was equation 17. So I think this behaviour is
wrong and must be fixed.

Do you remember what document class, etc, you were using? It sounds like
it set number equations by section, and the layout file did not know

Richard



### Re: formula numbering


El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck escribió:

On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

I have written my MSc thesis in LyX and the way references are handled
helps me a lot, but I got only one suggestion: when I set my own labels LyX
also asigns a number to the equation which is automatically changed but doesn´t
correspond to the real equation number that appears in the final text, so
when I finally got about 120 pages written I detect one wrong equation and I
have to spend a few time to detect which equation is in the LyX document
because I didn´t find the equation 2.4 instead it was equation 17. So I think
this behaviour is wrong and must be fixed.

Do you remember what document class, etc, you were using? It sounds like it
set number equations by section, and the layout file did not know about that.

Richard

The class I used was book (KOMA-Script) with the following preamble

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

\newlength{\abc}

\settowidth{\abc}{\space}

\AtBeginDocument{%

\renewcommand{\equationautorefname}{\hspace{-\abc}}

\renewcommand{\sectionautorefname}{sec.\negthinspace}

\renewcommand{\subsectionautorefname}{sec.\negthinspace}

\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}

\renewcommand{\figureautorefname}{Fig.\negthinspace}

\renewcommand{\tableautorefname}{Tab.\negthinspace}

}

}

% in case somebody want to have the label equation

%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

\def\es@tablename{Ttabla}

\def\es@appendixname{Aanexo}

% that links to image floats jumps to the beginning

% of the float and not to its caption

\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }

% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}

% enable calculations

\usepackage{calc}

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}



### Re: formula numbering


On 08/09/2013 11:39 AM, Alex Vergara Gil wrote:

El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck
mailto:rgh...@lyx.org escribió:
On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

I have written my MSc thesis in LyX and the way references are
handled helps me a lot, but I got only one suggestion: when I set
my own labels LyX also asigns a number to the equation which is
automatically changed but doesn´t correspond to the real
equation number that appears in the final text, so when I finally
got about 120 pages written I detect one wrong equation and I
have to spend a few time to detect which equation is in the LyX
document because I didn´t find the equation 2.4 instead it was
equation 17. So I think this behaviour is wrong and must be fixed.

Do you remember what document class, etc, you were using? It
sounds like it set number equations by section, and the layout
file did not know about that.

Richard

The class I used was book (KOMA-Script) with the following preamble

Fixed for the next release. If you want to fix it for yourself, add:

Format 31

# Equations are numbered by chapter
Counter equation
Within chapter
LabelString \thechapter.\arabic{equation}
End

to Document Settings Local Layout in that document.

Richard



### Re: formula numbering

  El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck escribió:

On 08/08/2013 01:19 PM, curtis osterhoudt wrote:

I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like Poisson-Eqn---not having to coddle
to the structure of the paper. If I want to refer to the equation 20 pages
later, I don't have to go back and find the number and adapt the label or the
references, nor do I have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my brain
since I've used LyX for about a decade now) requirement/suggestion to put
dashes in place of spaces in one's labels.

Yes, LaTeX regards the space as separating tokens, and as things now are
labels get entered as raw LaTeX, not as something that gets processed by LyX.
So no spaces. That, however, would be easy to fix.

Richard

I have written my MSc thesis in LyX and the way references are handled helps me
a lot, but I got only one suggestion: when I set my own labels LyX also asigns
a number to the equation which is automatically changed but doesn´t correspond
to the real equation number that appears in the final text, so when I finally
got about 120 pages written I detect one wrong equation and I have to spend a
few time to detect which equation is in the LyX document because I didn´t find
the equation 2.4 instead it was equation 17. So I think this behaviour is wrong
and must be fixed.

Best Regards
Alex


### Re: formula numbering


On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck
mailto:rgh...@lyx.org escribió:

On 08/08/2013 01:19 PM, curtis osterhoudt wrote:

I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like Poisson-Eqn---not
having to coddle to the structure of the paper. If I want to
refer to the equation 20 pages later, I don't have to go back and
find the number and adapt the label or the references, nor do I
have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my
requirement/suggestion to put dashes in place of spaces in one's
labels.

Yes, LaTeX regards the space as separating tokens, and as things
now are labels get entered as raw LaTeX, not as something that
gets processed by LyX. So no spaces. That, however, would be easy
to fix.

Richard

I have written my MSc thesis in LyX and the way references are handled
helps me a lot, but I got only one suggestion: when I set my own
labels LyX also asigns a number to the equation which is automatically
changed but doesn´t correspond to the real equation number that
appears in the final text, so when I finally got about 120 pages
written I detect one wrong equation and I have to spend a few time to
detect which equation is in the LyX document because I didn´t find the
equation 2.4 instead it was equation 17. So I think this behaviour is
wrong and must be fixed.

Do you remember what document class, etc, you were using? It sounds like
it set number equations by section, and the layout file did not know

Richard



### Re: formula numbering


El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck escribió:

On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

I have written my MSc thesis in LyX and the way references are handled
helps me a lot, but I got only one suggestion: when I set my own labels LyX
also asigns a number to the equation which is automatically changed but doesn´t
correspond to the real equation number that appears in the final text, so
when I finally got about 120 pages written I detect one wrong equation and I
have to spend a few time to detect which equation is in the LyX document
because I didn´t find the equation 2.4 instead it was equation 17. So I think
this behaviour is wrong and must be fixed.

Do you remember what document class, etc, you were using? It sounds like it
set number equations by section, and the layout file did not know about that.

Richard

The class I used was book (KOMA-Script) with the following preamble

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

\newlength{\abc}

\settowidth{\abc}{\space}

\AtBeginDocument{%

\renewcommand{\equationautorefname}{\hspace{-\abc}}

\renewcommand{\sectionautorefname}{sec.\negthinspace}

\renewcommand{\subsectionautorefname}{sec.\negthinspace}

\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}

\renewcommand{\figureautorefname}{Fig.\negthinspace}

\renewcommand{\tableautorefname}{Tab.\negthinspace}

}

}

% in case somebody want to have the label equation

%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

\def\es@tablename{Ttabla}

\def\es@appendixname{Aanexo}

% that links to image floats jumps to the beginning

% of the float and not to its caption

\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }

% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}

% enable calculations

\usepackage{calc}

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}



### Re: formula numbering


On 08/09/2013 11:39 AM, Alex Vergara Gil wrote:

El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck
mailto:rgh...@lyx.org escribió:
On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

I have written my MSc thesis in LyX and the way references are
handled helps me a lot, but I got only one suggestion: when I set
my own labels LyX also asigns a number to the equation which is
automatically changed but doesn´t correspond to the real
equation number that appears in the final text, so when I finally
got about 120 pages written I detect one wrong equation and I
have to spend a few time to detect which equation is in the LyX
document because I didn´t find the equation 2.4 instead it was
equation 17. So I think this behaviour is wrong and must be fixed.

Do you remember what document class, etc, you were using? It
sounds like it set number equations by section, and the layout
file did not know about that.

Richard

The class I used was book (KOMA-Script) with the following preamble

Fixed for the next release. If you want to fix it for yourself, add:

Format 31

# Equations are numbered by chapter
Counter equation
Within chapter
LabelString \thechapter.\arabic{equation}
End

to Document Settings Local Layout in that document.

Richard



### Re: formula numbering

  El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck escribió:

On 08/08/2013 01:19 PM, curtis osterhoudt wrote:

I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like "Poisson-Eqn"---not having to coddle
to the structure of the paper. If I want to refer to the equation 20 pages
later, I don't have to go back and find the number and adapt the label or the
references, nor do I have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my brain
since I've used LyX for about a decade now) requirement/suggestion to put
dashes in place of spaces in one's labels.

Yes, LaTeX regards the space as separating tokens, and as things now are
labels get entered as raw LaTeX, not as something that gets processed by LyX.
So no spaces. That, however, would be easy to fix.

Richard

I have written my MSc thesis in LyX and the way references are handled helps me
a lot, but I got only one suggestion: when I set my own labels LyX also asigns
a number to the equation which is automatically changed but doesn´t correspond
to the "real" equation number that appears in the final text, so when I finally
got about 120 pages written I detect one wrong equation and I have to spend a
few time to detect which equation is in the LyX document because I didn´t find
the equation 2.4 instead it was equation 17. So I think this behaviour is wrong
and must be fixed.

Best Regards
Alex


### Re: formula numbering


On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck
escribió:

On 08/08/2013 01:19 PM, curtis osterhoudt wrote:

I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like "Poisson-Eqn"---not
having to coddle to the structure of the paper. If I want to
refer to the equation 20 pages later, I don't have to go back and
find the number and adapt the label or the references, nor do I
have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my
requirement/suggestion to put dashes in place of spaces in one's
labels.

Yes, LaTeX regards the space as separating tokens, and as things
now are labels get entered as raw LaTeX, not as something that
gets processed by LyX. So no spaces. That, however, would be easy
to fix.

Richard

I have written my MSc thesis in LyX and the way references are handled
helps me a lot, but I got only one suggestion: when I set my own
labels LyX also asigns a number to the equation which is automatically
changed but doesn´t correspond to the "real" equation number that
appears in the final text, so when I finally got about 120 pages
written I detect one wrong equation and I have to spend a few time to
detect which equation is in the LyX document because I didn´t find the
equation 2.4 instead it was equation 17. So I think this behaviour is
wrong and must be fixed.

Do you remember what document class, etc, you were using? It sounds like
it set "number equations by section", and the layout file did not know

Richard



### Re: formula numbering


El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck escribió:

On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

I have written my MSc thesis in LyX and the way references are handled
helps me a lot, but I got only one suggestion: when I set my own labels LyX
also asigns a number to the equation which is automatically changed but doesn´t
correspond to the "real" equation number that appears in the final text, so
when I finally got about 120 pages written I detect one wrong equation and I
have to spend a few time to detect which equation is in the LyX document
because I didn´t find the equation 2.4 instead it was equation 17. So I think
this behaviour is wrong and must be fixed.

Do you remember what document class, etc, you were using? It sounds like it
set "number equations by section", and the layout file did not know about that.

Richard

The class I used was book (KOMA-Script) with the following preamble

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

\newlength{\abc}

\settowidth{\abc}{\space}

\AtBeginDocument{%

\renewcommand{\equationautorefname}{\hspace{-\abc}}

\renewcommand{\sectionautorefname}{sec.\negthinspace}

\renewcommand{\subsectionautorefname}{sec.\negthinspace}

\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}

\renewcommand{\figureautorefname}{Fig.\negthinspace}

\renewcommand{\tableautorefname}{Tab.\negthinspace}

}

}

% in case somebody want to have the label "equation"

%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

\def\es@tablename{Ttabla}

\def\es@appendixname{Aanexo}

% that links to image floats jumps to the beginning

% of the float and not to its caption

\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }

% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}

% enable calculations

\usepackage{calc}

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}



### Re: formula numbering


On 08/09/2013 11:39 AM, Alex Vergara Gil wrote:

El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck
escribió:
On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

I have written my MSc thesis in LyX and the way references are
handled helps me a lot, but I got only one suggestion: when I set
my own labels LyX also asigns a number to the equation which is
automatically changed but doesn´t correspond to the "real"
equation number that appears in the final text, so when I finally
got about 120 pages written I detect one wrong equation and I
have to spend a few time to detect which equation is in the LyX
document because I didn´t find the equation 2.4 instead it was
equation 17. So I think this behaviour is wrong and must be fixed.

Do you remember what document class, etc, you were using? It
sounds like it set "number equations by section", and the layout
file did not know about that.

Richard

The class I used was book (KOMA-Script) with the following preamble

Fixed for the next release. If you want to fix it for yourself, add:

Format 31

# Equations are numbered by chapter
Counter equation
Within chapter
LabelString "\thechapter.\arabic{equation}"
End

to Document> Settings> Local Layout in that document.

Richard



### formula numbering



Hi,

I am writing a book using LyX, and I have a question regarding
the formula numbering. An exclusive way to add and reference the formula
numbers seems to be via equation labels. This works, but appears
rather irritating when one has to invent unique names for hundreds of
equations. Is there no simpler way? I do not quite understand why these
labels must be used, in the situation when LyX seems to keep track
of every new equation all the time, and updates the equation numbers
automatically. It would be much easier just to refer to the various
equations by these formula numbers, without having
to use additional labels. Are there no plans to introduce such an
improvement into LyX?

Leslaw



### Re: formula numbering


On 08/08/2013 09:34 AM, bieniasz wrote:

Hi,

I am writing a book using LyX, and I have a question regarding
the formula numbering. An exclusive way to add and reference the formula
numbers seems to be via equation labels. This works, but appears
rather irritating when one has to invent unique names for hundreds of
equations. Is there no simpler way? I do not quite understand why these
labels must be used, in the situation when LyX seems to keep track
of every new equation all the time, and updates the equation numbers
automatically. It would be much easier just to refer to the various
equations by these formula numbers, without having

What happens, then, when you add a new equation somewhere in
the middle of the document?

Are there no plans to introduce such an improvement into LyX?

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Richard



### Re: formula numbering

Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

Leslaw



### Re: formula numbering

I *like* the way LyX handles it. I give my equations labels which _make_sense_
to me as a physicist---like Poisson-Eqn---not having to coddle to the
structure of the paper. If I want to refer to the equation 20 pages later, I
don't have to go back and find the number and adapt the label or the
references, nor do I have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my brain since
I've used LyX for about a decade now) requirement/suggestion to put dashes in
place of spaces in one's labels.

From: bieniasz nbbie...@cyf-kr.edu.pl
To: lyx-users@lists.lyx.org
Sent: Thursday, August 8, 2013 8:06 AM
Subject: Re: formula numbering

Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

Leslaw


### Re: formula numbering


On 08/08/2013 01:19 PM, curtis osterhoudt wrote:
I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like Poisson-Eqn---not having to
coddle to the structure of the paper. If I want to refer to the
equation 20 pages later, I don't have to go back and find the number
and adapt the label or the references, nor do I have to worry about
renumbering if anything changes. The cross-reference system built into
Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my
requirement/suggestion to put dashes in place of spaces in one's labels.

Yes, LaTeX regards the space as separating tokens, and as things now are
labels get entered as raw LaTeX, not as something that gets processed by
LyX. So no spaces. That, however, would be easy to fix.

Richard



### Re: formula numbering


On 08/08/2013 12:06 PM, bieniasz wrote:

Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

What you really want is the auto-labelling that I described, it seems to
me: Equations act as if they have labels associated with them, but the
user does not actually see the label.

Thinking about it for a bit, I think this might not be that hard to do
just for equations. When we've thought about it in the past, we've
included sections, chapters, and so forth, and then it is harder.

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Of course. But when actually writing LaTeX (as opposed to LyX), one uses
labels, since one wouldn't want to have to change the reference just
because an equation gets moved.

As Curtis said, too, giving equations, sections, etc, meaningful labels
makes it easier to figure out which one to reference later. So that is
what most of us do. Indeed, it isn't really true that one always refers
to equations by number. In my own papers, particular important equations
(or formulae) often have labels and not just numbers. E.g., (Sat).

So, in conclusion, I daresay the LaTeX/LyX system for equation
numbering needs a reasonable revision. If there are any LyX

As always with open source, it's a question of time and bodies. Those of
us who work on this just haven't found the need pressing.

Richard



### formula numbering



Hi,

I am writing a book using LyX, and I have a question regarding
the formula numbering. An exclusive way to add and reference the formula
numbers seems to be via equation labels. This works, but appears
rather irritating when one has to invent unique names for hundreds of
equations. Is there no simpler way? I do not quite understand why these
labels must be used, in the situation when LyX seems to keep track
of every new equation all the time, and updates the equation numbers
automatically. It would be much easier just to refer to the various
equations by these formula numbers, without having
to use additional labels. Are there no plans to introduce such an
improvement into LyX?

Leslaw



### Re: formula numbering


On 08/08/2013 09:34 AM, bieniasz wrote:

Hi,

I am writing a book using LyX, and I have a question regarding
the formula numbering. An exclusive way to add and reference the formula
numbers seems to be via equation labels. This works, but appears
rather irritating when one has to invent unique names for hundreds of
equations. Is there no simpler way? I do not quite understand why these
labels must be used, in the situation when LyX seems to keep track
of every new equation all the time, and updates the equation numbers
automatically. It would be much easier just to refer to the various
equations by these formula numbers, without having

What happens, then, when you add a new equation somewhere in
the middle of the document?

Are there no plans to introduce such an improvement into LyX?

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Richard



### Re: formula numbering

Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

Leslaw



### Re: formula numbering

I *like* the way LyX handles it. I give my equations labels which _make_sense_
to me as a physicist---like Poisson-Eqn---not having to coddle to the
structure of the paper. If I want to refer to the equation 20 pages later, I
don't have to go back and find the number and adapt the label or the
references, nor do I have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my brain since
I've used LyX for about a decade now) requirement/suggestion to put dashes in
place of spaces in one's labels.

From: bieniasz nbbie...@cyf-kr.edu.pl
To: lyx-users@lists.lyx.org
Sent: Thursday, August 8, 2013 8:06 AM
Subject: Re: formula numbering

Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

Leslaw


### Re: formula numbering


On 08/08/2013 01:19 PM, curtis osterhoudt wrote:
I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like Poisson-Eqn---not having to
coddle to the structure of the paper. If I want to refer to the
equation 20 pages later, I don't have to go back and find the number
and adapt the label or the references, nor do I have to worry about
renumbering if anything changes. The cross-reference system built into
Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my
requirement/suggestion to put dashes in place of spaces in one's labels.

Yes, LaTeX regards the space as separating tokens, and as things now are
labels get entered as raw LaTeX, not as something that gets processed by
LyX. So no spaces. That, however, would be easy to fix.

Richard



### Re: formula numbering


On 08/08/2013 12:06 PM, bieniasz wrote:

Richard Heck rgheck at lyx.org writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

What you really want is the auto-labelling that I described, it seems to
me: Equations act as if they have labels associated with them, but the
user does not actually see the label.

Thinking about it for a bit, I think this might not be that hard to do
just for equations. When we've thought about it in the past, we've
included sections, chapters, and so forth, and then it is harder.

There has often been talk about automatic labelling, so that the
equation would have its own magic label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Of course. But when actually writing LaTeX (as opposed to LyX), one uses
labels, since one wouldn't want to have to change the reference just
because an equation gets moved.

As Curtis said, too, giving equations, sections, etc, meaningful labels
makes it easier to figure out which one to reference later. So that is
what most of us do. Indeed, it isn't really true that one always refers
to equations by number. In my own papers, particular important equations
(or formulae) often have labels and not just numbers. E.g., (Sat).

So, in conclusion, I daresay the LaTeX/LyX system for equation
numbering needs a reasonable revision. If there are any LyX

As always with open source, it's a question of time and bodies. Those of
us who work on this just haven't found the need pressing.

Richard



### formula numbering



Hi,

I am writing a book using LyX, and I have a question regarding
the formula numbering. An exclusive way to add and reference the formula
numbers seems to be via "equation labels". This works, but appears
rather irritating when one has to invent unique names for hundreds of
equations. Is there no simpler way? I do not quite understand why these
labels must be used, in the situation when LyX seems to keep track
of every new equation all the time, and updates the equation numbers
automatically. It would be much easier just to refer to the various
equations by these formula numbers, without having
to use additional labels. Are there no plans to introduce such an
improvement into LyX?

Leslaw



### Re: formula numbering


On 08/08/2013 09:34 AM, bieniasz wrote:

Hi,

I am writing a book using LyX, and I have a question regarding
the formula numbering. An exclusive way to add and reference the formula
numbers seems to be via "equation labels". This works, but appears
rather irritating when one has to invent unique names for hundreds of
equations. Is there no simpler way? I do not quite understand why these
labels must be used, in the situation when LyX seems to keep track
of every new equation all the time, and updates the equation numbers
automatically. It would be much easier just to refer to the various
equations by these formula numbers, without having

What happens, then, when you add a new equation somewhere in
the middle of the document?

Are there no plans to introduce such an improvement into LyX?

There has often been talk about automatic labelling, so that the
equation would have its own "magic" label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

Still, making up a label isn't that hard, and it can make it easier
to remeber which equation you want to reference later. You can
of course just use numbers if you wish.

Richard



### Re: formula numbering

Richard Heck  lyx.org> writes:

> What happens, then, when you add a new equation somewhere in
> the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

> There has often been talk about automatic labelling, so that the
> equation would have its own "magic" label, so to speak, and you
> could reference it without needing to make up a label. But no one
> has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

> Still, making up a label isn't that hard, and it can make it easier
> to remeber which equation you want to reference later. You can
> of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

Leslaw



### Re: formula numbering

I *like* the way LyX handles it. I give my equations labels which _make_sense_
to me as a physicist---like "Poisson-Eqn"---not having to coddle to the
structure of the paper. If I want to refer to the equation 20 pages later, I
don't have to go back and find the number and adapt the label or the
references, nor do I have to worry about renumbering if anything changes. The
cross-reference system built into Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my brain since
I've used LyX for about a decade now) requirement/suggestion to put dashes in
place of spaces in one's labels.

From: bieniasz <nbbie...@cyf-kr.edu.pl>
To: lyx-users@lists.lyx.org
Sent: Thursday, August 8, 2013 8:06 AM
Subject: Re: formula numbering

Richard Heck  lyx.org> writes:

> What happens, then, when you add a new equation somewhere in
> the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

> There has often been talk about automatic labelling, so that the
> equation would have its own "magic" label, so to speak, and you
> could reference it without needing to make up a label. But no one
> has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

> Still, making up a label isn't that hard, and it can make it easier
> to remeber which equation you want to reference later. You can
> of course just use numbers if you wish.

Well, yes and no. If I use my own labels, like
E1, E2, E3 etc., then I am in trouble when I need to add something
between E1 and E2, let's say. The problem is that user-defined labels
are not automatically updated, whereas the real equation numbers are.
Hence, I have a mess in which labels are in no clear relation to
the numbers.

So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
needs a reasonable revision. If there are any LyX programmers out there,

Leslaw


### Re: formula numbering


On 08/08/2013 01:19 PM, curtis osterhoudt wrote:
I *like* the way LyX handles it. I give my equations labels which
_make_sense_ to me as a physicist---like "Poisson-Eqn"---not having to
coddle to the structure of the paper. If I want to refer to the
equation 20 pages later, I don't have to go back and find the number
and adapt the label or the references, nor do I have to worry about
renumbering if anything changes. The cross-reference system built into
Lyx/LaTeX takes care of that.

My only objection is the (perhaps apocryphal, but lodged in my
requirement/suggestion to put dashes in place of spaces in one's labels.

Yes, LaTeX regards the space as separating tokens, and as things now are
labels get entered as raw LaTeX, not as something that gets processed by
LyX. So no spaces. That, however, would be easy to fix.

Richard



### Re: formula numbering


On 08/08/2013 12:06 PM, bieniasz wrote:

Richard Heck  lyx.org> writes:

What happens, then, when you add a new equation somewhere in
the middle of the document?

This is what LyX already does - it updates automatically the equation
numbers. My point is why one cannot use these numbers for referencing
the equations in the text, since they are already there, up-to-date.

What you really want is the auto-labelling that I described, it seems to
me: Equations act as if they have labels associated with them, but the
user does not actually see the label.

Thinking about it for a bit, I think this might not be that hard to do
just for equations. When we've thought about it in the past, we've
included sections, chapters, and so forth, and then it is harder.

There has often been talk about automatic labelling, so that the
equation would have its own "magic" label, so to speak, and you
could reference it without needing to make up a label. But no one
has found the need pressing enough to do it.

This is difficult to understand for me. LaTeX users are primarily
scientists who write scientific texts. In such text one ALWAYS
refers to equations by numbers, and not by any peculiar labels.

Of course. But when actually writing LaTeX (as opposed to LyX), one uses
labels, since one wouldn't want to have to change the reference just
because an equation gets moved.

As Curtis said, too, giving equations, sections, etc, meaningful labels
makes it easier to figure out which one to reference later. So that is
what most of us do. Indeed, it isn't really true that one always refers
to equations by number. In my own papers, particular important equations
(or formulae) often have labels and not just numbers. E.g., (Sat).

So, in conclusion, I daresay the LaTeX/LyX system for equation
numbering needs a reasonable revision. If there are any LyX

As always with open source, it's a question of time and bodies. Those of
us who work on this just haven't found the need pressing.

Richard



### Re: Display formula numbering IN Lyx document


David Hewitt wrote:

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.
You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

I have a related question, but it's not critical. In my dissertation LyX
file I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Any ideas?

It might be related that sometimes footnote references (label footnote, then
cross-reference it) also show up as '??' but output fine.

All of this is in Koma-script book class.

Dave,

I can confirm that the on-screen numbering of the third equation (which
should be 1.3) is initially 0.1, subsequently 0.3.  I'm not sure if
that's related to the other numbering issue or a bug.

The general issue of numbering on screen not matching numbering in the
output is a consequence of how IP is implemented.  When IP is on, LyX
will write a temporary file named #lyxpreview.tex in the temp directory
(where # is a counter), hit it with LaTeX, and copy bits of the DVI into
the GUI.  When you first load a document, all the math insets go into
one preview file.  If you then add or edit math insets, I think they
each get their own file.  At any rate, LyX matches the document class of
the preview file to that of your source document, and copies all (I
think) of the headers, but it does not include any text other than the
math insets.  In particular, it doesn't include \chapter, \section etc.
Ergo, when LaTeX does the IP run, it gets the numbering wrong.

I've submitted a bug report on this (#4596).  I did a little test in
which I manually inserted section commands in the IP .tex file.  The DVI
looked right (equations correctly numbered, no extraneous text), but I
don't think there's a way to get LyX to inhale my DVI so I can't be sure
it works.  The other question is how hard it would be to include all the
section stuff in the IP file.  (I wouldn't think very hard, assuming the
user doesn't declare his own non-standard sections in the preamble.)

As to the removal of equation numbers, M-m n or Edit - Math - Toggle
numbering will do the trick.  Note that if you insert a label and then
toggle off numbering, the label gets erased.

/Paul



### Re: Display formula numbering IN Lyx document


David Hewitt wrote:

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.
You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

I have a related question, but it's not critical. In my dissertation LyX
file I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Any ideas?

It might be related that sometimes footnote references (label footnote, then
cross-reference it) also show up as '??' but output fine.

All of this is in Koma-script book class.

Dave,

I can confirm that the on-screen numbering of the third equation (which
should be 1.3) is initially 0.1, subsequently 0.3.  I'm not sure if
that's related to the other numbering issue or a bug.

The general issue of numbering on screen not matching numbering in the
output is a consequence of how IP is implemented.  When IP is on, LyX
will write a temporary file named #lyxpreview.tex in the temp directory
(where # is a counter), hit it with LaTeX, and copy bits of the DVI into
the GUI.  When you first load a document, all the math insets go into
one preview file.  If you then add or edit math insets, I think they
each get their own file.  At any rate, LyX matches the document class of
the preview file to that of your source document, and copies all (I
think) of the headers, but it does not include any text other than the
math insets.  In particular, it doesn't include \chapter, \section etc.
Ergo, when LaTeX does the IP run, it gets the numbering wrong.

I've submitted a bug report on this (#4596).  I did a little test in
which I manually inserted section commands in the IP .tex file.  The DVI
looked right (equations correctly numbered, no extraneous text), but I
don't think there's a way to get LyX to inhale my DVI so I can't be sure
it works.  The other question is how hard it would be to include all the
section stuff in the IP file.  (I wouldn't think very hard, assuming the
user doesn't declare his own non-standard sections in the preamble.)

As to the removal of equation numbers, M-m n or Edit - Math - Toggle
numbering will do the trick.  Note that if you insert a label and then
toggle off numbering, the label gets erased.

/Paul



### Re: Display formula numbering IN Lyx document


David Hewitt wrote:

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.
You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

I have a related question, but it's not critical. In my dissertation LyX
file I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Any ideas?

It might be related that sometimes footnote references (label footnote, then
cross-reference it) also show up as '??' but output fine.

All of this is in Koma-script book class.

Dave,

I can confirm that the on-screen numbering of the third equation (which
should be 1.3) is initially 0.1, subsequently 0.3.  I'm not sure if
that's related to the other numbering issue or a bug.

The general issue of numbering on screen not matching numbering in the
output is a consequence of how IP is implemented.  When IP is on, LyX
will write a temporary file named #lyxpreview.tex in the temp directory
(where # is a counter), hit it with LaTeX, and copy bits of the DVI into
the GUI.  When you first load a document, all the math insets go into
one preview file.  If you then add or edit math insets, I think they
each get their own file.  At any rate, LyX matches the document class of
the preview file to that of your source document, and copies all (I
think) of the headers, but it does not include any text other than the
math insets.  In particular, it doesn't include \chapter, \section etc.
Ergo, when LaTeX does the IP run, it gets the numbering wrong.

I've submitted a bug report on this (#4596).  I did a little test in
which I manually inserted section commands in the IP .tex file.  The DVI
looked right (equations correctly numbered, no extraneous text), but I
don't think there's a way to get LyX to inhale my DVI so I can't be sure
it works.  The other question is how hard it would be to include all the
section stuff in the IP file.  (I wouldn't think very hard, assuming the
user doesn't declare his own non-standard sections in the preamble.)

As to the removal of equation numbers, M-m n or Edit -> Math -> Toggle
numbering will do the trick.  Note that if you insert a label and then
toggle off numbering, the label gets erased.

/Paul



### Display formula numbering IN Lyx document

Hello everbody,

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

Thanks a lot in advance and excuse my ignorance

P.S.: I am using Lyx 1.5.2

Lesen Sie Ihre E-Mails auf dem Handy.
www.yahoo.de/go


### Re: Display formula numbering IN Lyx document


Kane Kano wrote:
Hello everbody,

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

Abdel.



### Re: Display formula numbering IN Lyx document



I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

I have a related question, but it's not critical. In my dissertation LyX
file I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Any ideas?

It might be related that sometimes footnote references (label footnote, then
cross-reference it) also show up as '??' but output fine.

All of this is in Koma-script book class.

-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
--
View this message in context:
http://www.nabble.com/Display-formula-numbering-IN-Lyx-document-tp15630326p15641413.html
Sent from the LyX - Users mailing list archive at Nabble.com.



### Re: Display formula numbering IN Lyx document

On Fri, Feb 22, 2008, David Hewitt wrote:

I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Can you be more specific about what you mean by with numbers and labels?
How did you get this?  I generally have only labels, or a # sign if I ask
for an equation number but don't have a label.  I don't see places where I
have both a number and a label.

The fact that the PDF file is fine is encouraging.  Maybe you could post a
short lyx file that illustrates the problem with view inside of LyX.

...dave case



### Re: Display formula numbering IN Lyx document

 I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Can you be more specific about what you mean by with numbers and labels?
How did you get this? I generally have only labels, or a # sign if I ask
for an equation number but don't have a label. I don't see places where I
have both a number and a label.

Right, I should have been more complete. The numbers (followed by the
label) only display with Instant Preview turned on once I click out of
the equation. In fact, the whole mess seems related to Instant Preview
errors. I see that Dominik is having issues with it as well. I am
using LyX 1.5.3 and MikTeX 2.6. A sample file is attached that
describes (and hopefully shows in LyX view for others) the problems I
found.

--
Dave Hewitt
Fisheries Science
VIMS, College of William and Mary
Gloucester Point, VA

test_eqnnumbers.lyx
Description: application/lyx



### Display formula numbering IN Lyx document

Hello everbody,

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

Thanks a lot in advance and excuse my ignorance

P.S.: I am using Lyx 1.5.2

Lesen Sie Ihre E-Mails auf dem Handy.
www.yahoo.de/go


### Re: Display formula numbering IN Lyx document


Kane Kano wrote:
Hello everbody,

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

Abdel.



### Re: Display formula numbering IN Lyx document



I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

I have a related question, but it's not critical. In my dissertation LyX
file I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Any ideas?

It might be related that sometimes footnote references (label footnote, then
cross-reference it) also show up as '??' but output fine.

All of this is in Koma-script book class.

-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
--
View this message in context:
http://www.nabble.com/Display-formula-numbering-IN-Lyx-document-tp15630326p15641413.html
Sent from the LyX - Users mailing list archive at Nabble.com.



### Re: Display formula numbering IN Lyx document

On Fri, Feb 22, 2008, David Hewitt wrote:

I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Can you be more specific about what you mean by with numbers and labels?
How did you get this?  I generally have only labels, or a # sign if I ask
for an equation number but don't have a label.  I don't see places where I
have both a number and a label.

The fact that the PDF file is fine is encouraging.  Maybe you could post a
short lyx file that illustrates the problem with view inside of LyX.

...dave case



### Re: Display formula numbering IN Lyx document

 I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Can you be more specific about what you mean by with numbers and labels?
How did you get this? I generally have only labels, or a # sign if I ask
for an equation number but don't have a label. I don't see places where I
have both a number and a label.

Right, I should have been more complete. The numbers (followed by the
label) only display with Instant Preview turned on once I click out of
the equation. In fact, the whole mess seems related to Instant Preview
errors. I see that Dominik is having issues with it as well. I am
using LyX 1.5.3 and MikTeX 2.6. A sample file is attached that
describes (and hopefully shows in LyX view for others) the problems I
found.

--
Dave Hewitt
Fisheries Science
VIMS, College of William and Mary
Gloucester Point, VA

test_eqnnumbers.lyx
Description: application/lyx



### Display formula numbering IN Lyx document

Hello everbody,

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

Thanks a lot in advance and excuse my ignorance

P.S.: I am using Lyx 1.5.2

Lesen Sie Ihre E-Mails auf dem Handy.
www.yahoo.de/go


### Re: Display formula numbering IN Lyx document


Kane Kano wrote:
Hello everbody,

I am working on physics thesis  and I would
like to know how I could display the number of formerly used equations
so that I do not always have to view the pdf-file if I want to refer to
a certain equation.

You should use labels for that instead of numbering. Then you can access
to the labeled equation list via the cross reference dialog.

Abdel.



### Re: Display formula numbering IN Lyx document



>> I am working on physics thesis  and I would
>> like to know how I could display the number of formerly used equations
>> so that I do not always have to view the pdf-file if I want to refer to
>> a certain equation.
>
> You should use labels for that instead of numbering. Then you can access
> to the labeled equation list via the cross reference dialog.
>

I have a related question, but it's not critical. In my dissertation LyX
file I have a bunch of display style equations with numbers and labels.
However, the numbers displayed by LyX are almost never right. Sometimes it
will open the file and each equation will be number '1', sometimes they'll
number by chapter, sometimes a few have '??' instead of numbers. I've gotten
used to it, and using labels means it doesn't much matter, but it's odd. The
PDF output is fine.

Any ideas?

It might be related that sometimes footnote references (label footnote, then
cross-reference it) also show up as '??' but output fine.

All of this is in Koma-script book class.

-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
--
View this message in context:
http://www.nabble.com/Display-formula-numbering-IN-Lyx-document-tp15630326p15641413.html
Sent from the LyX - Users mailing list archive at Nabble.com.



### Re: Display formula numbering IN Lyx document

On Fri, Feb 22, 2008, David Hewitt wrote:
>
>
> I have a bunch of display style equations with numbers and labels.
> However, the numbers displayed by LyX are almost never right. Sometimes it
> will open the file and each equation will be number '1', sometimes they'll
> number by chapter, sometimes a few have '??' instead of numbers. I've gotten
> used to it, and using labels means it doesn't much matter, but it's odd. The
> PDF output is fine.

Can you be more specific about what you mean by "with numbers and labels"?
How did you get this?  I generally have only labels, or a "#" sign if I ask
for an equation number but don't have a label.  I don't see places where I
have both a number and a label.

The fact that the PDF file is fine is encouraging.  Maybe you could post a
short lyx file that illustrates the problem with view inside of LyX.

...dave case



### Re: Display formula numbering IN Lyx document

>> I have a bunch of display style equations with numbers and labels.
>> However, the numbers displayed by LyX are almost never right. Sometimes it
>> will open the file and each equation will be number '1', sometimes they'll
>> number by chapter, sometimes a few have '??' instead of numbers. I've gotten
>> used to it, and using labels means it doesn't much matter, but it's odd. The
>> PDF output is fine.

> Can you be more specific about what you mean by "with numbers and labels"?
> How did you get this? I generally have only labels, or a "#" sign if I ask
> for an equation number but don't have a label. I don't see places where I
> have both a number and a label.

Right, I should have been more complete. The numbers (followed by the
label) only display with Instant Preview turned on once I click out of
the equation. In fact, the whole mess seems related to Instant Preview
errors. I see that Dominik is having issues with it as well. I am
using LyX 1.5.3 and MikTeX 2.6. A sample file is attached that
describes (and hopefully shows in LyX view for others) the problems I
found.

--
Dave Hewitt
Fisheries Science
VIMS, College of William and Mary
Gloucester Point, VA

test_eqnnumbers.lyx
Description: application/lyx



### Re: Q: multi-line formula numbering


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}}



### Re: Q: multi-line formula numbering


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}}



### Re: Q: multi-line formula numbering


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}}



### Q: multi-line formula numbering


Hello all,

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,

I have a 3-line equation such as

a=b+c
d=e+f
g=h+i

If I use lyx labeling system, the above equation is labeled like

a=b+c   (1)
d=e+f   (2)
g=h+i   (3)

But what I want is something like

a=b+c   (1.1)
d=e+f   (1.2)
g=h+i   (1.3)

Can any lyx guru help me on this? Any help would be appreciated.

Wonil



### Re: Q: multi-line formula numbering


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,

I have a 3-line equation such as

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

Herbert

--
http://www.educat.hu-berlin.de/~voss/lyx/



### Q: multi-line formula numbering


Hello all,

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,

I have a 3-line equation such as

a=b+c
d=e+f
g=h+i

If I use lyx labeling system, the above equation is labeled like

a=b+c   (1)
d=e+f   (2)
g=h+i   (3)

But what I want is something like

a=b+c   (1.1)
d=e+f   (1.2)
g=h+i   (1.3)

Can any lyx guru help me on this? Any help would be appreciated.

Wonil



### Re: Q: multi-line formula numbering


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,

I have a 3-line equation such as

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

Herbert

--
http://www.educat.hu-berlin.de/~voss/lyx/



### Q: multi-line formula numbering


Hello all,

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,

I have a 3-line equation such as

a=b+c
d=e+f
g=h+i

If I use lyx labeling system, the above equation is labeled like

a=b+c   (1)
d=e+f   (2)
g=h+i   (3)

But what I want is something like

a=b+c   (1.1)
d=e+f   (1.2)
g=h+i   (1.3)

Can any lyx guru help me on this? Any help would be appreciated.

Wonil



### Re: Q: multi-line formula numbering


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,
>
> I have a 3-line equation such as
>
> 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

Herbert

--
http://www.educat.hu-berlin.de/~voss/lyx/



### formula - numbering


Hi everybody!

Sorry, but there is another problem:

If I have a multiline-equation produced with C-Enter, I can remove the
formula-labels with M-m S-N. Why doesn´t this work with a normal math-equation
(M-m d, but no C-Enter)? How can I remove such a label?

Greets,
Alex.

---
Alexander Wollmann
Universität Freiburg,
Abteilung Elementar-Mathematik und Didaktik der Mathematik

E-Mail: Alexander Wollmann [EMAIL PROTECTED]
Date: 21-Jun-99
Time: 14:09:51

This message was sent by XFMail
---



### Re: formula - numbering


"Alexander" == Alexander Wollmann [EMAIL PROTECTED] writes:

Alexander Hi everybody!  Sorry, but there is another problem:

Alexander If I have a multiline-equation produced with C-Enter, I can
Alexander remove the formula-labels with M-m S-N. Why doesn´t this
Alexander work with a normal math-equation (M-m d, but no C-Enter)?
Alexander How can I remove such a label?

What works is M-m n (math-number). M-m N (math-nonumber) says that you
have a numbered equation, but that this particular line is not
numbered; this would not make sense with a one-line equation.

JMarc



### formula - numbering


Hi everybody!

Sorry, but there is another problem:

If I have a multiline-equation produced with C-Enter, I can remove the
formula-labels with M-m S-N. Why doesn´t this work with a normal math-equation
(M-m d, but no C-Enter)? How can I remove such a label?

Greets,
Alex.

---
Alexander Wollmann
Universität Freiburg,
Abteilung Elementar-Mathematik und Didaktik der Mathematik

E-Mail: Alexander Wollmann [EMAIL PROTECTED]
Date: 21-Jun-99
Time: 14:09:51

This message was sent by XFMail
---



### Re: formula - numbering


"Alexander" == Alexander Wollmann [EMAIL PROTECTED] writes:

Alexander Hi everybody!  Sorry, but there is another problem:

Alexander If I have a multiline-equation produced with C-Enter, I can
Alexander remove the formula-labels with M-m S-N. Why doesn´t this
Alexander work with a normal math-equation (M-m d, but no C-Enter)?
Alexander How can I remove such a label?

What works is M-m n (math-number). M-m N (math-nonumber) says that you
have a numbered equation, but that this particular line is not
numbered; this would not make sense with a one-line equation.

JMarc



### formula - numbering


Hi everybody!

Sorry, but there is another problem:

If I have a multiline-equation produced with C-Enter, I can remove the
formula-labels with M-m S-N. Why doesn´t this work with a normal math-equation
(M-m d, but no C-Enter)? How can I remove such a label?

Greets,
Alex.

---
Alexander Wollmann
Universität Freiburg,
Abteilung Elementar-Mathematik und Didaktik der Mathematik

E-Mail: Alexander Wollmann <[EMAIL PROTECTED]>
Date: 21-Jun-99
Time: 14:09:51

This message was sent by XFMail
---



### Re: formula - numbering


> "Alexander" == Alexander Wollmann <[EMAIL PROTECTED]> writes:

Alexander> Hi everybody!  Sorry, but there is another problem:

Alexander> If I have a multiline-equation produced with C-Enter, I can
Alexander> remove the formula-labels with M-m S-N. Why doesn´t this
Alexander> work with a normal math-equation (M-m d, but no C-Enter)?
Alexander> How can I remove such a label?

What works is M-m n (math-number). M-m N (math-nonumber) says that you
have a numbered equation, but that this particular line is not
numbered; this would not make sense with a one-line equation.

JMarc