When referring to a figure, the output in my pdf is not a number, but 'Figure xx'. For example: if I use the phrase

This is figure \ref{test}.

the output in my pdf file is always:

This is figure Figure 1.3.

I would like to know why LaTeX shows the prefix 'Figure' and not simply the number of the figure. Here is the general code that I use for a figure:


Interestingly, when referring to a subfigure, this issue does not occur; it only occurs when I want to refer to a 'whole' figure. As my document is quite extend (thesis), I use a lot of packages in my preamble, but even after an extensive quest I could not figure out what the problem might be.

My preamble:



% **** General lay out ****


% **** Font in titles and text ****


% **** Fancy chapter titles ****

    \rlap{ \resizebox{!}{1.4cm}{\thechapter} \rule{5cm}{1.45cm}}} 
  {10pt}{\Huge}  % Chaptertitelgrootte

% **** Fancy captions for images ****

font={small, sf},
labelfont={bf, sf},
labelsep= endash}

% ************

\def\@seccntformat#1{\llap{\csname the#1\endcsname\quad}}

  • Please add your preamble here because \ref should print just the number. Do you use the cleveref package?
    – Oliver
    Mar 9, 2014 at 13:47
  • I have added my preamble now.
    – Machaeri
    Mar 9, 2014 at 13:52
  • With cleveref, typing: This is \cref{test} will result in: This is figure 1.3, and \Cref{test} shows that… in: Figure 1.3 shows that… It cooperates with varioref.
    – Bernard
    Mar 9, 2014 at 14:08

1 Answer 1


This is caused by chemstyle package, and to be more precisely by the varioref option. Set it to false if you don't need it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.