Am Samstag, den 22.10.2016, 08:53 +0200 schrieb Jürgen Spitzmüller:
> Am Freitag, den 21.10.2016, 16:15 -0700 schrieb Richard Opheim:
> > Whoa. I'm supposed to be able to put |textbf at the end of an index
> > entry tag and get a bolded page number in the index. At least it
> > worked in the pre-2 versions of LyX. Now that I've upgraded to
> > 2.2.2,
> > it doesn't work any more. (See attached file).
> > Windows 10, Memoir class doc.
> 
> Put the "|" in a TeX Mode inset (aka ERT). This prevents it from
> being
> tranformed into a LaTeX macro (\textbar) on output (which is
> necessary
> to get the bar symbol in some font encodings).

Since we now have PassThruChars, it would be easy to treat the special
characters in index entries literally (see attached patch).

This would restore what many people seem to be accustomed to and
expect, to the extend of the (probably few) users that really want a |
character in the index.

What do you think?

Jürgen

> Jürgen
diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc
index fb74215..af5bc16 100644
--- a/lib/layouts/stdinsets.inc
+++ b/lib/layouts/stdinsets.inc
@@ -354,6 +354,7 @@ InsetLayout Index
 	CustomPars            false
 	ForcePlain            true
 	ContentAsLabel        true
+	PassThruChars         @|!
 End
 
 InsetLayout Box

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

Reply via email to