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.

I am trying to create a margin graphic that is linked to a url. So when I click it in the pdf document, the url will open in a browser. I cannot figure out how to do that. My try below does not work out.

\marginpar{
 \href{http://www.arxiv.org}{
 \includegraphics[width=\marginparwidth]{pics/infosymbol_2.jpg}}
} 

Any ideas? Thank in advance! Mark

PS: An error occurred. For some reason it now works out. So this post may be considered obsolete and can be deleted, I guess.

share|improve this question

migrated from stackoverflow.com Nov 26 '11 at 16:01

This question came from our site for professional and enthusiast programmers.

closed as too localized by Werner, lockstep, egreg, Stefan Kottwitz Nov 26 '11 at 16:52

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
What does does not work out mean? Do you get some error message, does the icon appear without the link? Or something else? –  Paŭlo Ebermann Nov 26 '11 at 15:14
    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  Torbjørn T. Nov 26 '11 at 16:19

Browse other questions tagged or ask your own question.