two feature proposals, add option of label in equations and braces around references to equations
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 205
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
Hello
Yesterday Ulrike Fischer helped me (thanks) to locally switch from the equationautorefname equations to inequality and back
(equationautorefname)
Then I discovered that cleverref has a more general solution.
Here is a MWE
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage[colorlinks]{hyperref}
\usepackage[nameinlink]{cleveref}
\crefalias{inequality}{equation}
\crefname{inequality}{Inequality}{Inequalities}
\creflabelformat{inequality}{#2\textup{(#1)}#3}
\begin{document}
\begin{equation}
\label{Pythagoras}
a^2+b^2= c^2
\end{equation}
\begin{equation}
\label[inequality]{cauchy-schwarz}
\left(\sum_{i=1}^n x_i \cdot y_i \right)^2 \leq \left(\sum_{i=1}^n x_i^2\right) \cdot \left(\sum_{i=1}^n y_i^2\right)
\end{equation}
\begin{enumerate}
\item Pythagoras: \Cref{Pythagoras}
\item Cauchy-Schwarz \Cref{cauchy-schwarz}
\end{enumerate}
\end{document}
now cleverref is not really maintainted anymore, and it is not compatible with mathtools.
So is there any possiblity that hyperref adds a similar feature?
The other feature proposal concerns the reference to equations: Equation (1) is more standard that Equation 1.
There are hacks to solve this issue, like
autoref-with-braces-equation-number
Any chance to have this feature implemented in the official hyperref version?
regards
Uwe Brauer
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 compiling the provided LaTeX MWE and compare hyperref's current behavior with the cited cleveref and autoref workarounds. Done means evaluating both proposals: an optional label type for equations and configurable braces around equation references, while considering the stated mathtools compatibility concern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100