latex3 / latex3/hyperref

\index{a"|b} is broken but \index{a"@b}, \index{a""b}, \index{a"!b} all work

Open
#109 12 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[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}

Capture d’écran 2019-11-17 à 20 58 01

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.