Capitalize first letter of sentence with autoref
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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