Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 29897:dbae05c29e93 legacy-trunk
Make it easier to figure out the where a menuselection starts and ends
by controling the font.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 16 Jul 2003 14:01:56 +0000 |
| parents | d177dd0ca8f7 |
| children | 6f15e73b59f2 00453a0508df |
comparison
equal
deleted
inserted
replaced
| 29896:b47a7274ce5c | 29897:dbae05c29e93 |
|---|---|
| 820 \newcommand{\EOF}{{\sc eof}} | 820 \newcommand{\EOF}{{\sc eof}} |
| 821 \newcommand{\NULL}{\constant{NULL}} | 821 \newcommand{\NULL}{\constant{NULL}} |
| 822 \newcommand{\infinity}{\ensuremath{\infty}} | 822 \newcommand{\infinity}{\ensuremath{\infty}} |
| 823 \newcommand{\plusminus}{\ensuremath{\pm}} | 823 \newcommand{\plusminus}{\ensuremath{\pm}} |
| 824 % \menuselection{Start \sub Programs \sub Python} | 824 % \menuselection{Start \sub Programs \sub Python} |
| 825 \newcommand{\menuselection}[1]{{\def\sub{ \ensuremath{>} }#1}} | 825 \newcommand{\menuselection}[1]{\textsf{\def\sub{ \ensuremath{>} }#1}} |
| 826 | 826 |
| 827 % Also for consistency: spell Python "Python", not "python"! | 827 % Also for consistency: spell Python "Python", not "python"! |
| 828 | 828 |
| 829 % code is the most difficult one... | 829 % code is the most difficult one... |
| 830 \newcommand{\code}[1]{\textrm{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}% | 830 \newcommand{\code}[1]{\textrm{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}% |
