latex3 / latex3/hyperref

caption creates a target if \LinkTargetOff is used

Open
#400 0 comments 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

\documentclass{article}
\usepackage{hyperref}
\begin{document}\showoutput
\makeatletter
\def\@captype{figure}
\LinkTargetOff
\caption{bar}

\end{document}

shows

......\hbox(0.0+0.0)x0.0, shifted -12.0
........\pdfdest name{figure.1} xyz
........\penalty 10000

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 running the minimal LaTeX example from the issue with hyperref and \LinkTargetOff, then inspect the caption handling that produces the figure.1 pdfdest. Done means the caption no longer creates that target when link targets are disabled, while the documented or expected behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, tex
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.