In my LaTeX document I use both cleveref
and fncychap
packages. But fncychap
breaks the correct crefname
for appendices.
A minimal example:
\documentclass{book}
\usepackage{cleveref}
\usepackage{fncychap}
\begin{document}
\chapter{First chapter}
\label{chap:first}
Reference to the \cref{app:first}.
\appendix
\chapter{First appendix}
\label{app:first}
\end{document}
It displays "Reference to the chapter A." instead of "Reference to the appendix A."
Without \usepackage{fncychap}
it works as expected.
How can I fix that?
cleveref
last?cleveref
likes being last. it should even be loaded afterhyperref
, which also likes being last ;).