Re: Index question

2013-04-08 Thread Wolfgang Engelmann
Am Sonntag, 7. April 2013, 21:12:23 schrieb Wolfgang Engelmann:


I made up a minimal example which shows 

1. both slanted: Anagallis arvensis.  index: Anagallis arvensis

2. slanted/normal: Anagallis arvensis. index: Anagallis arvensis

3. case 2, but index box changed with ctr e: Anagallis arvensisindex:  
Anagallis arvensis

The result (on page 4) is:
Namensverzeichnis
Anagallis arvensis, 2, 3  are upright
Anagallis arvensis, 1  is slanted

although 1 and 3 are \emph in the index box.

just to clarifie what I ment in the following.


by the way, I had forgotten, that the first A in the LyX Menu indicates 
\emph, which helps to see whether a character (eg a space) is \emph. 


Wolfgang

> Am Sonntag, 7. April 2013, 10:35:44 schrieb Jürgen Spitzmüller:
> > Am Sonntag 07 April 2013, 10:27:25 schrieb Wolfgang Engelmann:
> > > I also put a macro in the preamble of the document
> > > %%macro for index nom
> > > \newcommand{\IndexDef}[1]{\textit{#1}}
> > > 
> > > and in the document itself
> > > Kalanchoe|IndexDef
> > > where Kalanchoe is a plant name which should appear in the name
> > > index as italics.
> > > However, the page number appears italic, not the plant name.
> > 
> > Yes, this is what this syntax is supposed to do.
> > 
> > > How should I change the command in the preamble to achieve that?
> > 
> > Normally, it should just work if you select the word and hit Alt+E,
> > i.e. just emphasize it as usual. LyX should then output the following
> > LaTeX code:
> > 
> > \index{Kalanchoe@\emph{Kalanchoe}}
> > 
> > Please post a minimal example file if it doesn't.
> > 
> > Jürgen
> 
> Thanks, Jürgen
> 
> so I made it unnecessarily complicated.
> However, There is one point which gives an error.
> 
> If I create a nom index entry, lets say for
> Acherontia atropos
> I usually connect both words
> {Acherontiaatropos
> create the index entry
> and in the entry I put the space back again.
> However, if the name is already in emph, the entry box becomes emph too
> without being noted. One has to ctr e the box again.
> 
> Anyway, the result in the ind file would look like:
> 
> \begin{theindex}
> 
>   \item \emph{Abraxas miranda}, \hyperpage{94}
>   \item \emph {Acherontia atropos}, \hyperpage{26}
>   \item \emph{Acherontia atropos}, \hyperpage{115}
> (note the space behind \emph {A...)
> and the two Acherontia entrances are not identical, which means, that
> the page backrefs are not put together like
>   \item \emph {Acherontia atropos}, \hyperpage{26}, \hyperpage{115}
> but two Acherontia atropos entrances.
> 
> #
> So here is my proposal:
> if possible, the creation of the nom index entry should never be emph if
> created after an emph word
> (to avoid the necessity to de-emph it).
> 
> I tried to make a min example, but that does not work, because you need
> different pages. What you could do is put the two
>  \item \emph {Acherontia atropos}, \hyperpage{26}
>   \item \emph{Acherontia atropos}, \hyperpage{115}
> in an existing longer document, add the nom index at the end and check
> the outcome.
> An alternative would be, that the nom index entry box becomes slanted
> itself, so that one can see its state and correct it.
> 
> Wolfgang


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


AAAX.20.lyx
Description: application/lyx


Re: Index question

2013-04-07 Thread Wolfgang Engelmann
Am Sonntag, 7. April 2013, 10:35:44 schrieb Jürgen Spitzmüller:
> Am Sonntag 07 April 2013, 10:27:25 schrieb Wolfgang Engelmann:
> > I also put a macro in the preamble of the document
> > %%macro for index nom
> > \newcommand{\IndexDef}[1]{\textit{#1}}
> > 
> > and in the document itself
> > Kalanchoe|IndexDef
> > where Kalanchoe is a plant name which should appear in the name index
> > as italics.
> > However, the page number appears italic, not the plant name.
> 
> Yes, this is what this syntax is supposed to do.
> 
> > How should I change the command in the preamble to achieve that?
> 
> Normally, it should just work if you select the word and hit Alt+E, i.e.
> just emphasize it as usual. LyX should then output the following LaTeX
> code:
> 
> \index{Kalanchoe@\emph{Kalanchoe}}
> 
> Please post a minimal example file if it doesn't.
> 
> Jürgen

Thanks, Jürgen

so I made it unnecessarily complicated.
However, There is one point which gives an error.

If I create a nom index entry, lets say for 
Acherontia atropos
I usually connect both words
{Acherontiaatropos
create the index entry
and in the entry I put the space back again.
However, if the name is already in emph, the entry box becomes emph too 
without being noted. One has to ctr e the box again.

Anyway, the result in the ind file would look like:

\begin{theindex}

  \item \emph{Abraxas miranda}, \hyperpage{94}
  \item \emph {Acherontia atropos}, \hyperpage{26}
  \item \emph{Acherontia atropos}, \hyperpage{115}
(note the space behind \emph {A...)
and the two Acherontia entrances are not identical, which means, that the 
page backrefs are not put together like
  \item \emph {Acherontia atropos}, \hyperpage{26}, \hyperpage{115}
but two Acherontia atropos entrances.

#
So here is my proposal:
if possible, the creation of the nom index entry should never be emph if 
created after an emph word
(to avoid the necessity to de-emph it). 

I tried to make a min example, but that does not work, because you need 
different pages. What you could do is put the two 
 \item \emph {Acherontia atropos}, \hyperpage{26}
  \item \emph{Acherontia atropos}, \hyperpage{115}
in an existing longer document, add the nom index at the end and check the 
outcome. 
An alternative would be, that the nom index entry box becomes slanted 
itself, so that one can see its state and correct it. 

Wolfgang


Re: Index question

2013-04-07 Thread Jürgen Spitzmüller
Am Sonntag 07 April 2013, 10:27:25 schrieb Wolfgang Engelmann:
> I also put a macro in the preamble of the document
> %%macro for index nom
> \newcommand{\IndexDef}[1]{\textit{#1}}
> 
> and in the document itself
> Kalanchoe|IndexDef
> where Kalanchoe is a plant name which should appear in the name index as
> italics.
> However, the page number appears italic, not the plant name. 

Yes, this is what this syntax is supposed to do.

> How should I change the command in the preamble to achieve that?

Normally, it should just work if you select the word and hit Alt+E, i.e. just 
emphasize it as usual. LyX should then output the following LaTeX code:

\index{Kalanchoe@\emph{Kalanchoe}}

Please post a minimal example file if it doesn't.

Jürgen


Index question

2013-04-07 Thread Wolfgang Engelmann
I solved my question by removing all Index-related files such as
.idx .ilg or .ind
fom the 
/tmp/lyx_tmpdir.T15697/lyx_tmpbuf
and saved the document under a new name.

I also put a macro in the preamble of the document 
%%macro for index nom
\newcommand{\IndexDef}[1]{\textit{#1}}

and in the document itself 
Kalanchoe|IndexDef
where Kalanchoe is a plant name which should appear in the name index as 
italics. 
However, the page number appears italic, not the plant name. 
How should I change the command in the preamble to achieve that?

\newcommand{\IndexDef}[1]{\textit{#1}}
>??

Wolfgang


Re: Index question

2013-04-05 Thread Wolfgang Engelmann
Am Freitag, 5. April 2013, 10:17:59 schrieb Wolfgang Engelmann:
> Am Donnerstag, 4. April 2013, 17:36:05 schrieb Wolfgang Engelmann:

sorry, I checked again the dvi file and it shows both index entries. 
However, lyx does not. It chokes with

]
! Extra }, or forgotten \endgroup.
l.3 ...lash {}textit\{Leptinotarsa decemlineata\}}

which is from an index entrance in a "Namensverzeichnis" (index of names):

Leptinotarsa decemlineata@\textit{Leptinotarsa decemlineata}
an alternative for \textit would have been \textemph
both should produce slanted names. 

###But I did here probably something wrong###

I read again 6.6.5 of the user guide of LyX helps:

In general, we encourage you to not format page numbers directly as shown 
above. Instead, you should define a macro in the preamble and use that. 
Maybe you want all page references italic that refer to a definition of the 
indexed term, so that users can easily find definitions. If so, put the 
following in the preamble

\newcommand{\IndexDef}[1]{\textit{#1}}

and write

my entry|IndexDef

in the index entry.
The advantage is that, if you change your mind later or if your publisher 
insists that definitions must not be italic but bold, you just need to 
change the macro in the preamble, not every single index entry.

###I will try this and ask again if I do not succed###

Thanks for your patience,

Wolfgang


Re: Index question

2013-04-05 Thread Wolfgang Engelmann
Am Donnerstag, 4. April 2013, 17:36:05 schrieb Wolfgang Engelmann:

I have experimented a bit in the meantime.

1- If I take out the lyx_tmpdir.T15697/lyx_tmpbuf3$
from  /tmp/
LyX refuses to run my file.

2- If I export my file as plain latex and run

latex myfile
three times and afterward 
bibtex myfile
and 
dvips

the dvi file does not show the 
two index files

although the log file ilg tells me:

This is makeindex, version 2.15 [TeX Live 2012] (kpathsea + Thai support).
Scanning style file /mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/makeindex/nomencl/nomencl.ist...
** Input style error (file = /mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/makeindex/nomencl/nomencl.ist, line = 70):
   -- Unknown specifier lethead_prefix.
** Input style error (file = /mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/makeindex/nomencl/nomencl.ist, line = 71):
   -- Unknown specifier lethead_suffix.
** Input style error (file = /mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/makeindex/nomencl/nomencl.ist, line = 72):
   -- Unknown specifier lethead_flag.
...done (10 attributes redefined, 3 ignored).
Scanning input file Blumenuhr-neu20130314D.20.nlodone (2 entries 
accepted, 0 rejected).
Sorting entriesdone (2 comparisons).
Generating output file Blumenuhr-neu20130314D.20.nlsdone (10 lines 
written, 0 warnings).
Output written in Blumenuhr-neu20130314D.20.nls.
Transcript written in Blumenuhr-neu20130314D.20.ilg.

I am "ratlos" (confused)

Wolfgang

> Could somebody tell me whether I can delete the
> /tmp/lyx_tmpdir.T15697/lyx_tmpbuf3$
> (Debian; Lyx 2.0.5.1)
> 
> This is my problem:
> I have created a keyword index and a names index.
> The names index gives me an error:
> ] [122] [123
>]) (./Blumenuhr-neu20130314BX.20-nem.ind [124
>]
>! Extra }, or forgotten \endgroup.
>l.3 ...lash {}textit\{Leptinotarsa decemlineata\}}
> No error, if I take the names index box at the end of my book
> (komascript) out.
> 
> I tried to localize the error by taking almost all of the text away
> (except title author address and two lines with text)
> 
> I still get an error:
>  \renewcommand\nomname
>   {GLOSSARY ABBREVIATIONS}
> Try typingto proceed.
> If that doesn't work, type  X   to quit.
> 
> since this command is not in the shortened document, and since it
> appears also, if I rename the document and run it again,
> 
> I suspect that some files in the
> /tmp/lyx_tmpdir.T15697/lyx_tmpbuf3$
> are the reason, such as the
> .idx .ilg or .ind
> 
> I would very much appreciate the help of somebody who knows whats going
> on.
> 
> Wolfgang


Index question

2013-04-04 Thread Wolfgang Engelmann
Could somebody tell me whether I can delete the 
/tmp/lyx_tmpdir.T15697/lyx_tmpbuf3$
(Debian; Lyx 2.0.5.1)

This is my problem: 
I have created a keyword index and a names index.
The names index gives me an error:
] [122] [123
   ]) (./Blumenuhr-neu20130314BX.20-nem.ind [124
   ]
   ! Extra }, or forgotten \endgroup.
   l.3 ...lash {}textit\{Leptinotarsa decemlineata\}}
No error, if I take the names index box at the end of my book (komascript) 
out. 

I tried to localize the error by taking almost all of the text away (except 
title author address and two lines with text) 

I still get an error:
 \renewcommand\nomname
  {GLOSSARY ABBREVIATIONS}
Try typingto proceed.
If that doesn't work, type  X   to quit.

since this command is not in the shortened document, and since it appears 
also, if I rename the document and run it again,

I suspect that some files in the 
/tmp/lyx_tmpdir.T15697/lyx_tmpbuf3$
are the reason, such as the 
.idx .ilg or .ind

I would very much appreciate the help of somebody who knows whats going on.

Wolfgang


index question(s)

2009-05-10 Thread John White

I use lyx 1.6.2 on a slackware 12.0 system.

When I finish a brief (article class), lyx makes a beautiful table of 
contents.  It also makes an index.  To make the index, I use the index 
machine, highlighting the cases cited in the brief.  Then I fool around 
to make the second index, which is of statutes cited and then usually a 
third index of "other authorities".  It (the index) is supposed to then 
be printed on the Table of Cases page, following the Table of Contents.  
If I fool and fool with the index entries I can usually get it right.  
However, indexing is the last thing done to a brief, as cases and 
statutes etc are often changed.  And the index prints out in two 
columns.  There ought to be an easier way.  Due to time considerations, 
I usually don't have time to fool with the index page enough.  So I 
index everything using just the index machine and, right before the 
brief is filed, I print it to text, open with Open Office, and then 
manually move the index entries to the required place. This often 
requires that I add a page following the index just so the page 
references are accurate when I later insert the Open Office index. 
Though I much prefer doing the brief in lyx, in part as it is so easy to 
navigate and in part because I can't figure out how to turn off all the 
complicated "help" in Open Office, I don't like this last (indexing) step.


I would like to do the whole brief, including index, in lyx. Does anyone 
have some ideas on how a user not familiar with evil red text 1) I can 
get lyx to print the index to a single column (normal) page and b) how, 
other than going through a time consuming process of adding exclamation 
marks within the index and putting hard blanks at the beginning of some 
of them, I can fairly automatically and simply get three indexes,  
printed out one after the other, i.e. first the cases, then the statutes 
and finally the "other authorities"?  I have seen other references to 
this situation but yet no good, easy answer.


Thanks for taking the time to read through this.  It has been a problem 
for a long time.


John


Re: Index question

2003-07-02 Thread Robin Turner
Rafa García wrote:
Hello!

El Martes, 1 de Julio de 2003 01:22, Robin Turner escribió:

Is it possible to make different words (or forms of the same word) point
to the same index entry while including all the original words in the
index?  For example, I can make "simulacrum" and "simulacra" have the
same entry by usng the same index label, but I can only then have one
word in the index; i.e.,
simulacrum, 6, 8, 16



You can find the solution in the LaTeX documentation. You've got some 
posibilities:

If you want the output something like


simulacra, simulacrum, 6, 8, 16


the only thing you have to do is to use the following keyword in the index 
entry:  "simulacra, simulacrum", every time that word appears. (I think it 
could be a little annoying)
Yes!

However, if you'd like an output like


simulacra - see simulacrum
simulacrum, 6, 8, 16


you always have to use the keyword "simulacrum" wherever you need a reference. 
You only have to add an index entry with the keyword  
"simulacra|see{simulacrum}", or "simulacra!\ |see{simulacrum}", at any place 
in the document (only once).

The word "see" is compulsory. It'll be translated to your language when you 
get the DVI or PDF file.

If you want more information, go to 
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/makeindex.dvi
You have to put the word(s) between brackets in the keyword of the index 
entry. e.g. If you see \index{bites!vegetable}, you have to use the words 
bites!vegetable as keyword.

I wish it help you.


Thanks, this does the trick!  There are some other useful documents on 
the site you mentioned - I'm currentlydownloading the guide to making 
glossaries.

Robin

--
"A strategy is still being formulated."
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Re: Index question

2003-07-02 Thread Jean-Marc Lasgouttes
> "Robin" == Robin Turner <[EMAIL PROTECTED]> writes:

Robin> The single and most annoying thing anyone can do in an index is
Robin> not provide an index. Call me anal retentive, but I even want
Robin> an index in a novel.

Definitely not. The most annoying thing is a bad index, where you
spend time to find nothing.

JMarc


Re: Index question

2003-07-01 Thread Robin Turner
James Frye wrote:
On Tue, 1 Jul 2003, Robin Turner wrote:


or

simulacra - see simulacrum
simulacrum, 6, 8, 16


A bit off the track, but IMHO this is the single most annoying thing
anyone can do in an index.  I would love to have an option in the index
generator that says A and B are equivalent, so both A and B get a list of
the references to either.
I agree, but I can't see a way to do it in makeindex. Having said that ...

The single and most annoying thing anyone can do in an index is not 
provide an index.  Call me anal retentive, but I even want an index in a 
novel.

Robin

--
"A strategy is still being formulated."
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Re: Index question

2003-07-01 Thread James Frye
On Tue, 1 Jul 2003, Robin Turner wrote:

> or
> 
> simulacra - see simulacrum
> simulacrum, 6, 8, 16

A bit off the track, but IMHO this is the single most annoying thing
anyone can do in an index.  I would love to have an option in the index
generator that says A and B are equivalent, so both A and B get a list of
the references to either.

James 



Re: Index question

2003-06-30 Thread Rafa García
Hello!

El Martes, 1 de Julio de 2003 01:22, Robin Turner escribió:
> Is it possible to make different words (or forms of the same word) point
> to the same index entry while including all the original words in the
> index?  For example, I can make "simulacrum" and "simulacra" have the
> same entry by usng the same index label, but I can only then have one
> word in the index; i.e.,
>
> simulacrum, 6, 8, 16
>


You can find the solution in the LaTeX documentation. You've got some 
posibilities:

If you want the output something like

> simulacra, simulacrum, 6, 8, 16

the only thing you have to do is to use the following keyword in the index 
entry:  "simulacra, simulacrum", every time that word appears. (I think it 
could be a little annoying)

However, if you'd like an output like

> simulacra - see simulacrum
> simulacrum, 6, 8, 16

you always have to use the keyword "simulacrum" wherever you need a reference. 
You only have to add an index entry with the keyword  
"simulacra|see{simulacrum}", or "simulacra!\ |see{simulacrum}", at any place 
in the document (only once).

The word "see" is compulsory. It'll be translated to your language when you 
get the DVI or PDF file.

If you want more information, go to 
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/makeindex.dvi
You have to put the word(s) between brackets in the keyword of the index 
entry. e.g. If you see \index{bites!vegetable}, you have to use the words 
bites!vegetable as keyword.

I wish it help you.
Regards,
RAFA.



Index question

2003-06-30 Thread Robin Turner
Is it possible to make different words (or forms of the same word) point 
to the same index entry while including all the original words in the 
index?  For example, I can make "simulacrum" and "simulacra" have the 
same entry by usng the same index label, but I can only then have one 
word in the index; i.e.,

simulacrum, 6, 8, 16

whereas what I would like is either

simulacra, simulacrum, 6, 8, 16

or

simulacra - see simulacrum
simulacrum, 6, 8, 16
(OK, not a wonderful example, since these will appear next to each other 
anyway, but it becomes more useful if I need to have, say, "Albigensian 
- see Cathar").

Thanks,

Robin

--
"A strategy is still being formulated."
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin