+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667116657
+Sometimes the automatic ordering of index entries is not the one you want.
+ This might be the case with some index processors (such as
+\family sans
+makeindex
+\family default
+) i
+\change_deleted -712698321 1667116658
+I
+\change_unchanged
+f you use accented characters in the index entry
+\change_deleted -712698321 1667116670
+ the entries might not follow the rules for the index order
+\change_inserted -712698321 1667116709
+ or if you use macros
+\change_unchanged
+.
+\change_inserted -712698321 1667127198
+
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667116836
+ The index entries are sorted alphabetically but \SpecialChar LaTeX
+
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+The index generating is done in the background by an extra program,
+ see section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:Index-Program"
+nolink "false"
+
+\end_inset
+
+.
+\end_layout
+
+\end_inset
+
+ does not know how to sort accents in different languages.
+ We have created as an example the three dummy index entries
+\begin_inset Quotes eld
+\end_inset
+
+maison
+\begin_inset Quotes erd
+\end_inset
+
+,
+
+\begin_inset Quotes eld
+\end_inset
+
+maïs
+\begin_inset Quotes erd
+\end_inset
+
+,
+ and
+\begin_inset Quotes eld
+\end_inset
+
+maître
+\begin_inset Quotes erd
+\end_inset
+
+.
+\begin_inset Index idx
+range none
+pageformat default
+status collapsed
+
+\begin_layout Plain Layout
+Dummy entries
+\begin_inset IndexMacro subentry
+status open
+
+\begin_layout Plain Layout
+maïs
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+range none
+pageformat default
+status collapsed
+
+\begin_layout Plain Layout
+Dummy entries
+\begin_inset IndexMacro subentry
+status open
+
+\begin_layout Plain Layout
+maître
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+range none
+pageformat default
+status collapsed
+
+\begin_layout Plain Layout
+Dummy entries !
+ maïs@maison
+\end_layout
+
+\end_inset
+
+ They will be sorted in the order maïs,
+ maître,
+ maison but we want the order maïs,
+ maison,
+ maître.
+ To achieve this,
+ we use the command
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667116827
+
+\series bold
+previous entry@current entry
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667116827
+In our case we want to have
+\begin_inset Quotes eld
+\end_inset
+
+maison
+\begin_inset Quotes erd
+\end_inset
+
+ after
+\begin_inset Quotes eld
+\end_inset
+
+maïs
+\begin_inset Quotes erd
+\end_inset
+
+ and write therefore for the index entry of maison:
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667116827
+
+\series bold
+maïs@maison
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667116827
+The previous entry need not be a real existing entry.
+ You can also use another word to tell \SpecialChar LaTeX
+ the entry order.
+ See the next subsection for an example.
+\change_inserted -712698321 1667116836
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667127344
+To accommodate for that,
+ you can use
+\family sans
+Insert\SpecialChar menuseparator
+Index Properties\SpecialChar menuseparator
+Sortkey
+\family default
+.
+ The sortkey you enter here is not output in the index,
+ it is just used for sorting (instead of the actual entry).
+ For instance,
+ you can pass the sort key
+\begin_inset Quotes eld
+\end_inset
+
+zizek
+\begin_inset Quotes erd
+\end_inset
+
+ to sort the name
+\emph on
+Žižek
+\emph default
+ should your index processor be incapable to sort Slovenian postmodern philosophers correctly.
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667127399
+Note that in \SpecialChar LaTeX
+,
+ sortkeys are separated from the actual entry by the character
+\begin_inset Quotes eld
+\end_inset
+
+@
+\begin_inset Quotes erd
+\end_inset
+
+.
+ This also works in \SpecialChar LyX
+,
+ although you have to take care that the character is not formatted.
+ For this reason,
+ a real @ character has to be inserted to an index entry in a specific way.
+ See section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:Index-Special-Characters"
+nolink "false"
+
+\end_inset
+
+ for details.
+\change_unchanged
+
+\end_layout
+
+\begin_layout Subsection
+Index Entry
+\change_deleted -712698321 1667127427
+Layout
+\change_inserted -712698321 1667127428
+Formatting
+\change_unchanged
+
+\begin_inset Index idx
+range none
+pageformat default
+status collapsed
+
+\begin_layout Plain Layout
+Index
+\begin_inset IndexMacro subentry
+status open
+
+\begin_layout Plain Layout
+Entry formatting
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667127459
+You can change t
+\change_inserted -712698321 1667127459
+T
+\change_unchanged
+he appearance of index entries
+\change_inserted -712698321 1667127470
+can be formatted as usual
+\change_unchanged
+via the text style dialog
+\change_inserted -712698321 1667127566
+,
+ the toolbar or shortcuts.
+ Entries will appear in the index list in the way they are formatted in the index entry
+\change_unchanged
+.
+\begin_inset Index idx
+range none
+pageformat default
+status open
+
+\begin_layout Plain Layout
+Dummy entries
+\begin_inset IndexMacro subentry
+status open
+
+\begin_layout Plain Layout
+
+\shape italic
+This is an italic dummy entry
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\change_inserted -712698321 1667127631
+Note that this also means that two differently formatted otherwise identical entries,
+ e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+
+\emph on
+Bananas
+\emph default
+ and
+\series bold
+Bananas
+\series default
+,
+ will be listed separately.
+
+\change_deleted -712698321 1667127514
+You can also
+\change_inserted -712698321 1667127638
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667127611
+To
+\change_unchanged
+ format
+\change_deleted -712698321 1667127514
+the
+\change_inserted -712698321 1667127611
+a
+\change_unchanged
+ page
+\change_inserted -712698321 1667127611
+reference,
+ use the
+\family sans
+Format
+\family default
+ option in the index entry settings dialog.
+
+\change_deleted -712698321 1667127514
+number using the character
+\begin_inset Quotes eld
+\end_inset
+
+|
+\begin_inset Quotes erd
+\end_inset
+
+ followed by a \SpecialChar LaTeX
+-command without a backslash.
+ We can write for example
+\change_inserted -712698321 1667196148
+ You can either select one of the proposed formatting options (
+\family sans
+Bold
+\family default
+,
+
+\family sans
+Italic
+\family default
+,
+
+\family sans
+Emphasized
+\family default
+) or
+\family sans
+Custom.
+
+\family default
+ With the latter,
+ you are supposed to enter a valid \SpecialChar LaTeX
+ macro
+\emph on
+without
+\emph default
+ leading backslash,
+ e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+ a self-defined command
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667118710
+myformat
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+ or an existing macro such as
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667127771
+textsf
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+.
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667118734
+
+\series bold
+italic page number:|textit
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667118734
+to get the page number in italic.
+\begin_inset Index idx
+range none
+pageformat default
+status open
+
+\begin_layout Plain Layout
+Dummy entries !
+ italic page number:|textit
+\end_layout
+
+\end_inset
+
+ Normally all \SpecialChar LaTeX
+-commands begin with a backslash,
+ but in this special case
+\begin_inset Quotes eld
+\end_inset
+
+
+\series bold
+|command
+\series default
+
+\begin_inset Quotes erd
+\end_inset
+
+ means
+\series bold
+
+\backslash
+command{page
+\begin_inset space ~
+\end_inset
+
+number}
+\series default
+.
+ Have a look at section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:LaTeX-Syntax"
+nolink "false"
+
+\end_inset
+
+ to learn more about the \SpecialChar LaTeX
+-syntax.
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667118832
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+
+\series default
+ Formatting single index entries only works when you use the program
+\family sans
+makeindex
+\family default
+to generate the index,
+ see section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:Index-Program"
+nolink "false"
+
+\end_inset
+
+.
+ If you use
+\family sans
+xindy
+\family default
+,
+ this will not work for anything other than bold or italic text.
+ This is because
+\family sans
+xindy
+\family default
+ requires you to define semantic elements before they can be used,
+ see
+\begin_inset CommandInset citation
+LatexCommand cite
+after "p. 678 ff."
+key "latexcompanion"
+literal "true"
+
+\end_inset
+
+ for details.
+\end_layout
+
+\end_inset
+
+
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+In general,
+ we encourage you to
+\change_deleted -712698321 1667118871
+not format page numbers directly as shown above
+\change_inserted -712698321 1667118875
+use self-defined commands
+\change_unchanged
+.
+
+\change_inserted -712698321 1667127835
+This makes it easier to change the formatting,
+ should you or your publisher decide to do that later.
+
+\change_deleted -712698321 1667118961
+Instead,
+ you should define a macro in the preamble and use that.
+ Maybe you want all page references italic that refer to
+\change_inserted -712698321 1667118968
+For instance,
+ add
+\change_deleted -712698321 1667118970
+
+\change_unchanged
+a
+\change_inserted -712698321 1667119029
+formatting macro for index entries that refer to the page(s) where the indexed term is defined
+\change_deleted -712698321 1667119044
+definition of the indexed term,
+ so that users can easily find definitions.
+ If so,
+\change_inserted -712698321 1667119044
+by
+\change_unchanged
+ put
+\change_inserted -712698321 1667119047
+ting
+\change_unchanged
+ the following in the preamble
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+newcommand
+\change_inserted -712698321 1667119052
+*
+\change_deleted -712698321 1667127880
+{
+\change_unchanged
+
+\backslash
+IndexDef
+\change_deleted -712698321 1667127881
+}
+\change_unchanged
+[1]{
+\backslash
+textit{#1}}
+\end_layout
+
+\begin_layout Standard
+and
+\change_deleted -712698321 1667119063
+write
+\change_inserted -712698321 1667127914
+add the custom formatting
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667127914
+IndexDef
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+ to the respective entry settings dialog.
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667119123
+
+\series bold
+my entry|IndexDef
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1667119123
+in the index entry.
+\begin_inset Index idx
+range none
+pageformat default
+status open
+
+\begin_layout Plain Layout
+Dummy entries !
+ my entry|IndexDef
+\end_layout
+
+\end_inset
+
+ The advantage is that,
+ i
+\change_inserted -712698321 1667127963
+This will cause all page references that use this custom format to be printed in italics.
+ I
+\change_unchanged
+f you change your mind later or if your publisher insists that definitions must not be italic but bold,
+ you just need to change the macro in the preamble,
+ not every single index entry.
+\change_inserted -712698321 1667118842
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667118842
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667119415
+
+\series bold
+Note:
+
+\series default
+ If you use the index processor
+\family sans
+xindy
+\family default
+ rather than
+\family sans
+makeindex or xindex
+\family default
+ (see section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:Index-Program"
+nolink "false"
+
+\end_inset
+
+),
+ such custom macros do not work out of the box.
+ This is because
+\family sans
+xindy
+\family default
+ requires you to define semantic elements in the xindy
+\begin_inset Quotes eld
+\end_inset
+
+module
+\begin_inset Quotes erd
+\end_inset
+
+ (style file) you use before they can be used.
+ In the given case,
+ this would require to add the following line in the module file:
+\end_layout
+
+\begin_layout Verbatim
+
+\change_inserted -712698321 1667119381
+
+(markup-locref :open "
+\backslash
+IndexDef{" :close "}" :attr "IndexDef")
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667119392
+Please refer to
+\begin_inset CommandInset citation
+LatexCommand cite
+after "p. 678 ff."
+key "latexcompanion"
+literal "true"
+
+\end_inset
+
+ for details.
+\end_layout
+
+\end_inset
+
+
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+You can also change the layout
+\change_deleted -712698321 1667128294
+for
+\change_inserted -712698321 1667128294
+of
+\change_unchanged
+ the whole index.
+ For example,
+
+\change_deleted -712698321 1667128049
+we
+\change_inserted -712698321 1667128050
+if you
+\change_unchanged
+ mark
+\change_deleted -712698321 1667128052
+ed
+\change_unchanged
+ the index list box
+\change_deleted -712698321 1667128093
+of this document
+\change_unchanged
+ as bold
+\change_inserted -712698321 1667128098
+,
+ you will
+\change_deleted -712698321 1667128100
+ to
+\change_unchanged
+get a bold font for all index entries.
+
+\change_inserted -712698321 1667128129
+In general,
+ however,
+ it is better (and required for
+\change_deleted -712698321 1667128131
+For
+\change_unchanged
+more advanced tasks
+\change_inserted -712698321 1667128135
+)
+\change_unchanged
+
+\change_deleted -712698321 1667128139
+you have
+\change_unchanged
+to set up a so-called
+\emph on
+Index Style File
+\change_inserted -712698321 1667128153
+
+\emph default
+ (
+\family sans
+makeindex
+\family default
+),
+
+\emph on
+module
+\emph default
+ (
+\family sans
+xindy
+\family default
+) or
+\emph on
+config file
+\emph default
+ (
+\family sans
+xindex
+\family default
+) to determine the formatting;
+\change_deleted -712698321 1667119655
+,
+
+\change_unchanged
+
+\change_deleted -712698321 1667119672
+see
+\change_inserted -712698321 1667119674
+please refer to
+\change_unchanged
+ the
+\family sans
+makeindex
+\change_inserted -712698321 1667119661
+,
+
+\change_unchanged
+
+\family default
+
+\change_deleted -712698321 1667119662
+or
+\change_unchanged
+
+\family sans
+xindy
+\family default
+
+\change_inserted -712698321 1667119665
+or
+\family sans
+xindex
+\family default
+
+\change_unchanged
+documentation
+\change_inserted -712698321 1667119667
+s
+\change_unchanged
+ for details,
+
+\change_inserted -712698321 1667119778
+
+\begin_inset CommandInset citation
+LatexCommand cite
+key "makeindex,xindex,xindy"
+literal "true"
+
+\end_inset
+
+
+\change_deleted -712698321 1667119778
+
+\begin_inset CommandInset citation
+LatexCommand cite
+key "makeindex,xindy"
+literal "true"
+
+\end_inset
+
+
+\change_unchanged
+.
+
+\change_inserted -712698321 1667128459
+ There are also some \SpecialChar LaTeX
+ packages available that ease such formatting,
+ see
+\begin_inset Flex URL
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667128460
+
+https://ctan.org/topic/index
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Subsection
+
+\change_inserted -712698321 1667119819
+Special Characters in Index Entries
+\begin_inset CommandInset label
+LatexCommand label
+name "subsec:Index-Special-Characters"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667128522
+As already mentioned above,
+ some characters have a special meaning in index entries,
+ namely:
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120139
+!
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+,
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120150
+@
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+,
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120158
+\begin_inset Quotes qld
+\end_inset
+
+
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+,
+ and
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120173
+|
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+.
+ If you use them literally,
+ you might get surprising results or even a non-working index.
+ In any case,
+ you will not get the character itself.
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1667120574
+In order to use these characters in inset entries,
+ they have to be
+\begin_inset Quotes els
+\end_inset
+
+escaped
+\begin_inset Quotes ers
+\end_inset
+
+,
+ that is prepended by a character that tells the index processor to treat this character without its special meaning.
+ By default,
+ the escape character is
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120286
+\begin_inset Quotes qld
+\end_inset
+
+
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+ (but this can be changed).
+ So enter
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120326
+\begin_inset Quotes qld
+\end_inset
+
+!
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+,
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120329
+\begin_inset Quotes qld
+\end_inset
+
+@
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+,
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120332
+\begin_inset Quotes qld
+\end_inset
+
+
+\begin_inset Quotes qrd
+\end_inset
+
+
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+,
+ or
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1667120335
+\begin_inset Quotes qld