[texhax] What is an "smb:" link, why is \verb| ... | creating it, and how do I stop it?

Uwe Lueck uwe.lueck at web.de
Sat May 17 18:35:02 CEST 2014


Douglas McKenna 17 May 2014 00:05 (CEST!?):
> Here is a MWE that must be viewed as a PDF file. I'm using
> TeXLive 2010 and TeXShop 2.47.
> Notice that I'm not relying upon either the verbatim or
> fancyvrb packages, yet the \verb| ... |
> construction works as advertised and is not complained of by LaTeX.
> 
> %----------------------
> \documentclass{article}
> \begin{document}
> \verb|\Test|
> 
> \verb|\\Test|
> 
> \vskip1em
> Why is the second of the above two lines a clickable link
> (hover over it and it says \verb|smb://Test|
> (as it does right here)) in the eventual PDF file?
> What does ``smb:'' mean?
> If this is a feature (or bug), how do I turn it off (or work around it)?
> \end{document}
> %-----------------------
> 
> Clicking on the link in the eventual PDF causes the Mac Finder
> to issue the following error:

>From this "MWE" code I could not believe the story and ran
the code with pdflatex (under Lubuntu Linux with Debian TeX Live). 
There is _no_ link -- of course, especially without hyperref ...
(with Evince ...)

... but I see the link with `smb://Test' on the

    http://tug.org/pipermail/texhax/2014-May/021171.html

version of your posting -- so TeXShop or that Apple library
pretends to be smart by offering a link for everything that 
looks like link code. In that case you could ignore the 
"problem", just don't click at the "link", other PDF viewers 
are not that "smart."

However, you write that even `\\Test' appears to be a link. 
It is not a link in your posting in its above form.

Perhaps this occurs with \verb because this way your "smart" 
viewer recognizes a "code font" ... and perhaps a pair of 
backslashes is interpreted as belonging to Windows, and `smb:' 
is the "default protocol," as otherwise `http:' is.
Do you get an smb link from \texttt{\string\\boguslink}} too?

--Uwe Lueck



More information about the texhax mailing list