Thank you all for your replies. My question should have included more details. The cross references are not breaking but pointing to the wrong target. They are almost all cross references to figures, so I'll explain the problem in that context. When the chapters are combined, the figure numbers increment to preserve sequential numbering through the document. If chapter 1 has 10 figures and chapter 2 has 15 figures, the figures in chapter 2 get renumbered 11 - 25 when the chapters are combined. The cross references mostly update correctly, but some end up pointing to the wrong figure. For example, a cross reference in chapter 2 that originally said "as shown in Figure 14" and that should now point to Figure 24 may update to "as shown in Figure 20".
Arrigo - If is see broken references, I will definitely use your method. Dick - thanks for the macro! I think it only finds broken references, but the fragments of the German I learned in college aren't enough for me to quickly read the code comments and the Help text. I'll look at it more tonight. Dave - It is very tempting to drop the cross references, at least when they point to a nearby figure. I've always thought it was overkill to use a cross reference when the referenced figure is only a few centimeters away. There are a very few cases of references to distant figures and we might want to cross reference those - but maybe not. That would mean a lot of manual renumbering, but the problem would be permanently solved. I have to to leave for work. I'll get back to this tonight (western USA). I very much appreciate everyone's input. Francis On Wed, Aug 20, 2025 at 2:37 AM Dave <[email protected]> wrote: > Just a thought and a question of style: how about replacing all cross > references with a simple “for more information see …” in brackets. Cross > references lead to readers jumping about in the text and losing their way. > An old website I was responsible for contained not a single cross > reference, thus forcing people to refer back to the table of contents. > > On Wed 20. Aug 2025 at 09:36, Dick Groskamp <[email protected] > .invalid> > wrote: > > > Op 20-8-2025 om 04:45 schreef F Campos Costero: > > > I have finished reviewing Michele's and Michael's changes to the Calc > > guide > > > and I've prepared a version of each chapter without the copyright > notice > > > and ToC, suitable for combining into the complete book. What is the > best > > > way to combine the chapters to preserve the cross-references? Copy & > > Paste > > > preserves almost all of them, but it is not perfect. Since I can't > find a > > > way to search for cross-references, I have to scan manually and that is > > > very tedious and error prone. I remember Jean Hollis Weber saying that > > > importing into a master document also breaks some cross-references, > > though > > > I have not tried that. The Insert -> File menu item seems to be > intended > > > for importing plain text. It cannot handle figures. > > > > > > Francis > > > > > Jörg Schmidt (([email protected])) once made a macro to search for > > cross-links (Referenzen in German). > > > > He also made an extension UREF_1.1.0.oxt which has the macro. > > > > I do have the file as well as the extension, maybe it can help you out. > > > > Drop me a link where I can send it. > > > > I just searched the Extensions page but can't find it. > > > > (I'm not fully sure, but I believe Jörg is no longer with us) > > > > -- > > DiGro > > ___________________________ > > Apache OpenOffice 4.1.15 (Dutch) and scanned with Ziggo Safe Online > > (F-Secure) > > >
