bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with 'txiindexbackslashignore'


From: Werner LEMBERG
Subject: problem with 'txiindexbackslashignore'
Date: Sun, 06 Nov 2022 06:38:24 +0000 (UTC)

[texinfo.tex 2022-10-18.18]


Consider the following input file

```
\input texinfo.tex

@set txiindexbackslashignore

@findex \\
@findex A

@printindex fn

@bye
```

The created `.fn` file contains

```
\entry{ }{1}{\code {\backslashchar {}\backslashchar {}}}
```

which doesn't make sense, and which produces weird output, see
attached image.  Additionally, you get a mysterious pdftex warning

```
pdfTeX warning (dest): name{1} has been referenced but does not exist,
 replaced by a fixed one
```

which gives not a single clue where it comes from.

AFAICS, the only method to get a 'space' index entry is having a
series of backslashes if 'txiindexbackslashignore' is set.  So maybe
`texinfo.tex` can catch this, producing a correct `\entry` line by
replacing the space in its first argument with a backslash.

If this is not possible, please make `texinfo.tex` suppress index
entries that consist of whitespace only – perhaps together with a
warning (or even an error).  I also suggest to add some words to the
manual about this case.


    Werner

PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]