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 have been using

\usepackage{wallpaper}
\ULCornerWallPaper{0.1}{image.jpg}

I wonder if there is a way to add a hyperlink to the image so that by clicking on the image, a URL opens.

share|improve this question
    
Sorry Marco. I have not. –  Reza Mar 9 '13 at 17:51

1 Answer 1

up vote 2 down vote accepted

Based on the given definition of \ULCornerWallPaper by wallpaper I would define a new command. This new command has an extra mandatory argument. Making the picture "clickable" is done by the command \href.

The package mwe provides the example picture and loads also blindtext for filling text.

\documentclass{article}
\usepackage{mwe}
\usepackage{wallpaper}
\usepackage{hyperref}
\newcommand{\ULCornerWallPaperWithLink}[3]{%
  \AddToShipoutPicture{%
    \AtPageLowerLeft{%
      \parbox[b][\paperheight]{#1\paperwidth}{\href{#2}{%       
        \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
        keepaspectratio]{#3}}%
        \vfill%
      }
    }
  }
}

\ULCornerWallPaperWithLink{0.1}{http://tex.stackexchange.com/}{example-image-a}

\begin{document}
\blindtext[10]
\end{document}
share|improve this answer

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.