<div dir="ltr">Indeed. A lesson learned :-)<div><br></div><div style>Kari</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/18  <span dir="ltr"><<a href="mailto:hh-brasil@bol.com.br" target="_blank">hh-brasil@bol.com.br</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Herbert (Voss) proposed the same solution! imho: There must be a grave error in cleveref!<br>
<br>
We are wiser now!<br>
<br>
hh<br>
<br>
<br>
<br>
Em 18/04/2013 14:49, Kari Eloranta < <a href="mailto:kari.eloranta@gmail.com">kari.eloranta@gmail.com</a> > escreveu:<br>
<div class="HOEnZb"><div class="h5">Problem solved. Your tips made me find the cause for the problem, because I did not get any reference at all after changing the position of the label. It was caused by some kind of package conflict from \usepackage{cleveref}. When I commented the package off, everything started working again. It is a real relief, since the bug has bothered me almost a year. All references are back to normal again.<br>

<br>
With many thanks,  Kari<br>
<br>
2013/4/18  <<a href="mailto:hh-brasil@bol.com.br">hh-brasil@bol.com.br</a>><br>
<br>
Dear kari,<br>
<br>
<br>
<br>
I would put the label command within the equation (before the "end{equation}")<br>
<br>
<br>
<br>
hh<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Em 18/04/2013 12:45, Kari Eloranta < <a href="mailto:kari.eloranta@mac.com">kari.eloranta@mac.com</a> > escreveu:<br>
<br>
This might not be a pstricks related question, but any help is greatly appreciated. I have created a macro<br>
<br>
<br>
<br>
\newcommand{\info}[1]{%<br>
<br>
\vskip10pt<br>
<br>
\noindent\psframebox*[framesep=10pt,%<br>
<br>
 fillstyle=solid,%<br>
<br>
 fillcolor=yellow!55,%<br>
<br>
 linecolor=black]{\parbox[c][\height][s]{\textwidth-18pt}<br>
<br>
{\noindent  #1}}<br>
<br>
}<br>
<br>
<br>
<br>
which draws a filled yellow box around #1. If I call the macro with<br>
<br>
<br>
<br>
\info{{\blue Resistance}\\%<br>
<br>
The resistance of an electrical component is<br>
<br>
\begin{equation}<br>
<br>
R=\frac{V}{I}<br>
<br>
\end{equation}\label{eq:res}<br>
<br>
where $V$ is the potential difference across the component, and $I$ the electric current flowing through it.}<br>
<br>
<br>
<br>
the equation number (label) becomes 1.20 in the output pdf. However, when I try use \ref{eq:res} to reference the equation, the reference tag is 1.10 instead of 1.20. Recompiling does not help. Is there a solution to this problem?<br>

<br>
<br>
<br>
<br>
Best regards,<br>
<br>
  Kari<br>
<br>
_______________________________________________<br>
<br>
PSTricks mailing list<br>
<br>
<a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a><br>
<br>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a><br>
<br>
archive: <a href="http://www.tug.org/pipermail/pstricks/" target="_blank">http://www.tug.org/pipermail/pstricks/</a><br>
<br>
<br>
<br>
_______________________________________________<br>
<br>
PSTricks mailing list<br>
<br>
<a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a><br>
<br>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a><br>
<br>
archive: <a href="http://www.tug.org/pipermail/pstricks/" target="_blank">http://www.tug.org/pipermail/pstricks/</a><br>
<br>
<br>
<br>
<br>
--<br>
**************************************************************<br>
Kari Eloranta<br>
Ketunpolku 1<br>
40400 JYVÄSKYLÄ FINLAND<br>
Tel: <a href="tel:%2B358%2040%20586%207654" value="+358405867654">+358 40 586 7654</a><br>
<br>
<br>
<br>
_______________________________________________<br>
PSTricks mailing list<br>
<a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a><br>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a><br>
archive: <a href="http://www.tug.org/pipermail/pstricks/" target="_blank">http://www.tug.org/pipermail/pstricks/</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>**************************************************************<br>
Kari Eloranta<br>Ketunpolku 1<br>40400 JYVÄSKYLÄ FINLAND<br>Tel: +358 40 586 7654
</div>