Hi.
Is there a way to cross reference to eqnarray as a normal equation? In mt thesis it is numbered as one of the equation but when I cross refer to it I get a warning.
I should note that I'm using cleverref.
Thanks.
Math & Science ⇒ Cross referencing to eqnarray
Cross referencing to eqnarray
Do you want to reference the entire array, or just one equation in it? If you want to reference the entire array you need to use the subequations package
P.S. You should use the align environment rather than eqnarray as it has more consistent spacings.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{subequations}\label{sub:1}
\begin{align}
a+b&=c\label{sub:2}\\
d+e&=f\label{sub:3}
\end{align}
\end{subequations}
\ref{sub:1} -- \ref{sub:2} -- \ref{sub:3}
\end{document}
Re: Cross referencing to eqnarray
I'm confused.
Intuitively I will say your are referring to each equation by it's own.
Intuitively I will say your are referring to each equation by it's own.
Cross referencing to eqnarray
In page 18 of the manual of cleveref, one finds the following warning:
You should avoid the eqnarray environment.cleveref will not work properly with the standard LaTeX eqnarray en-
vironment. There is no intention to x this. The eqnarray environment
is poorly implemented, making it dicult to get it to work properly with
cleveref. You're better o using the amsmath replacements in any case,
such as gather, align, multline and split, which do work properly with
cleveref. (See http://www.tug.org/pracjourn/2006-4/madsen/)
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Re: Cross referencing to eqnarray
Hi yotama9,
I am now also slightly confused. Do you understand what I posted? Does it do what you want? I wasn't exactly sure what you wanted from reading your first post so guessed a little bit.
Perhaps an example that shows the problem may help.
I am now also slightly confused. Do you understand what I posted? Does it do what you want? I wasn't exactly sure what you wanted from reading your first post so guessed a little bit.
Perhaps an example that shows the problem may help.
Re: Cross referencing to eqnarray
Hi.
I just stopped using eqnarray. I don't remember what I did instead.
Yotam
I just stopped using eqnarray. I don't remember what I did instead.
Yotam
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Cross referencing to eqnarray
And now you are trying to tell us that you are not able to reconstruct the situation by looking at the concerned source code. Or what is this all about? Once more very confusing.yotama9 wrote:[...] I just stopped using eqnarray. I don't remember what I did instead. [...]
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Cross referencing to eqnarray
I just don't want to leave the tree open.
I am thankful for the help and I want that in the future, if somebody search the thread for a similar problem he will know if the solution was helpful or not.
I am thankful for the help and I want that in the future, if somebody search the thread for a similar problem he will know if the solution was helpful or not.