LyX adds unwanted stuff into index entries

ehud.behar at protonmail.com ehud.behar at protonmail.com
Sun Jan 9 18:38:43 UTC 2022


Please consider the attached .lyx file.
The file mainly consists of two index entries inserted via the Insert->Index Entry button in the editor.
It is a MWE for a larger project to be compiled with XeLaTeX. The exported tex commands are not as clean as they could be. Instead of the simple
`\index{Dirac, Paul}`,
I get
`\index{Dirac, Paul@\textenglish[variant=american]{Dirac, Paul}}`
or
`\textenglish[variant=american]{\index{Dirac, Paul}}`
The latter seems to be more correct, but I would like LyX to get those entries cleaner.
Can anyone see the reason for this? Can I change it?

Of course, I can bypass: Create a new custom inset with the following inserted into the layout:

InsetLayout Flex:index

LyXType custom

LabelString "Index"

LatexType Command

LatexName index

Decoration classic

End

But I prefer using the default LyX tools.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220109/aa44658d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: english text in index.lyx
Type: application/octet-stream
Size: 2517 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220109/aa44658d/attachment-0001.obj>


More information about the lyx-users mailing list