According to p. 881 of the TikZ & PGF manual for version 3.0.1a, the following LaTeX manuscript:
\documentclass{article}
\usepackage{pgfkeys}
\begin{document}
\pgfkeysdefargs{/my key}{#1+#2}{\def\a{#1}\def\b{#2}}
\pgfkeys{/my key=hello+world}
|\a| is \a, |\b| is \b.
\end{document}
should typeset as follows (sans background color):
In other words, it appears the vertical bars serve as verbatim. (This is not the first time that I come across this usage. So far I've ignored it whenever I came across it, but I feel now's a good time to get to the bottom of it.)
However, when I compile this manuscript with pdflatex, the body of the resulting PDF document looks like this:
Why aren't the vertical bars recognized as verbatim markers? And why do they show up as dashes?
This is not a duplicate of this question. This is not about the font but about the fact that the vertical bar is not interpreted as verbatim.


\usepackage[T1]{fontenc}– egreg Jul 16 '17 at 10:41