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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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