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. Just for the fun of it, I even put it inside a math macro, see the attached file for an example. /Christian -- Christian Ridderström http://www.md.kth.se/~chr
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \newcommand\myindex[1]{\emph{#1}\index{#1}} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset FormulaMacro \newcommand{\MI}[1]{\textrm{\myindex{#1}}} {#1} \end_inset \layout Standard some \emph on text \emph default \begin_inset LatexCommand \index{text} \end_inset \layout Standard Another \begin_inset ERT status Collapsed \layout Standard \backslash myindex{word} \end_inset that is indexed. \layout Standard Yet a third \begin_inset Formula $\MI{indexed\, item}$ \end_inset that will go into the index. \layout Standard \begin_inset LatexCommand \printindex{} \end_inset \the_end