latex3 / latex3/hyperref

`NoHyper` environment could not be nested

Open
#397 1 comment 0 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

From https://github.com/lvjr/tabularray/issues/620

NoHyper environment in hyperref could not be nested. In the following example, the last link is still disabled.

\documentclass{article}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue}
\begin{document}

\hypertarget{test}{Target}

\hyperlink{test}{Link}

\begin{NoHyper}
\hyperlink{test}{Link}
\end{NoHyper}

\hyperlink{test}{Link}

\begin{NoHyper}
A
\begin{NoHyper}
\hyperlink{test}{Link}
\end{NoHyper}
C
\end{NoHyper}

\hyperlink{test}{Link}

\end{document}
Image

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 LaTeX example in the issue with hyperref and nested NoHyper environments. Inspect the NoHyper environment behavior and verify that links are disabled only within each environment, with the link after the outer environment active again.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.