LaTeX forum ⇒ GeneralCan't use \ref or \cref for equations Topic is solved

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

Can't use \ref or \cref for equations

Postby abbyapril » Wed Jul 25, 2018 7:14 pm

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!

Tags:

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

Postby Stefan Kottwitz » Wed Jul 25, 2018 7:20 pm

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
Site admin

abbyapril
Posts: 2
Joined: Wed Jul 25, 2018 7:00 pm

Postby abbyapril » Fri Jul 27, 2018 3:04 pm

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!


Return to “General”

Who is online

Users browsing this forum: Majestic-12 [Bot], marcocintra and 13 guests