Skip to content

two feature proposals, add option of label in equations and braces around references to equations #375

@ouboub

Description

@ouboub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions