comparison Doc/texinputs/python.sty @ 8726:74ea4dfda82d legacy-trunk

\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.)
author Fred Drake <fdrake@acm.org>
date Thu, 23 Jul 1998 21:41:02 +0000
parents ed8f4e2eb11a
children 99793302d10d
comparison
equal deleted inserted replaced
8725:f7976e02b873 8726:74ea4dfda82d
395 {3.25ex \@plus1ex \@minus .2ex}% 395 {3.25ex \@plus1ex \@minus .2ex}%
396 {-1em}% 396 {-1em}%
397 {\reset@font\normalsize\py@HeaderFamily}} 397 {\reset@font\normalsize\py@HeaderFamily}}
398 398
399 399
400 % This gets the underscores closer to the right width; the only change
401 % from standard LaTeX is the width specified.
402
403 \DeclareTextCommandDefault{\textunderscore}{%
404 \leavevmode \kern.06em\vbox{\hrule\@width.55em}}
405
400 % Underscore hack (only act like subscript operator if in math mode) 406 % Underscore hack (only act like subscript operator if in math mode)
401 % 407 %
402 % The following is due to Mark Wooding (the old version didn't work with 408 % The following is due to Mark Wooding (the old version didn't work with
403 % Latex 2e. 409 % Latex 2e.
404 410