Re: Automating italic index entries
On Wed, Sep 24, 2003 at 10:41:03AM +0930, 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? No. You probably need to write some script parsing the *.idx file and replacing the occurances in your *.lyx with suitable markup. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Automating italic index entries
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
Re: Automating italic index entries
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
Re: Automating italic index entries
On Wed, 24 Sep 2003, Jean-Pierre.Chretien wrote: 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. Sure, but then you would have to use \index{something} in ERT whenever you don't want the italics. Personally, I use italics only the first time a new word occur. Btw, if you think typing C-l \myindex{} to create the ERT box is too much, just define a keyboard binding that does that for you. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Automating italic index entries
By the way, are there any plans to have for plain macros a mechanism similar to math macros ? There are probably plans ;-) but I don't know... /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Automating italic index entries
On Wed, Sep 24, 2003 at 02:54:26PM +0200, Jean-Pierre.Chretien wrote: By the way, are there any plans to have for plain macros a mechanism similar to math macros ? Plans... yes. but the LyX core is not there, yet. Moreover, math macros are not nicely implemented, either... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Automating italic index entries
On 2003-09-24, 01:11 GMT, 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? Canonical solution is mentioned in makeindex.dvi (part of your distribution), page 5: \newcommand{\ii}[1]{{\it #1}} and then you can say: \index{gnat|ii} which makes this particular page number italicized. I did not try it, but I think, that you could try to write directly gnat|ii (without quotes) to the particular dialog box of LyX. What does it do? Herbert, don't you think, that this could go to the Tips? Matej -- Matej Cepl, GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
Re: Automating italic index entries
On Wed, Sep 24, 2003 at 10:41:03AM +0930, 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? No. You probably need to write some script parsing the *.idx file and replacing the occurances in your *.lyx with suitable markup. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Automating italic index entries
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
Re: Automating italic index entries
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
Re: Automating italic index entries
On Wed, 24 Sep 2003, Jean-Pierre.Chretien wrote: 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. Sure, but then you would have to use \index{something} in ERT whenever you don't want the italics. Personally, I use italics only the first time a new word occur. Btw, if you think typing C-l \myindex{} to create the ERT box is too much, just define a keyboard binding that does that for you. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Automating italic index entries
By the way, are there any plans to have for plain macros a mechanism similar to math macros ? There are probably plans ;-) but I don't know... /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Automating italic index entries
On Wed, Sep 24, 2003 at 02:54:26PM +0200, Jean-Pierre.Chretien wrote: By the way, are there any plans to have for plain macros a mechanism similar to math macros ? Plans... yes. but the LyX core is not there, yet. Moreover, math macros are not nicely implemented, either... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Automating italic index entries
On 2003-09-24, 01:11 GMT, 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? Canonical solution is mentioned in makeindex.dvi (part of your distribution), page 5: \newcommand{\ii}[1]{{\it #1}} and then you can say: \index{gnat|ii} which makes this particular page number italicized. I did not try it, but I think, that you could try to write directly gnat|ii (without quotes) to the particular dialog box of LyX. What does it do? Herbert, don't you think, that this could go to the Tips? Matej -- Matej Cepl, GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
Re: Automating italic index entries
On Wed, Sep 24, 2003 at 10:41:03AM +0930, 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? No. You probably need to write some script parsing the *.idx file and replacing the occurances in your *.lyx with suitable markup. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Automating italic index entries
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
Re: Automating italic index entries
>>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
Re: Automating italic index entries
On Wed, 24 Sep 2003, Jean-Pierre.Chretien wrote: > 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. Sure, but then you would have to use \index{} in ERT whenever you don't want the italics. Personally, I use italics only the first time a "new" word occur. Btw, if you think typing C-l \myindex{} to create the ERT box is too much, just define a keyboard binding that does that for you. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Automating italic index entries
> > By the way, are there any plans to have for plain macros a mechanism similar > to math macros ? There are probably plans ;-) but I don't know... /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Automating italic index entries
On Wed, Sep 24, 2003 at 02:54:26PM +0200, Jean-Pierre.Chretien wrote: > By the way, are there any plans to have for plain macros a mechanism similar > to math macros ? Plans... yes. but the LyX core is not there, yet. Moreover, math macros are not nicely implemented, either... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Automating italic index entries
On 2003-09-24, 01:11 GMT, 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? Canonical solution is mentioned in makeindex.dvi (part of your distribution), page 5: \newcommand{\ii}[1]{{\it #1}} and then you can say: \index{gnat|ii} which makes this particular page number italicized. I did not try it, but I think, that you could try to write directly "gnat|ii" (without quotes) to the particular dialog box of LyX. What does it do? Herbert, don't you think, that this could go to the Tips? Matej -- Matej Cepl, GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
Automating italic index entries
Hi all, 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? Cheers, Paul
Automating italic index entries
Hi all, 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? Cheers, Paul
Automating italic index entries
Hi all, 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? Cheers, Paul