LyXFinding cross-references

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Paul Richards
Posts: 13
Joined: Mon Jan 31, 2011 5:16 pm

Finding cross-references

Post by Paul Richards »

Is there a way in LyX to find all the cross-references to a particular label? I use child documents.

I have to restructure my thesis, and two chapters are being merged into one. That means the chapters will become sections, and the sections sub-sections, and so on.
  • Therefore, references to chapter 7 will become section 6.2.
  • Also, my subsubsections will have to be dealt with since I can't have 5 levels of subdivision in my thesis. For example, subsection 7.1.1 will become subsubsection 6.2.1.1. This will happen automatically as a result of demoting the chapter. However, subsubsection 7.1.1.1 will be converted to an un-numbered paragraph, and any references to it will need to be altered to refer to its parent (subsubsection 6.2.1.1 in the new document).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Finding cross-references

Post by scottkosty »

Paul Richards wrote:Is there a way in LyX to find all the cross-references to a particular label? I use child documents.

I have to restructure my thesis, and two chapters are being merged into one. That means the chapters will become sections, and the sections sub-sections, and so on.
  • Therefore, references to chapter 7 will become section 6.2.
  • Also, my subsubsections will have to be dealt with since I can't have 5 levels of subdivision in my thesis. For example, subsection 7.1.1 will become subsubsection 6.2.1.1. This will happen automatically as a result of demoting the chapter. However, subsubsection 7.1.1.1 will be converted to an un-numbered paragraph, and any references to it will need to be altered to refer to its parent (subsubsection 6.2.1.1 in the new document).
I don't know of a way to do this in LyX. Sometimes in these situations a plain text editor is useful. LyX's file format is stored as plain text. So find/replace works fine. You do have to be careful though. If you find yourself doing this often, take a look at:
http://wiki.lyx.org/Examples/FindAmpReplaceLyXFormat

Scott
Post Reply