Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer

up vote 8 down vote accepted

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

share|improve this answer
    
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
1  
@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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.