#12267: multiply defined labels when using sagetex with multline
-----------------------+----------------------------------------------------
   Reporter:  dimpase  |          Owner:  jason       
       Type:  defect   |         Status:  needs_review
   Priority:  major    |      Milestone:  sage-4.8    
  Component:  misc     |       Keywords:              
Work_issues:           |       Upstream:  N/A         
   Reviewer:           |         Author:  Dan Drake   
     Merged:           |   Dependencies:              
-----------------------+----------------------------------------------------
Changes (by newvalueoldvalue):

  * status:  needs_info => needs_review
  * author:  => Dan Drake


Comment:

 While working on this, I uncovered a more serious bug: I was using a
 single variable (`max_counter_seen`) but had two different label names --
 `sageinline` and `sagecmdline`. So after doing, say, 5 "inlines",
 `max_counter_seen` would be 5, and then if you did a sagecmdline, it would
 see a counter of 1 and not do anything!

 So, we need to keep track of the label name as well as the maximum counter
 we've seen.

 I also improved the version mismatch checking so that it works with
 arbitrarily old versions of `sagetex.sty`, so in particular people with
 Debian's TeXLive 2009 packages will be warned of version mismatches. This
 fixes #8035.

 New spkg:
 http://sage.math.washington.edu/home/drake/code/sage/st/sagetex-2.3.3.p1.spkg.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12267#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to