Re: LyX 2.5.0: First tests of cross-references from external files

2026-04-12 Thread Rudi Gaelzer via lyx-users
OK.  Thank you for looking into it.

I'll test again when version 2.5.2 gets distributed by the Fedora repo.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.5.0: First tests of cross-references from external files

2026-04-11 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 11.04.2026 um 09:46 +0200 schrieb Jürgen Spitzmüller
via lyx-users:
> I can see that the ref insets in LyX are rendered as INVALID since
> the external file is only automatically loaded (as hidden document)
> when the document is being exported. Also, after that, a buffer
> update seems to be needed (you can see that the rendering is fixed if
> you add a paragraph break) _after_ exporting the file to PDF.
> I will look into this, but for the time being, assure you have all
> externally referred files open.

This is now fixed in master and will probably be backported to 2.5.2
(too late for forthcoming 2.5.1).

The issue was that these external documents need to be loaded in the
background and their labels initialized (this is why it only worked on
export).

-- 
Jürgen
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.5.0: First tests of cross-references from external files

2026-04-11 Thread Jürgen Spitzmüller via lyx-users
Am Freitag, dem 10.04.2026 um 17:23 -0300 schrieb Rudi Gaelzer via lyx-
users:
> Could you run my tests and verify if you get the same outputs?

I can see that the ref insets in LyX are rendered as INVALID since the
external file is only automatically loaded (as hidden document) when
the document is being exported. Also, after that, a buffer update seems
to be needed (you can see that the rendering is fixed if you add a
paragraph break) _after_ exporting the file to PDF.
I will look into this, but for the time being, assure you have all
externally referred files open.

As to the PDF result, I don't see anything wrong. The only thing I
think can happen is that the stored file name of the external file gets
invalid by renaming or moving that file.

-- 
Jürgen
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


LyX 2.5.0: First tests of cross-references from external files

2026-04-10 Thread Rudi Gaelzer via lyx-users
First of all, many thanks to the developers from implementing the support for 
cross-
references to external documents.  It's been 20+ years since I suggested this 
feature:
https://www.mail-archive.com/[email protected]/msg43282.html[1]
All this time, I've been using the xr and xr-hyper packs and doing the X-refs 
manually.

Now, In my first tests, I've been noticing some strange behavior.  I think I'm 
doing 
everything as per the instructions in section 6.1.1 of the User Guide.

The attached files contain my simple tests.  First I edited test_cross1.lyx 
(TC1).  Then, while 
editing test_cross2.lyx (TC2), I opened TC1 in order to insert the refereces 
into the 
referring document.  The x-refs worked all right.  
More interestingly, if I close all documents and then open only TC2, the x-refs 
will still 
work.  This is how I created the attached test_cross2.pdf.

However, in test_cross3.lyx I inserted x-refs from both TC1 and TC2 and now the 
equation 
numbers from TC2 were rendered weirdly, as you can see in test_cross3.pdf.  
Again, if I 
close everything and then open only TC3, the equation numbers seem to be 
identified, 
despite the ugly red boxes, but the renderization of the references from TC2 
are once 
again weird.

Could you run my tests and verify if you get the same outputs?

In fact, I'm trying to employ the feature with a new text I'm editing right 
now, which refers 
to several equations in several very large earlier documents.  In this 
"real-world" usage 
case, the behavior is even weirder. 
At first, with only two docs being referred-to, the x-refs seemed to work, but 
after some 
additional text and refs from a third doc were included, the feature stopped 
working 
altogether, regardless on whether I open all documents or not.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



[1] https://www.mail-archive.com/[email protected]/msg43282.html


test_cross2.lyx
Description: application/lyx


test_cross1.lyx
Description: application/lyx


test_cross3.lyx
Description: application/lyx


test_cross2.pdf
Description: Adobe PDF document


test_cross3.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users