Code: Select all
\begin{figure}
\label{blah}
\end{figure}
Code: Select all
See \ref{blah}
I can't figure out what's wrong. Everything compiles well. The references to sections, subsections and equations work fine!
Any help?
Code: Select all
\begin{figure}
\label{blah}
\end{figure}
Code: Select all
See \ref{blah}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\begin{figure}
Text, images\dots inside the figure
\caption{the caption}
\label{blah}
\end{figure}
I've been using LaTeX for something like 5 years now, but never knew that. That simply blows my mind. I always thought it was arbitrary -- how I ever avoided the problem until now is a mystery.Keta wrote:The problem there is that you must put the label after a caption, so the label can reference to the figure (it references to the caption, actually).
\label{}
right after \caption{}
, that means they are in a sequence. It worked for me. Try!NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p