0

\cref{equation label} is showing section number instead of equation number -

\documentclass[a4paper]{article}

\usepackage[english]{babel} \usepackage[utf8]{inputenc}

\usepackage{mathrsfs} \usepackage{amsmath} \usepackage{amssymb}

\usepackage{hyperref} \hypersetup{colorlinks=true} \usepackage{cleveref}

\title{Your Paper}

\author{You}

\date{\today}

\begin{document} \maketitle

\section{AAA} \begin{equation}\label{eq:87} as+56=09 \end{equation} \section{BBBB} \begin{eqnarray}\label{eq:hjk} 6+09=2455 \end{eqnarray}

\cref{eq:87} \cref{eq:hjk}

\end{document}

I would greatly appreciate any guidance or advice on how to overcome this issue. Thank you in advance for your assistance.

The output is shown in the attached image.

David Carlisle
  • 757,742
PoreyS
  • 276
  • 2
  • 10
  • 3
    Read the manual of the package cleveref, section 14.1. It says: *Cleveref will not work properly with the standard LaTeX eqnarray environment. There is no intention to fix this. The eqnarray environment is poorly implemented. The author suggest to use gather, align, multline* and split from amsmath in replacement for eqnarray. – quark67 Mar 03 '23 at 04:35
  • 1
    If you really need using eqnarray, you can find here a workaround, by David Carlisle. – quark67 Mar 03 '23 at 04:42
  • @quark67 Thanks alot. – PoreyS Mar 03 '23 at 04:55
  • @quark67 ooh I didn't remember that:-) – David Carlisle Mar 14 '23 at 22:58

0 Answers0