[pstricks] problem in equation numbering

Kari Eloranta kari.eloranta at gmail.com
Thu Apr 18 19:49:49 CEST 2013


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.

With many thanks,
  Kari


2013/4/18 <hh-brasil at bol.com.br>

> Dear kari,
>
> I would put the label command within the equation (before the
> "end{equation}")
>
> hh
>
>
>
> Em 18/04/2013 12:45, Kari Eloranta < kari.eloranta at mac.com > escreveu:
> This might not be a pstricks related question, but any help is greatly
> appreciated. I have created a macro
>
> \newcommand{\info}[1]{%
> \vskip10pt
> \noindent\psframebox*[framesep=10pt,%
>  fillstyle=solid,%
>  fillcolor=yellow!55,%
>  linecolor=black]{\parbox[c][\height][s]{\textwidth-18pt}
> {\noindent  #1}}
> }
>
> which draws a filled yellow box around #1. If I call the macro with
>
> \info{{\blue Resistance}\\%
> The resistance of an electrical component is
> \begin{equation}
> R=\frac{V}{I}
> \end{equation}\label{eq:res}
> where $V$ is the potential difference across the component, and $I$ the
> electric current flowing through it.}
>
> 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?
>
> Best regards,
>   Kari
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>



-- 
**************************************************************
Kari Eloranta
Ketunpolku 1
40400 JYVÄSKYLÄ FINLAND
Tel: +358 40 586 7654
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20130418/9d113fb2/attachment-0001.html>


More information about the PSTricks mailing list