comparison Doc/texinputs/python.sty @ 26015:5be5c84dea23 legacy-trunk

Thinking on comp.text.tex seems to be that it's better to override \@makefntext than \@footnotetext, so we'll do that instead.
author Fred Drake <fdrake@acm.org>
date Mon, 04 Nov 2002 16:29:31 +0000
parents d812b8aaefb3
children d177dd0ca8f7
comparison
equal deleted inserted replaced
26014:d424558d24f9 26015:5be5c84dea23
135 \newcommand{\py@HeaderFamily}{\sffamily} 135 \newcommand{\py@HeaderFamily}{\sffamily}
136 136
137 % Set up abstract ways to get the normal and smaller font sizes that 137 % Set up abstract ways to get the normal and smaller font sizes that
138 % work even in footnote context. 138 % work even in footnote context.
139 \newif\ifpy@infootnote \py@infootnotefalse 139 \newif\ifpy@infootnote \py@infootnotefalse
140 \let\py@oldfootnotetext\@footnotetext 140 \let\py@oldmakefntext\@makefntext
141 \def\@footnotetext#1{% 141 \def\@makefntext#1{%
142 \bgroup% 142 \bgroup%
143 \py@infootnotetrue 143 \py@infootnotetrue
144 \py@oldfootnotetext{#1}% 144 \py@oldmakefntext{#1}%
145 \egroup% 145 \egroup%
146 } 146 }
147 \def\py@defaultsize{% 147 \def\py@defaultsize{%
148 \ifpy@infootnote\footnotesize\else\normalsize\fi% 148 \ifpy@infootnote\footnotesize\else\normalsize\fi%
149 } 149 }