I have to create a hyperlink which opens two links with one click.

Is it possible using LaTeX?

I'm using \href{<url>}{Open two links}.

  • 3
    How is your reader set up to jump to multiple pages simultaneously? – Mico Oct 4 '13 at 4:14

That would be a web question, not a TeX one, I guess. You can't really cause your reader to open multiple pages at once. I think even if you can do that it can be categorized as suspicious behavior by any anti-virus software. :)

You may want to try using javascript to do this. I really don't think, it will work, but that's the only way I can think of. The other option is to use a web side solution (for example a webpage and pop-ups).

| improve this answer | |
  • Found this stackoverflow.com/questions/7064998/…. I was just wondering if Latex have some feature for this. Anyway, thanks. – TheKojuEffect Oct 4 '13 at 15:36
  • Yes, I was referring to this. You can use javascript in some LaTeX versions as well, but I don't think that the windows.open command works that way. – masu Oct 4 '13 at 17:53

The PDF format knows nested actions. hyperref supports this by option nextacrtionraw for \href in some rudimentary manner:



  ]{http://tex.stackexchange.com/}{Two links}


However, a PDF viewer is needed that supports that feature. And the action code is given in raw PDF syntax.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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