Hi guys,
I have a problem with my cross references. I use the cleveref package. When I put in a figure, give it a caption and label and then use the reference, it won't say figure, but will say section instead. Also, it doesn't refer to the figure, but to the section it is in.
This is (essentially) my code:
This produces a cross reference, which says "Let us see that in section 1.2." Instead it should say figure 1 (or 1.1 (chapter,number of figure) or 1.2.1 (chapter,section,#of figure) of course. Also, how to make that set up of figure numbering, I would like the 1.2.1 there (or will that work automatically?)
RensR wrote:
I have a problem with my cross references. I use the cleveref package. When I put in a figure, give it a caption and label and then use the reference, it won't say figure, but will say section instead. Also, it doesn't refer to the figure, but to the section it is in.
This is (essentially) my code:
your problem may be, that you're using the \caption command inside a center environment, but the according \label command after it. In that case, a simple moving of the \label command before \end{center} might do.
On the other hand, the figure and center environments both add vertical space---I'd replace the center environment here with a \centering command instead.
In which the figure works, the equation works, the caption at the figure works, the reference to the equation says "equation (2.1)",, so that all works fine. The reference to the figure however, says "section 2.3" (this is if I run Report.tex, if I run Methodology.tex, it will give 1.something of course). I hope this makes it clearer and someone might me able to help.
For some, not apparent to me, reason, it suddenly decided to start working. I can't figure out why it wasn't working before, but it is now.
Apparently, compiling a few times worked. I now have the figure environment like below, which works fine.