\index{a"|b} is broken but \index{a"@b}, \index{a""b}, \index{a"!b} all work
Open
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 205
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{makeidx}
\usepackage{hyperref}
\makeindex
\begin{document}
% \index{a"|b}% error if this is uncommented
\index{a"@b}
\index{a""b}
\index{a"!b}
\printindex
\end{document}

But with the commented line uncommented:
! Argument of \T1\b has an extra }.
<inserted text>
\par
l.6 \item a|hyperindexformat{\b}
, 1
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on testindexhyperref.log.
Procedure:
pdflatex --halt-on-error testindexhyperref
makeindex testindexhyperref
pdflatex --halt-on-error testindexhyperref
I did check hyperref documentation but found nothing on this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal LaTeX example in testindexhyperref and reproduce it using pdflatex, makeindex, and pdflatex as listed. Compare the failing \index{a"|b} case with the working @, "", and ! variants; done means the pipe variant completes without the reported T1\b error and produces the index.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, tex
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100