#12267: multiply defined labels when using sagetex with multline
-----------------------+----------------------------------------------------
   Reporter:  dimpase  |          Owner:  ddrake      
       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 ddrake):

  * owner:  jason => ddrake


Old description:

> the following, distilled from a real example:
> {{{
>
> \documentclass{article}
> \usepackage{amsmath,amsthm,sagetex}
> \begin{document}
> \begin{sagesilent}
> d=4
> \end{sagesilent}
> \begin{multline}
> \sage{(d)}=\\ \sage{d}
> \end{multline}
> \end{document}
> }}}
> produces the following sagetex.sout file:
> {{{
> % This file was *autogenerated* from s.sagetex.sage with
>  % sagetex.py version 2011/05/27 v2.3.1
> \newlabel{@sageinline0}{{%
> 4}{}{}{}{}}
> \newlabel{@sageinline1}{{%
> 4}{}{}{}{}}
> \newlabel{@sageinline0}{{%
> 4}{}{}{}{}}
> \newlabel{@sageinline1}{{%
> 4}{}{}{}{}}
> %34f836090e6dc538159452d641440313% md5sum of corresponding .sage file
> (minus "goboom" and pause/unpause lines)
> }}}
> which clearly has spurrious parts, resulting in
> {{{
> ...
> LaTeX Warning: Label `@sageinline0' multiply defined.
> LaTeX Warning: Label `@sageinline1' multiply defined.
> ...
> }}}
> when running LaTeX for the 2nd, etc times.

New description:

 the following, distilled from a real example:
 {{{

 \documentclass{article}
 \usepackage{amsmath,amsthm,sagetex}
 \begin{document}
 \begin{sagesilent}
 d=4
 \end{sagesilent}
 \begin{multline}
 \sage{(d)}=\\ \sage{d}
 \end{multline}
 \end{document}
 }}}
 produces the following sagetex.sout file:
 {{{
 % This file was *autogenerated* from s.sagetex.sage with
  % sagetex.py version 2011/05/27 v2.3.1
 \newlabel{@sageinline0}{{%
 4}{}{}{}{}}
 \newlabel{@sageinline1}{{%
 4}{}{}{}{}}
 \newlabel{@sageinline0}{{%
 4}{}{}{}{}}
 \newlabel{@sageinline1}{{%
 4}{}{}{}{}}
 %34f836090e6dc538159452d641440313% md5sum of corresponding .sage file
 (minus "goboom" and pause/unpause lines)
 }}}
 which clearly has spurrious parts, resulting in
 {{{
 ...
 LaTeX Warning: Label `@sageinline0' multiply defined.
 LaTeX Warning: Label `@sageinline1' multiply defined.
 ...
 }}}
 when running LaTeX for the 2nd, etc times.

 This is fixed by the new SageTeX 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:11>
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