GeneralCan't use \ref or \cref for equations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
abbyapril
Posts: 2
Joined: Wed Jul 25, 2018 7:00 pm

Can't use \ref or \cref for equations

Post by abbyapril »

I can't get \ref or \cref to work in my document for referencing equations. There are lots of equations, so I'd like to be able to reference them in such a way that the numbers are automatically fixed when I add a new equation. \ref worked for the figures in my document, but not equations. When it complies, it gives me a warning that says the reference is undefined. I'm not messing up any spelling or brackets. Please help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10361
Joined: Mon Mar 10, 2008 9:44 pm

Can't use \ref or \cref for equations

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

\ref works by default, so perhaps there's a problem in your code. Can you post code how you are doing it?

Stefan
LaTeX.org admin
abbyapril
Posts: 2
Joined: Wed Jul 25, 2018 7:00 pm

Can't use \ref or \cref for equations

Post by abbyapril »

I tried commenting out \usepackage{cleveref} and that seems to have worked. I guess it was unnecessary to have it there. Thanks you for your help!
Post Reply