Skip to content

NoHyper environment could not be nested #397

@lvjr

Description

@lvjr

From TeXackers/tabularray#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions