diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-30 22:20:27 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-30 22:20:27 (GMT) |
commit | 699799e6f33788d7bd302e5fea2c86a747a2897a (patch) | |
tree | 3dbf4002aee9c91fd3eda14822f1ad58a25b5e64 /Doc/texinputs/python.sty | |
parent | 2394900a55366c682d16f72a74efe022f063e194 (diff) | |
download | cpython-699799e6f33788d7bd302e5fea2c86a747a2897a.zip cpython-699799e6f33788d7bd302e5fea2c86a747a2897a.tar.gz cpython-699799e6f33788d7bd302e5fea2c86a747a2897a.tar.bz2 |
Add a couple of comments about the use of \normalsize and
\footnotesize.
Diffstat (limited to 'Doc/texinputs/python.sty')
-rw-r--r-- | Doc/texinputs/python.sty | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 0b2c637..2cb2a17 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -820,6 +820,8 @@ % This weird definition of \var{} allows it to always appear in roman % italics, and won't get funky in code fragments when we play around % with fonts. This also works directly in math mode. +% XXX \normalsize is bad in footnotes, though; we need a way to +% determine when we're in a footnote. \newcommand{\var}[1]{% \ifmmode% \hbox{\normalsize\textrm{\textit{#1\/}}}% @@ -890,7 +892,7 @@ % The \! is a "negative thin space" in math mode. \newcommand{\regexp}[1]{% {\tiny$^{^\lceil}\!\!$% - {\normalsize\code{#1}}% + {\normalsize\code{#1}}% XXX should use \footnotesize in footnotes $\!\rfloor\!$% }} \newcommand{\envvar}[1]{% |