Re: Format Page number references

2021-08-28 Thread Herbert Voss




Am 27.08.21 um 16:03 schrieb Andreas Plihal:
I filled the preamble exactly as you recommended - so I didn't have to 
change anything.
But I removed the commands \ index and added "|myA" etc. to the three 
LYX boxes.
The result is unchanged in that I still only get the three keywords 
with the three letters a, b and f in the subject index, but without 
the page number.

Enclosed the LYX and PDF files of a small example.


I was talking about a _short_ example file! Your complete tikz stuff in 
the preamble has

_nothing_ to do with the index problem ...

You are using texindy for the index. My solution works with makeindex.

Herbert


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


Re: Format Page number references

2021-08-26 Thread Herbert Voss

Am 26.08.21 um 17:58 schrieb Andreas Plihal:

First the good news: now no more errors are reported!
But: in the register, the specially defined keywords are now only 
displayed with the respective letters, without the page number as a 
prefix.



my crystal ball says that you have

\newcommand\myA[1]{a}

but not

\newcommand\myA[1]{#1a}

And you do not need the \index command here. YOu can simply add the |myA 
in the

LyX index box.


More help only if you provide a smal LyX example file!

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


Re: Format Page number references

2021-08-25 Thread Herbert Voss



Am 25.08.21 um 21:18 schrieb Andreas Plihal:


thx a lot!
I got this error though:
! Illegal parameter number in definition of \myA.

   1
l.232 \newcommand\myA{#1a}



You didn't read my second mail ...

> 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
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Format Page number references

2021-08-24 Thread Herbert Voss



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





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


Re: Format Page number references

2021-08-24 Thread 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}


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



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


Re: Format page number references

2021-08-19 Thread Andreas Plihal
Hi,

 

first of all: I work in LYX, not LATEX. I can only add some RET code here and there.

 

I have already created an index in LYX. I don't want to change that completely, just supplement it - but not replace it. SOMETIMES I would like to add a letter after the page numbers, depending on WHERE a keyword is.

 

With the key combination Ctrl-E? nothing happens to me.

 

And where should I write the command \renewcommand\thepage{\ arabic{page}a}?

 

I am very grateful for the help. But a little more detailed, please. Because sometimes I can't do a lot with this "telegram style".


 

Greetings Andreas

 

Gesendet: Donnerstag, 19. August 2021 um 14:00 Uhr
Von: lyx-users-requ...@lists.lyx.org
An: lyx-users@lists.lyx.org
Betreff: lyx-users Digest, Vol 99, Issue 5

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: Placing bibliography on last page without page break /
koma-script (Herbert Voss)
2. Re: Placing bibliography on last page without page break /
koma-script (jezZiFeR)
3. Re: Placing bibliography on last page without page break /
koma-script (Herbert Voss)
4. Re: Format page number references (Herbert Voss)


--

Message: 1
Date: Thu, 19 Aug 2021 11:06:12 +0200
From: Herbert Voss 
To: jezZiFeR 
Cc: lyx-users@lists.lyx.org
Subject: Re: Placing bibliography on last page without page break /
koma-script
Message-ID: 
Content-Type: text/plain; charset=utf-8; format=flowed



Am 19.08.21 um 10:20 schrieb jezZiFeR:
> Am 18. Aug. 2021, 19:28 +0200 schrieb Herbert Voss
> :
>
> Am 18.08.21 um 18:03 schrieb jezZiFeR:
>
> thanks for the screenshots!
> I have entered the lines you mentioned in the preamble.
> Nonetheless
> the menu looks different here, I add two screenshots also.
> Could you
> still help?
>
>
> try to put it into "Optionen": heading=mybib
>
> I have no idea what version you are using.
>
> Herbert
>
>
> Thanks again! I use LyX 2.3.6.2 and TeXLive 2021. When I enter the
> line into ?Optionen? I get a large amount of errors, which you could
> find in the protocol (also XeTeX-version etc.) Maybe I should update
> something?

---
! Undefined control sequence.
l.161 \defbibheading
??? {mybib}{%
The control sequence at the end of
---



It is a problem with LyX. It should load biblatex _before_ the user part of
the preamble, but it did it afterwards. This is the reason why
\defbibheading
is unknown. As I already wrote, use

\AtBeginDocument{%
? \defbibheading{mybib}{%
.
?}}


in your documents preamble, then it is defined after loading biblatex

Herbert


--

Message: 2
Date: Thu, 19 Aug 2021 11:22:20 +0200
From: jezZiFeR 
To: Herbert Voss 
Cc: lyx-users@lists.lyx.org
Subject: Re: Placing bibliography on last page without page break /
koma-script
Message-ID: 
Content-Type: text/plain; charset="utf-8"

Am 19. Aug. 2021, 11:06 +0200 schrieb Herbert Voss :
>
>
> Am 19.08.21 um 10:20 schrieb jezZiFeR:
> > Am 18. Aug. 2021, 19:28 +0200 schrieb Herbert Voss
> > :
> >
> > Am 18.08.21 um 18:03 schrieb jezZiFeR:
> >
> > thanks for the screenshots!
> > I have entered the lines you mentioned in the preamble.
> > Nonetheless
> > the menu looks different here, I add two screenshots also.
> > Could you
> > still help?
> >
> >
> > try to put it into "Optionen": heading=mybib
> >
> > I have no idea what version you are using.
> >
> > Herbert
> >
> >
> > Thanks again! I use LyX 2.3.6.2 and TeXLive 2021. When I enter the
> > line into ?Optionen? I get a large amount of errors, which you could
> > find in the protocol (also XeTeX-version etc.) Maybe I should update
> > something?
>
> ---
> ! Undefined control sequence.
> l.161 \defbibheading
> ?? ? ? ? ? ? ? ? ? ?{mybib}{%
> The control sequence at the end of
> ---
>
>
>
> It is a problem with LyX. It should load biblatex _before_ the user part of
> the preamble, but it did it afterwards. This is the reason why
> \defbibheading
> is unknown. As I already wrote, use
>
> \AtBeginDocument{%
> ??\defbibheading{mybib}{%
> .
> ?}}

Thanks again! I have now added:

\AtBeginDocument{%
\defbibheading{mybib}{%
?

in the preamble.

I removed, as I am not sure if

Re: Format page number references

2021-08-19 Thread Herbert Voss



Am 19.08.21 um 09:43 schrieb Andreas Plihal:
How can I format some page references a little differently in the 
index of a KOMA book?
For example, in my book I have exercises, examples and of course 
footnotes. Depending on where a keyword appears, I would like to add 
the letter "a", "b" or "f" after the page number. How can I achieve 
this in LYX?


With ctrl-E  write, for example:

\renewcommand\thepage{\arabic{page}a}

Herbert

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