[pdftex] Backtick producing a wrong character code in PDF output
Ilya Zakharevich
nospam-abuse at ilyaz.org
Fri Jan 28 21:01:05 CET 2022
On Fri, Jan 28, 2022 at 07:42:55PM +0100, Reinhard Kotucha wrote:
> > The problem is that after \verb|`|, it seems that the generated glyph
> > is marked as U+2018.
> Could you try \usepackage{upquote} ?
Did you notice that I do not complain about “the shape of the glyph”?
I discuss only how cut-and-paste, search etc. would behave.
(It seems that Adobe Acrobat is special-casing font “Tt”. Should
not PDFTeX do this instead when it marks glyphs with character
codes in PDF?)
Anyway — thanks for your suggestion. However:
`upquote´ DOES change things — but only ½ of the behaviour (with
\verb, but not with \texttt). The docs say
This does not affect \tt, \texttt, etc.
so the code excerpts in \footnote⸣s etc. are not affected by this package.
Moreover, tons of existing documents with code excerpts are written
without using `upquote´. Should they all be modified to special-case
PDF output?
Thanks,
Ilya
More information about the pdftex
mailing list.