LyXInternal Link/Cross Reference/Page Jump

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
kymaroon
Posts: 3
Joined: Wed Mar 02, 2011 8:15 pm

Internal Link/Cross Reference/Page Jump

Post by kymaroon »

I would like to be able to link text in one area of my document to text in another area, similar to a table of contents. (This would be something like a miniature table of contents in each section.) In other words, I would like to be able to place a hyperlink on certain text in my document on page 35 that sends the jump to page 75. I've tried using the cross-referencing feature with labels, but I don't want a page number listed next to the original text. Is this possible?

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

d60pmp
Posts: 17
Joined: Wed Mar 09, 2011 1:54 pm

Internal Link/Cross Reference/Page Jump

Post by d60pmp »

Yep, it's possible.
  • In PDF properties select Use hyperref support
  • Insert a label (named XlabelX in this example) in the text you want to link to
  • To create a link to that label add the following in evil red text:
  • [code]\hyperref[XlabelX]{This is a link to the text from earlier}[/code]
  • In your pdf click "This is a link to the text from earlier" and be transported
As far as I'm aware links point to the start of the section or float that you linked to, rather than the specific point in the text, I'll let you play.

More info http://www.tug.org/applications/hyperre ... l#x1-20001

Enjoy.
daimon00
Posts: 1
Joined: Wed Jun 08, 2011 10:37 am

Re: Internal Link/Cross Reference/Page Jump

Post by daimon00 »

Is there any way to workaround this so that you don't have to type that all the time?
Can you define a Macro or something like that?. I used to do this in latex:
\hyperref[fig:label]{Figure~\ref{fig:label}}
What is quite repetitive.

Thanks in advance
Post Reply