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.
> 

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to