# Is it possible to make LyX generate clickable hyperlinks into the PDF result?

Is there a way in LyX to set up a) a reference to a web resource by URL, b) a reference to another location in the same document, in a manner that turns the reference to a clickable link in the resulting PDF?

From the LyX manuals, it seems that this is not possible directly with LyX commands and buttons, but this sounds odd. If it’s not possible, what’s the simplest way of doing this via insertion of TeX code?

-
Doing it directly in LaTeX is as simple as `\href[options]{URL}{text}`, see also the other macros for similar purposes tug.org/applications/hyperref/manual.html#x1-130004. –  N.N. Apr 2 '12 at 8:05
Note that you’ll need `hyperref` to do this. –  Tobi Apr 2 '12 at 8:21

According to the LyX FAQ, you have to enable `hyperref` support in the document settings under PDF properties.

-
Thanks for the pointer, but I still don’t see how to make it work. In setting up a reference, I don’t see any option for making it a hyperlink. –  Jukka K. Korpela Apr 2 '12 at 11:03
@JukkaK.Korpela That happens automatically. With `hyperref` enabled, all cross references, citations and URLs (inserted with Insert --> URL) are turned into clickable links in the PDF. –  Torbjørn T. Apr 2 '12 at 11:33
Works for external links on Adobe Reader (but oddly not in Foxit Reader). For internal links, i.e. cross-references (defined as Formatted reference, right? other options don’t seem to make sense here). –  Jukka K. Korpela Apr 2 '12 at 11:51
@JukkaK.Korpela Perhaps Foxit has an option for disabling hyperlinks. Works fine here (note, only the number is hyperlinked in a formatted reference, not the preceding text, e.g. "equation" in "equation (1)" is not clickable). Why wouldn't other options make sense? –  Torbjørn T. Apr 2 '12 at 12:26
OK, thanks, I guess need to study the LyX cross-referencing more. –  Jukka K. Korpela Apr 2 '12 at 13:53