>>X-Injected-Via-Gmane: http://gmane.org/
>>To: [EMAIL PROTECTED]
>>From: Christian Ridderström <[EMAIL PROTECTED]>
>>Subject: Re: Automating italic index entries
>>Date: Wed, 24 Sep 2003 14:45:32 +0200
>>X-Complaints-To: [EMAIL PROTECTED]
>>X-X-Sender: [EMAIL PROTECTED]
>>
>>On Wed, 24 Sep 2003, Paul Medwell wrote:
>>
>>> In my document whenever I insert a word to be put in the index I make it 
>>>   italic (by turning emphasis on).
>>> Is it possible to make words that have been selected as index entries 
>>> automatically italic?
>>
>>I'm not sure exactly what you want...
>>If you only want to 'italize' the word where you insert the actual index, 
>>you can do this using some kind of ERT. Try inserting this into your 
>>preamble
>>
>>      \newcommand\myindex[1]{\emph{#1}\index{#1}}
>>
>>and then use it in your text as follows:
>>
>>      Some \myindex{strange attractors} are...
>>
>>where \myindex{strange attractors} should be in a ERT box.

You could as well redefine this index macro to be the new one, so that
the lyx insert would do what you want, by preserving the old index macro.

>>
>>Just for the fun of it, I even put it inside a math macro, see the 
>>attached file for an example. 

By the way, are there any plans to have for plain macros a mechanism similar
to math macros  ? 

-- 
Jean-Pierre

Reply via email to