-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross-references between subdocuments are broken #54
Comments
@blattms Thanks. I will check what is going on here. |
Seems to be rather tricky: https://ask.libreoffice.org/t/cross-reference-within-a-masterdocument/45922/7 |
This looks like a bug in libreoffice. I created a minimal example, a main file m.fodt and a child file c.fodt. If m.fodt includes a section from c.fodt, using |
Wow, great that you found that. Seems like magic to me. Maybe we should present your test case in the libreoffice bug-tracker or whatever they are using. We need a solution. Doing it manually would be a last (unfortunate) option. The problem that i am seeing is that there is no easy way to find all undefined references. We cannot store the main file and do not know what happens if we split it again. |
@blattms Created a small example at the libreoffice forum Let's see if we get any response there first. |
Seems like the problem is gone for the latest development version of libreoffice. At least for a small test example. Here is what I did to test this: Since I am not able to install the development version on my laptop with Ubuntu 22.04 (too old version of gcc), I installed it in a docker image with Ubuntu 23.10. The problem is that it crashes for the main.fodt on my machine, but I can open smaller documents, and there it seems to fix the problem with references between sub documents. (My default installation of libreoffice on Ubuntu 22.04 is quite old: 7.3.7.2, and for this version I get "Error: Reference not found") |
|
@blattms As I remember the development version did not have a regular version number. However, I have now upgraded my laptop from Ubuntu 22.04 to Ubuntu 23.10 which has libreoffice version 7.6.4.1. But unfortunately I experience the same issue here as with the development version mentioned above. I cannot open main.fodt, it just freezes. So it might be that a bug was fixed (references working) and one bug was introduced (not able to open large documents) at some point between versions 7.3 and 7.6. |
It looks like reference names are not unique, refTable6 appears in 5 different fodt files, for example:
This might make it difficult to reference a table from a different sub-document file :( |
Not sure whether we can resort to bookmarks. See this issue |
Hopefully these reference names are persistent. In that case we can come up with a scheme for their name (e.g. section_5_3__table_1 etc.) and rename them. See this question |
E.g. in ./parts/chapters/subsections/12.3/GRUPNET.fodt there is a reference to figure 12.4 in ./parts/chapters/subsections/12.3/GRUPTREE.fodt which is unkown "Error: Reference not found"
The text was updated successfully, but these errors were encountered: