Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special treatment for some commands - e.g. \index #35

Open
pauloney opened this issue Mar 30, 2017 · 0 comments
Open

Special treatment for some commands - e.g. \index #35

pauloney opened this issue Mar 30, 2017 · 0 comments

Comments

@pauloney
Copy link

pauloney commented Mar 30, 2017

The command \index shows up in TeX with a variable number of arguments, depending in particular, on the package one is using to handle multiple-indexes.

The following input:

one\index{two}{three}

is parsed yielding (on the older version of detex)

one twothree

and yielding (on the new version):

onetwo three

while the correct should be:

 one two three

or even arguably only

 one three

since "two" which is the name of the Index here is not all that interesting for spellers.

Even in the case where there is a NEWLINE after the \index{} entry, detex (the new one) is not respecting it and joining the words before and after:

\documentclass{report}

\begin{document}

An atlas of\index{Atlas}
dimension ...

\end{document}

that becomes:

An atlas ofdimension ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant