latex3 / latex3/hyperref

Capitalize first letter of sentence with autoref

Open
#67 5 comments 26 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

For instance, given

\section{bla}\label{sec:bla}
...

\autoref{sec:bla} is where we discussed bla.

We'll obtain something along the lines of


2.1 bla

...

section 2.1 is where we discussed bla.


It would be useful to have something like \Cref from the cleveref package to indicate something is at the start of a sentence. I currently use something along these lines:

\newcommand{\Autoref}[1]{%
  \begingroup%
  \def\chapterautorefname{Chapter}%
  \def\sectionautorefname{Section}%
  \def\subsectionautorefname{Subsection}%
  \autoref{#1}%
  \endgroup%
}

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 tracing hyperref's \autoref behavior and the \Autoref example shown in the issue, then compare the requested sentence-initial capitalization with cleveref's \Cref. Done means the behavior and command interface are defined and the resulting reference text is capitalized appropriately at sentence starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, tex
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.