LyXHow to insert PDF text links?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Konchock_Dawa
Posts: 3
Joined: Wed Jun 22, 2016 10:15 pm

How to insert PDF text links?

Post by Konchock_Dawa »

Hi,

Total noob question but I can't seem to figure out how to make Lyx create a link from one part of the PDF file to another. I've turned on "Use Hyperref Support" and played around with labels and cross-references, which doesn't seem to be the answer. What am I missing here?

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

Re: How to insert PDF text links?

Post by scottkosty »

Can you describe exactly what you want to do? What do you mean from one "part" to another? What would you like the reader to be able to click on? A word? And where exactly would you like that reader to be taken to? Another word? A figure? A reference?
Konchock_Dawa
Posts: 3
Joined: Wed Jun 22, 2016 10:15 pm

How to insert PDF text links?

Post by Konchock_Dawa »

scottkosty wrote:Can you describe exactly what you want to do?
Yeah, basically I'm transcribing a chemistry lab notebook where I reference different samples that my group has made. I'd like to be able to click on, say, "sample 3" and immediately be taken to the top of the section that describes how that sample was made (or perhaps opens the document at that section in a new window?), if possible.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: How to insert PDF text links?

Post by scottkosty »

Create a label in the section that you want the reader to be taken to. Click where you want and go to Insert > Label and give it a name. For example "sec:special". Then go to where you want the text. Then do ctrl + L to a red box to enter LaTeX. Enter \hyperref[sec:special]{click on this}

There are many different ways to format links and give them color and underline, etc. I think the hyperref package documentation is the place to look for those options.
Konchock_Dawa
Posts: 3
Joined: Wed Jun 22, 2016 10:15 pm

Re: How to insert PDF text links?

Post by Konchock_Dawa »

Thank you!!!
Post Reply