2

Consider the following MWE. If you comment out the line \usepackage{cleveref}, it works fine. However, if this line is not commented, the pdflatex command just stalls (no error is shown). Any suggestions?

\documentclass{article}

\usepackage{floatrow}
\usepackage{algorithm}
\usepackage{algpseudocode}

\usepackage{hyperref}
\usepackage{cleveref}


\begin{document}

\newfloatcommand{falgbox}{algorithm}[\nocapbeside]
\begin{algorithm}[h]
    \falgbox[0.7\columnwidth]{%
        \begin{algorithmic}[1]
            \Function{Register}{\,}

            \EndFunction
        \end{algorithmic}}{
        \caption{The Register(\,) function.\label{alg:Register}}}
\end{algorithm}

\end{document}
  • I would say this is a consequence of the way floatrow defines counters etc. – user31729 Sep 20 '15 at 20:49
  • Send the author of cleveref a message. Maybe he make the programs compatible, if possible. – Sveinung Sep 21 '15 at 12:10

Your Answer

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

Browse other questions tagged or ask your own question.