CTAN Update: upquote
The upquote.sty LaTeX package changes the glyphs used by the \verb and \verb* macros and the "verbatim" and "verbatim*" environments for ASCII characters 27 and 60 to the "upright quotation mark" and "grave accent" ones required by Unicode, ISO 646, ISO 10646, and many other character set standards. This is particularly useful for typesetting software source code. The previous version 1.1 always used the textcomp package to produce the desired glyphs, which can trigger undesired side effects (use of tctt bitmap font). This new version 1.2 does not load any additional fonts as long as the default cmtt font is used in its original OT1 encoding. Only if the default font encoding or the tt font are changed, then textcomp.sty is loaded and used to select the replacement glyphs, as before. Benefit: the replacement glyphs come again by default all from cmtt, eliminating the unnecessary use of additional T1 fonts, which may exist only as bitmaps, may come with worse Type1 hinting, or cause other printing problems. There is now also PDF documentation.
This package is located at http://mirror.ctan.org/macros/latex/contrib/upquote . More information is at http://www.ctan.org/pkg/upquote (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Rainer Schöpf
upquote – Show "realistic" quotes in verbatim
Typewriter-style fonts are best for program listings, but Computer Modern Typewriter prints ` and ' as bent opening and closing single quotes. Other fonts, and most programming languages, print ` as a grave accent and ' upright; ' is used both to open and to close quoted strings.
The package switches the typewriter font to Computer Modern Typewriter in OT1 encoding, and modifies the behaviour of verbatim, verbatim*, \verb, and \verb* to print in the “` and ' way”. It does thisregardless of other fonts or encodings in use, so long as the package is loaded after the other fonts were.
The package does not affect \tt, \texttt, etc.
Michael Covington (inactive)