mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
\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.)
This commit is contained in:
parent
cf0fb8bfee
commit
5420f3321d
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue