GeneralOpening a PDF File in a new Viewer Window

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
_Joe_
Posts: 5
Joined: Wed Jun 15, 2011 1:26 am

Opening a PDF File in a new Viewer Window

Post by _Joe_ »

Hello all,
I'm working on a Beamer presentation and my bibliography consists of locally stored PDF files. I want to set things up so that my bibliography items are hyperlinks that, when clicked, would open the reference they name on a certain page. I can already achieve this with a line like:

Code: Select all

\href{targetfile.pdf\#.target_page_number}{Reference 1}
With the \href command used from the hyperref package.
The problem is, this command opens the reference in the same instance of the PDF viewer thereby closing my Beamer presentation.
I would like to somehow cause this link to open the target PDF file in a new instance of the PDF viewer.
Is this an issue of configuring the viewer (I'm using Okular) or should I add something to my source code?
Last edited by _Joe_ on Mon Jun 27, 2011 11:56 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

_Joe_
Posts: 5
Joined: Wed Jun 15, 2011 1:26 am

Re: Opening a PDF File in a new Viewer Window

Post by _Joe_ »

Hello? Anyone?
Any help would be appreciated. I'm not sure if an MWE is needed in this case. If it would help someone answer, please tell me and I'll post one.
_Joe_
Posts: 5
Joined: Wed Jun 15, 2011 1:26 am

Re: Opening a PDF File in a new Viewer Window

Post by _Joe_ »

I realized that this is a viewer issue. Adobe Reader doesn't have this issue and it turns out that Okular doesn't have an "Open in a new window" feature.
nep
Posts: 1
Joined: Sun Sep 27, 2020 6:43 am

Opening a PDF File in a new Viewer Window

Post by nep »

Hi Joe, Hi all,

it's an old post but I had the same problem and it deserves an answer.

The \hypersetup gives you the option to set
\hypersetup{
    pdfnewwindow=true,      % links in new PDF window
    % more options 
}
(https://en.wikibooks.org/wiki/LaTeX/Hyp ... Local_file)

It worked for me (using Adobe Acrobat Reader DC) and hopefully will be helpful to some.
Best regards
Post Reply