Hi,
Thank you all! Jürgen's workaround works very well.
Andreas
Gesendet: Samstag, 21. September 2024 um 08:13 Uhr
Von: lyx-users-requ...@lists.lyx.org
An: lyx-users@lists.lyx.org
Betreff: lyx-users Digest, Vol 255, Issue 6
Von: lyx-users-requ...@lists.lyx.org
An: lyx-users@lists.lyx.org
Betreff: lyx-users Digest, Vol 255, Issue 6
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: Cross-reference to figure (Herbert Voss)
2. Re: Cross-reference to figure
(=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=)
3. Re: Cross-reference to figure (Herbert Voss)
4. Re: Cross-reference to figure
(=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=)
----------------------------------------------------------------------
Message: 1
Date: Fri, 20 Sep 2024 20:19:22 +0200
From: Herbert Voss <herbert.v...@fu-berlin.de>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <d8c6be89-dc83-496e-b678-8b3fe4603...@fu-berlin.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Am 20.09.24 um 11:50 schrieb Andreas Plihal via lyx-users:
> Dear community,
> In a KOMA book, I include numerous graphics that I want to refer to
> with cross-references. As soon as I have established an index of
> figures, the numbers in the cross-references are no longer correct.
> They correspond to the outline number of the respective text section.
> The generated page number is also that of the index of figures, not
> that of the graphic.
Looks like a bug in LyX. It puts a \protect before a \label if it is
inside a \caption.
This leads to a "multiply defined label"? problemwith the wrong figure
number.
Put the label after the caption, means? _outside_ of it.? Then you need
to delete the auxiliary files or save, close and reopen the LyX file.
Herbert
------------------------------
Message: 2
Date: Sat, 21 Sep 2024 07:42:26 +0200
From: "=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=" <jspi...@gmail.com>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <b3417bb6fecc9e0c6154dbe4627fc6a5621b1e59.ca...@lyx.org>
Content-Type: text/plain; charset="UTF-8"
Am Freitag, dem 20.09.2024 um 20:19 +0200 schrieb Herbert Voss:
> Put the label after the caption, means? _outside_ of it.? Then you
> need to delete the auxiliary files or save, close and reopen the LyX
> file.
In LyX 2.4, you do not need to do this manually. Go to Document >
Settings > Output (Dokument > Einstellungen > Ausgabe) and select "Put
fragile content out of moving arguments"
("Zerbrechlichen Inhalt aus beweglichen Argumenten verschieben"), and
LyX will take care for you.
--
J?rgen
------------------------------
Message: 3
Date: Sat, 21 Sep 2024 07:55:17 +0200
From: Herbert Voss <herbert.v...@fu-berlin.de>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <a691a7ca-6b98-487d-9b3c-b9c3b1627...@fu-berlin.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Am 21.09.24 um 07:42 schrieb J?rgen Spitzm?ller:
> Am Freitag, dem 20.09.2024 um 20:19 +0200 schrieb Herbert Voss:
>> Put the label after the caption, means? _outside_ of it.? Then you
>> need to delete the auxiliary files or save, close and reopen the LyX
>> file.
> In LyX 2.4, you do not need to do this manually. Go to Document >
> Settings > Output (Dokument > Einstellungen > Ausgabe) and select "Put
> fragile content out of moving arguments"
> ("Zerbrechlichen Inhalt aus beweglichen Argumenten verschieben"), and
> LyX will take care for you.
but a label is not fragile and it is also common that it is inside the
caption.
It shouldn't preceeded by \protect. Then all is fine: inside and outside
Herbert
------------------------------
Message: 4
Date: Sat, 21 Sep 2024 08:13:19 +0200
From: "=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=" <jspi...@gmail.com>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <c7e4be34907d24dd8ea2c9b19da8d21103513a30.ca...@lyx.org>
Content-Type: text/plain; charset="UTF-8"
Am Samstag, dem 21.09.2024 um 07:55 +0200 schrieb Herbert Voss:
> but a label is not fragile and it is also common that it is inside
> the caption. It shouldn't preceeded by \protect. Then all is fine:
> inside and outside
I understand, but that's a different issue (and I need to investigate
why we introduced the protection).
I just wanted to point out here that there is an easier workaround.
--
J?rgen
------------------------------
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 255, Issue 6
*****************************************
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: Cross-reference to figure (Herbert Voss)
2. Re: Cross-reference to figure
(=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=)
3. Re: Cross-reference to figure (Herbert Voss)
4. Re: Cross-reference to figure
(=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=)
----------------------------------------------------------------------
Message: 1
Date: Fri, 20 Sep 2024 20:19:22 +0200
From: Herbert Voss <herbert.v...@fu-berlin.de>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <d8c6be89-dc83-496e-b678-8b3fe4603...@fu-berlin.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Am 20.09.24 um 11:50 schrieb Andreas Plihal via lyx-users:
> Dear community,
> In a KOMA book, I include numerous graphics that I want to refer to
> with cross-references. As soon as I have established an index of
> figures, the numbers in the cross-references are no longer correct.
> They correspond to the outline number of the respective text section.
> The generated page number is also that of the index of figures, not
> that of the graphic.
Looks like a bug in LyX. It puts a \protect before a \label if it is
inside a \caption.
This leads to a "multiply defined label"? problemwith the wrong figure
number.
Put the label after the caption, means? _outside_ of it.? Then you need
to delete the auxiliary files or save, close and reopen the LyX file.
Herbert
------------------------------
Message: 2
Date: Sat, 21 Sep 2024 07:42:26 +0200
From: "=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=" <jspi...@gmail.com>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <b3417bb6fecc9e0c6154dbe4627fc6a5621b1e59.ca...@lyx.org>
Content-Type: text/plain; charset="UTF-8"
Am Freitag, dem 20.09.2024 um 20:19 +0200 schrieb Herbert Voss:
> Put the label after the caption, means? _outside_ of it.? Then you
> need to delete the auxiliary files or save, close and reopen the LyX
> file.
In LyX 2.4, you do not need to do this manually. Go to Document >
Settings > Output (Dokument > Einstellungen > Ausgabe) and select "Put
fragile content out of moving arguments"
("Zerbrechlichen Inhalt aus beweglichen Argumenten verschieben"), and
LyX will take care for you.
--
J?rgen
------------------------------
Message: 3
Date: Sat, 21 Sep 2024 07:55:17 +0200
From: Herbert Voss <herbert.v...@fu-berlin.de>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <a691a7ca-6b98-487d-9b3c-b9c3b1627...@fu-berlin.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Am 21.09.24 um 07:42 schrieb J?rgen Spitzm?ller:
> Am Freitag, dem 20.09.2024 um 20:19 +0200 schrieb Herbert Voss:
>> Put the label after the caption, means? _outside_ of it.? Then you
>> need to delete the auxiliary files or save, close and reopen the LyX
>> file.
> In LyX 2.4, you do not need to do this manually. Go to Document >
> Settings > Output (Dokument > Einstellungen > Ausgabe) and select "Put
> fragile content out of moving arguments"
> ("Zerbrechlichen Inhalt aus beweglichen Argumenten verschieben"), and
> LyX will take care for you.
but a label is not fragile and it is also common that it is inside the
caption.
It shouldn't preceeded by \protect. Then all is fine: inside and outside
Herbert
------------------------------
Message: 4
Date: Sat, 21 Sep 2024 08:13:19 +0200
From: "=?ISO-8859-1?Q?J=FCrgen_Spitzm=FCller?=" <jspi...@gmail.com>
To: lyx-users@lists.lyx.org
Subject: Re: Cross-reference to figure
Message-ID: <c7e4be34907d24dd8ea2c9b19da8d21103513a30.ca...@lyx.org>
Content-Type: text/plain; charset="UTF-8"
Am Samstag, dem 21.09.2024 um 07:55 +0200 schrieb Herbert Voss:
> but a label is not fragile and it is also common that it is inside
> the caption. It shouldn't preceeded by \protect. Then all is fine:
> inside and outside
I understand, but that's a different issue (and I need to investigate
why we introduced the protection).
I just wanted to point out here that there is an easier workaround.
--
J?rgen
------------------------------
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 255, Issue 6
*****************************************
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users