Tell me more ×
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.

My browser fails to navigate when I click the hyperlink on the produced PDF.

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{"a b c.tex"}
one
two
\end{filecontents*}

\usepackage{listings}
\PassOptionsToPackage{obeyspaces}{url}
\usepackage{hyperref}

\begin{document}
\lstinputlisting[caption={\url{a b c.tex}}]{"a b c.tex"}
\end{document}

The screenshots below tell you the details.

enter image description here

Shortly speaking, how to fix this issue?

Edit:

I used pdflatex from TeX Live 2012. My PDF viewer is Adobe Reader 11 (version 11.0.1). My browser is Google Chrome(Version 24.0.1312.57m).

share|improve this question
It does not help, but it is always a very bad idea to use space in url (and file names). – Lionel MANSUY Feb 15 at 12:17
3  
As a note: this strongly depends on what TeX interpreter you use and which PDF program. I've tested your code with SumatraPDF and Adobe Reader, using PDFLatex to create the PDF and it works fine with both Google Chrome and Mozilla Firefox. – Mythio Feb 15 at 12:28
AFAIK this is a bug in newer versions of Acrobat. – Heiko Oberdiek Feb 15 at 13:41

closed as off topic by mafp, lockstep, Thorsten, Click Me, Willie Wong Feb 15 at 17:00

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.