Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] bug with eqnarray labels and references?

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] bug with eqnarray labels and references?


Chronological Thread 
  • From: Basile Audoly <address@hidden>
  • To: Kostas Oikonomou <address@hidden>
  • Cc: TeXmacs <address@hidden>
  • Subject: Re: [TeXmacs] bug with eqnarray labels and references?
  • Date: Fri, 8 Sep 2017 08:57:55 -0700

Hi Kostas,
in multiple equations, the label has to come _after_ the equation number, otherwise is gets assigned the previous equation's number.
The <eq-number> and <label|eq:2> commands needs be swapped.
Basile

Correction: 
<TeXmacs|1.99.4>

<style|article>

<\body>
  First formula

  <\equation>
    a=b.<label|eq:1>
  </equation>

  Eqnarray*:

  <\eqnarray*>
    <tformat|<table|<row|<cell|>|<cell|>|<cell|b=c>>|<row|<cell|>|<cell|>|<cell|d=e<eq-number><label|eq:2>>>>>
  </eqnarray*>

  So we need the solution of (<reference|eq:2>). Wrong reference!
</body>

<\initial>
  <\collection>
    <associate|font-base-size|11>
    <associate|page-type|letter>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|eq:1|<tuple|1|?>>
    <associate|eq:2|<tuple|2|?>>
  </collection>
</references>


Le 8 sept. 2017 à 05:58, Kostas Oikonomou <address@hidden> a écrit :

In this simple document, the reference to eq:2 comes out as a reference to eq:1:

<TeXmacs|1.99.5>
<style|article>

<\body>
 First formula
 <\equation>
   a=b.<label|eq:1>
 </equation>
 Eqnarray*:

 <\eqnarray*>
<tformat|<table|<row|<cell|>|<cell|>|<cell|b=c>>|<row|<cell|>|<cell|>|<cell|d=e<label|eq:2><eq-number>>>>>
 </eqnarray*>

 So we need the solution of (<reference|eq:2>). Wrong reference!
</body>

<\initial>
 <\collection>
   <associate|font-base-size|11>
   <associate|page-type|letter>
 </collection>
</initial>

<\references>
 <\collection>
   <associate|eq:1|<tuple|1|?>>
   <associate|eq:2|<tuple|1|?>>
 </collection>
</references>




Archive powered by MHonArc 2.6.19.

Top of Page