Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/upquote

upquote -- upright-quote and grave-accent glyphs in verbatim

Authors: Michael A. Covington, Frank Mittelbach, Markus G. Kuhn

Released under the LaTeX Project Public License v1.3c or later
See http://www.latex-project.org/lppl.txt

This 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.

Down­load the con­tents of this pack­age in one zip archive (162.8k).

up­quote – Show "re­al­is­tic" quotes in ver­ba­tim

Typewriter-style fonts are best for pro­gram list­ings, but Com­puter Modern Typewriter prints ` and ' as bent open­ing and clos­ing sin­gle quotes. Other fonts, and most pro­gram­ming lan­guages, print ` as a grave ac­cent and ' up­right; ' is used both to open and to close quoted strings.

The pack­age switches the type­writer font to Com­puter Modern Typewriter in OT1 en­cod­ing, and mod­i­fies the be­haviour of ver­ba­tim, ver­ba­tim*, \verb, and \verb* to print in the “` and ' way”. It does this­re­gard­less of other fonts or en­cod­ings in use, so long as the pack­age is loaded af­ter the other fonts were.

The pack­age does not af­fect \tt, \texttt, etc.

Li­cense The Project Public Li­cense 1.2
Main­tainerMichael Cov­ing­ton (in­ac­tive)
Frank Mit­tel­bach
Markus Kuhn
Con­tained inTeX Live as up­quote
MiKTeX as up­quote
Topics ver­ba­tim type­set­ting, etc.
Guest Book Sitemap Contact Contact Author