#12267: multiply defined labels when using sagetex with multline
-----------------------+----------------------------------------------------
Reporter: dimpase | Owner: jason
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: misc | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------+----------------------------------------------------
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.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12267>
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.