Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 699799e

Browse files
committed
Add a couple of comments about the use of \normalsize and
\footnotesize.
1 parent 2394900 commit 699799e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/texinputs/python.sty

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,8 @@
820820
% This weird definition of \var{} allows it to always appear in roman
821821
% italics, and won't get funky in code fragments when we play around
822822
% with fonts. This also works directly in math mode.
823+
% XXX \normalsize is bad in footnotes, though; we need a way to
824+
% determine when we're in a footnote.
823825
\newcommand{\var}[1]{%
824826
\ifmmode%
825827
\hbox{\normalsize\textrm{\textit{#1\/}}}%
@@ -890,7 +892,7 @@
890892
% The \! is a "negative thin space" in math mode.
891893
\newcommand{\regexp}[1]{%
892894
{\tiny$^{^\lceil}\!\!$%
893-
{\normalsize\code{#1}}%
895+
{\normalsize\code{#1}}% XXX should use \footnotesize in footnotes
894896
$\!\rfloor\!$%
895897
}}
896898
\newcommand{\envvar}[1]{%

0 commit comments

Comments
 (0)