0

I try to use cleveref and varioref and ams* packages together. But I get some trouble, equations and sections label type seems to change and that does work well.

Here is my example:

\documentclass[onecolumn,twoside,openright,a4paper,11pt]{report}
\usepackage[utf8]{inputenc}     
\usepackage[T1]{fontenc}        
\usepackage{hyperref}       %
\usepackage{amsmath}        % 
%\usepackage{amssymb}       % 
%\usepackage{mathrsfs}      % 
%\usepackage{amsthm}        % 
%\usepackage{amsfonts}      % 
%\usepackage{mathtools}     % 
%\usepackage{amsbsy, amstext, amscd, amsopn, amsxtra, upref}    % 

\usepackage{varioref}   %   
\usepackage{cleveref}


\begin{document}

\section{first section} \label{sec1}

bla bla

\begin{equation}
    {sigma}={C}:{epsilon}
    \label{loiC}
\end{equation} 
\newpage

As we can see with \vref{sec1}, the reference does not work well and it is the same with \vref{loiC}.

\end{document}

any ideas ?

lockstep
  • 250,273
R. N
  • 1,076

1 Answers1

3

You need to load the packages in the correct order according to this answer. The correct order is

\usepackage{varioref}   % 
\usepackage{hyperref}  
\usepackage{cleveref}
Rud Faden
  • 2,124
  • 1
  • 17
  • 11