2

I am using the cleveref package with the ifacconf class and it is returning the error as follow:

TeX capacity exceeded, sorry [input stack size=5000]. }{}

I could not identify the error. Can anybody help me?

My MWE:

\documentclass[a4paper]{ifacconf}

\usepackage{graphicx,amsmath,url}     
\usepackage[round]{natbib}            

\usepackage[spanish,brazil,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ae}

\usepackage{cleveref}


\begin{document}

\cref{here}

\begin{figure}
    \label{here}
\end{figure}


\end{document}

2

The class adds section to the reset list of the part counter, that it doesn't define.

\documentclass[a4paper]{ifacconf}

\newcounter{part} % fix the issue in the class
\counterwithin*{section}{part}

\usepackage{graphicx,amsmath,url}
\usepackage[round]{natbib}

\usepackage[spanish,brazil,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{cleveref}

\begin{document}

\cref{here}

\begin{figure}
  \caption{Caption}
  \label{here}
\end{figure}

\end{document}

Note that the ae package is obsolete and should not be used in newer documents.

  • @Adriano I see no issue, so long as I load varioref before cleveref. – egreg Mar 30 at 14:55
  • Its answer solved my problem. Thank you! But I would like to complement it, because I also needed to use varioref, hyperref packages, and I followed a recommendation according to link, page 25. There is a solution of a constraint while using hyperref package with ifacconf, according to link. So I jointed all theses solutions into just one. – Adriano Mar 30 at 15:00

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.