latex3 / latex3/hyperref

`cleveref` now refers to appendices as sections

Open
#362 13 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
205
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Using hyperref 2024-11-05 v7.01l with LaTeX 2024-11-01 and the example file:

\documentclass{article}
\usepackage{hyperref}
\usepackage{cleveref}

\begin{document}

\cref{sec:one} and \cref{sec:a}

\section{Section One}\label{sec:one}
Lorem.

\section{Appendix A}\label{sec:a}
Lorem.

\end{document}

cleveref now refers to sections in the appendix as section instead of appendix. I suspect this is related to the issue with \refstepcounter and related to https://github.com/latex3/latex2e/issues/1393, #360, #361 and fffd2e0.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by compiling the minimal example with hyperref 2024-11-05 v7.01l and LaTeX 2024-11-01 to reproduce the incorrect appendix reference. Then inspect the \refstepcounter-related behavior and the changes or discussions in #1393, #360, #361, and commit fffd2e0. Done means \cref labels appendix sections as “appendix” rather than “section”.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, tex
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.