On Sun, Nov 04, 2007 at 06:30:19PM +0200, Martin Vermeer wrote: > On Sun, Nov 04, 2007 at 04:20:39PM +0100, Jürgen Spitzmüller wrote: > > Michael Gerz wrote:
... > > > http://www.lyx.org/trac/changeset/21403 - Apply \protect more > > > selectively for special phrases > > > > Don't think it's necessary. Martin? > > No. To elaborate: in trunk, the \protect is necessary for a LyX etc. phrase (which converts to \LyX{} etc.) inside an index inset inside a \section paragraph. That's the only place where I have seen it go wrong, and in a funny way: the output is wrong, there is no LaTeX error. (I believe therefore that Index doesn't need its own needprotect over and beyond the one that Section already provides. So we're overdoing it in trunk.) For branch, the patch would have no effect in this situation, as the content of an index inset is entered into a dialog. That means that the _user_ would have to enter \protect\LyX{} in this rather special situation -- any user doing this knows that there be dragons. Like also, if the LyX phrase is not being used elsewhere in the document, it should be defined in the preamble (this does not apply for the other phrases). BTW for old documents containing the word LyX inside an index entry, which was rendered the teletype way in the index, this is now rendered the fancy TeX way. Just posting this for future generations ;-) - Martin