Hi Herbert,
 
thx a lot!
 
I got this error though:
 
! Illegal parameter number in definition of \myA.
<to be read again>
                   1
l.232 \newcommand\myA{#1a}
                          
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.

! LaTeX Error: Command \myA already defined.
               Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 
But the result is partly correct: the first entry defined in this regard is correct, the others are listed in the subject index without a page number.
 

 

Greetings Andreas
 
 
Gesendet: Mittwoch, 25. August 2021 um 14:00 Uhr
Von: lyx-users-requ...@lists.lyx.org
An: lyx-users@lists.lyx.org
Betreff: lyx-users Digest, Vol 100, Issue 2
Send lyx-users mailing list submissions to
lyx-users@lists.lyx.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.lyx.org/mailman/listinfo/lyx-users
or, via email, send a message with subject or body 'help' to
lyx-users-requ...@lists.lyx.org

You can reach the person managing the list at
lyx-users-ow...@lists.lyx.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lyx-users digest..."


Today's Topics:

1. Re: Format Page number references (Herbert Voss)
2. Re: Format Page number references (Herbert Voss)


----------------------------------------------------------------------

Message: 1
Date: Tue, 24 Aug 2021 14:47:27 +0200
From: Herbert Voss <herbert.v...@fu-berlin.de>
To: lyx-users@lists.lyx.org
Subject: Re: Format Page number references
Message-ID: <706c945d-b9ee-ae8b-9f43-76009f044...@fu-berlin.de>
Content-Type: text/plain; charset=utf-8; format=flowed



Am 22.08.21 um 09:37 schrieb Andreas Plihal:
> Hi!
> Maybe I formulated my problem too vaguely, so I'll try again, but this
> time in more detail:
> I have already established an extensive subject index in my KOMA book.
> In order to enforce the DUDEN order in it, I was advised to use the
> index processor texindy. I use that and it works well.
> There are numerous examples, exercises, and footnotes in my book that
> contain a number of key words. If the keyword "resonance frequency" is
> mentioned in a task, it has been shown in the subject index as follows:
> example
> Resonance frequency, 87
> Now an index creator has advised me to add only one letter to the page
> number in the subject index instead of the keywords "example",
> "exercise"or "footnote" in such (numerous!) Cases. In relation to my
> above example, the entry in the subject register should look like this:
> Resonance frequency, 87b
> If the same keyword were mentioned in a footnote, the entry would read:
> Resonance frequency, 87f


Write into the documents preamble

\newcommand\myA{#1a}
\newcommand\myB{#1b}
\newcommand\myF{#1f}


And in the text insert the special entries with the | operator:
\index{frequency|myF}
Then it will get the f in the index as suffix. Or \index{frequency|myB}
for 1b



Herbert




> That would be much more elegant and I could save space in my already
> extensive subject index.
> The question now arises as to how I can achieve this in my LYX
> register. (I have already read the instructions for the text processor
> Makeindex to get an idea of ??how I could implement this change in my
> subject index. Unfortunately, the instructions are a bit too cryptic
> for me, because it is not clear what tags and what variables are.
> Apart from that, I also use the texindy processor ... )
> Please for your help!
> Greetings Andreas
>



------------------------------

Message: 2
Date: Tue, 24 Aug 2021 14:49:51 +0200
From: Herbert Voss <herbert.v...@fu-berlin.de>
To: lyx-users@lists.lyx.org
Subject: Re: Format Page number references
Message-ID: <1b33b8c3-5aa6-706d-24f9-db74a27ef...@fu-berlin.de>
Content-Type: text/plain; charset=utf-8; format=flowed



Am 24.08.21 um 14:47 schrieb Herbert Voss:
>
>
> Am 22.08.21 um 09:37 schrieb Andreas Plihal:
>> Hi!
>> Maybe I formulated my problem too vaguely, so I'll try again, but
>> this time in more detail:
>> I have already established an extensive subject index in my KOMA
>> book. In order to enforce the DUDEN order in it, I was advised to use
>> the index processor texindy. I use that and it works well.
>> There are numerous examples, exercises, and footnotes in my book that
>> contain a number of key words. If the keyword "resonance frequency"
>> is mentioned in a task, it has been shown in the subject index as
>> follows:
>> example
>> Resonance frequency, 87
>> Now an index creator has advised me to add only one letter to the
>> page number in the subject index instead of the keywords "example",
>> "exercise"or "footnote" in such (numerous!) Cases. In relation to my
>> above example, the entry in the subject register should look like this:
>> Resonance frequency, 87b
>> If the same keyword were mentioned in a footnote, the entry would read:
>> Resonance frequency, 87f
>
>
> Write into the documents preamble
>
> \newcommand\myA{#1a}
> \newcommand\myB{#1b}
> \newcommand\myF{#1f}

should be
\newcommand\myA[1]{#1a}
\newcommand\myB[1]{#1b}
\newcommand\myF[1]{#1f}



Herbert

>
>
> And in the text insert the special entries with the | operator:
> \index{frequency|myF}
> Then it will get the f in the index as suffix. Or
> \index{frequency|myB} for 1b
>
>
>
> Herbert
>
>
>
>
>> That would be much more elegant and I could save space in my already
>> extensive subject index.
>> The question now arises as to how I can achieve this in my LYX
>> register. (I have already read the instructions for the text
>> processor Makeindex to get an idea of ??how I could implement this
>> change in my subject index. Unfortunately, the instructions are a bit
>> too cryptic for me, because it is not clear what tags and what
>> variables are. Apart from that, I also use the texindy processor ... )
>> Please for your help!
>> Greetings Andreas
>>
>



------------------------------

Subject: Digest Footer

lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


------------------------------

End of lyx-users Digest, Vol 100, Issue 2
*****************************************
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to