Do not \protect stuff in index when we postpone the index

\protect us not needed here and affects sorting
This commit is contained in:
Juergen Spitzmueller 2022-11-04 08:32:34 +01:00
parent d41e0c9231
commit 55870df5c7

View File

@ -132,6 +132,9 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
{
OutputParams runparams(runparams_in);
runparams.inIndexEntry = true;
if (runparams_in.postpone_fragile_stuff)
// This is not needed and would impact sorting
runparams.moving_arg = false;
otexstringstream os;