latex3 / latex3/hyperref

texorpdfstring with utf character causes "Label(s) may have changed"

Open
#422 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

\documentclass{article}
\usepackage{unicode-math}
\usepackage{hyperref}
\begin{document}
%\section{Solving µy=0} % ok
%\section{Solving λy=0} % not ok; also "Missing character" warning
\section{Solving \texorpdfstring{$l y=0$}{λy=0}}
\label{seclabel}
content
\end{document}

has a persistent "LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right." If I use https://tex.stackexchange.com/a/169245/107497, it shows that the label is macro:->{1}{1}{Solving \texorpdfstring {$l y=0$}{λy=0}}{section.1}{} before and after. If I take out the unicode-math, things are fine. If I take out the texorpdfstring and just have \section{λy=0}, the persistence stops, although I also get a "Missing character" warning and the λ isn't in the output, so I'm not sure if that's related.

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 example in the issue, then compare runs with and without unicode-math and texorpdfstring. Trace why the label differs between runs; done means the example no longer produces a persistent rerun warning while retaining the intended λ PDF bookmark text.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.