Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 8609:ce295bfacef3 legacy-trunk
Fix the \kbd definition so it didn't leave the courier face on.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 01 Jul 1998 14:49:25 +0000 |
| parents | 79071a4e0eca |
| children | ed8f4e2eb11a |
comparison
equal
deleted
inserted
replaced
| 8608:45f9dffdba3d | 8609:ce295bfacef3 |
|---|---|
| 500 % code is the most difficult one... | 500 % code is the most difficult one... |
| 501 \newcommand{\code}[1]{{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}% | 501 \newcommand{\code}[1]{{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}% |
| 502 \texttt{#1}}} | 502 \texttt{#1}}} |
| 503 | 503 |
| 504 \newcommand{\bfcode}[1]{\code{\bfseries#1}} % bold-faced code font | 504 \newcommand{\bfcode}[1]{\code{\bfseries#1}} % bold-faced code font |
| 505 \newcommand{\kbd}[1]{\tt #1} | 505 \newcommand{\kbd}[1]{\code{#1}} |
| 506 \newcommand{\samp}[1]{`\code{#1}'} | 506 \newcommand{\samp}[1]{`\code{#1}'} |
| 507 % This weird definition of \var{} allows it to always appear in roman | 507 % This weird definition of \var{} allows it to always appear in roman |
| 508 % italics, and won't get funky in code fragments when we play around | 508 % italics, and won't get funky in code fragments when we play around |
| 509 % with fonts. | 509 % with fonts. |
| 510 \newcommand{\var}[1]{\normalsize\textrm{\textit{#1\/}}} | 510 \newcommand{\var}[1]{\normalsize\textrm{\textit{#1\/}}} |
