diff options
author | Fred Drake <fdrake@acm.org> | 1998-07-23 21:41:02 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-07-23 21:41:02 (GMT) |
commit | 5420f3321da370bf75bd422ced8a53dcb45b684b (patch) | |
tree | c43888eedabd0b7792eb21957feb34a84148940c /Doc/texinputs | |
parent | cf0fb8bfeef0cbbf00b99c272f6de8c3d48573e8 (diff) | |
download | cpython-5420f3321da370bf75bd422ced8a53dcb45b684b.zip cpython-5420f3321da370bf75bd422ced8a53dcb45b684b.tar.gz cpython-5420f3321da370bf75bd422ced8a53dcb45b684b.tar.bz2 |
\textunderscore: Re-define with a width that's more appropriate for the
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.)
Diffstat (limited to 'Doc/texinputs')
-rw-r--r-- | Doc/texinputs/python.sty | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 41db7ef..2074006 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -397,6 +397,12 @@ {\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 |