>  you can't use `macro parameter character #' in horizontal mode

I can reproduce this in LyX by adding Insert -> Index Entry "BTS#3".

This may be a bug in LyX. Is there any advantage to not parsing the input to
index?

...

>
> At 
> http://theoval.sys.uea.ac.uk/~nlct/latex/novices/cantusehash.html<http://theoval.sys.uea.ac.uk/%7Enlct/latex/novices/cantusehash.html>
> I found some *TeX*-level advice to do backslash-prefixing. I could
> see this wasn't really going to work at LyX level


Why not?

>, but I tried it.

> The result was that the index is generates, the index entry is correct,
> but the actual text in the body of the document has a backslash in
> front of it. I.e.
>
>        ... see BTS\#287585 ...
>
>        Index
>
>        BTS#287585, 28
>

Works for me. Insert -> Index Entry "BTS\#287585" gives me the LaTeX code
\index{BTS\#287585}. No trailing backslash here.  The index entry itself
shouldn't generate any text, backslash or otherwise.

Perhaps you are selecting the text and relying on LyX to copy the text  into
the index entry? You can just click the index entry and enter whatever text
you want.


> (Actually it's on page 27, but ... one thing at a time.)


Sounds like LyX isn't rerunning LaTeX enough. Try creating the dvi or pdf or
whatever again.

<snip>
-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia

Reply via email to