LyX adds unwanted stuff into index entries
Jürgen Spitzmüller
spitz at lyx.org
Mon Jan 10 06:49:52 UTC 2022
Am Sonntag, dem 09.01.2022 um 18:38 +0000 schrieb tush via lyx-users:
> 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?
The index entry switches language to English, hence the language
switching markup is output. In order to maintain correct sorting (D,
not \), the sorting key (before the @) is generated.
> Can I change it?
Do not switch language, or switch outside the index inset.
HTH,
Jürgen
>
> 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220110/e31c0f0a/attachment.asc>
More information about the lyx-users
mailing list