Skip to content

cleveref fails to recognize \appendix #2049

@akiyks

Description

@akiyks

cleveref puts "Chapter" and "section" in references to chapters/sections of after \appendix.
They are expected to be "Appendix" and "appendix".

This is observed against LaTeX2e <2024/11/01> and later.

With LaTeX2e <2023/11/01> installed from Ubuntu 24.04's distro package, I can get the expected behavior.

Minimal example showing the bug

%\RequirePackage{latexbug}       % <-- Commenting out in reporting issues related to cleveref
\documentclass[oneside]{book}

\usepackage{cleveref}

\begin{document}

\mainmatter

\chapter{Intro}
\label{chp:Intro}

\Cref{app:Test} and \cref{app:Test:A} are in appendix.

\appendix

\chapter{Test}
\label{app:Test}

\Cref{chp:Intro} is a chapter.

\section{A}
\label{app:Test:A}

This is under \cref{app:Test}.

\end{document}

Log file (required) and possibly PDF file

MWE.log

MWE.pdf

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions