]> granicus.if.org Git - python/commitdiff
\textunderscore: Re-define with a width that's more appropriate for the
authorFred Drake <fdrake@acm.org>
Thu, 23 Jul 1998 21:41:02 +0000 (21:41 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 23 Jul 1998 21:41:02 +0000 (21:41 +0000)
courier font used in Python code.  This still isn't *good*, but
makes the width about right in most cases.  (Exception: it's now
a little wide in \var words.)

Doc/texinputs/python.sty

index 41db7efd4335e9159075f905f7459f896ff11dae..2074006ff815dfdd4427348876eb404aaf80b2d4 100644 (file)
                                     {\reset@font\normalsize\py@HeaderFamily}}
 
 
+% This gets the underscores closer to the right width; the only change
+% from standard LaTeX is the width specified.
+
+\DeclareTextCommandDefault{\textunderscore}{%
+  \leavevmode \kern.06em\vbox{\hrule\@width.55em}}
+
 % Underscore hack (only act like subscript operator if in math mode)
 %
 % The following is due to Mark Wooding (the old version didn't work with