Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 31417:603a9eaa74e1 legacy-trunk
add \guilabel macro to mark labels that occur in user interfaces
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 23 Jan 2004 08:52:28 +0000 |
| parents | 17ca347303d3 |
| children | 51c3d452af2f |
comparison
equal
deleted
inserted
replaced
| 31415:c380dc29304a | 31417:603a9eaa74e1 |
|---|---|
| 819 \newcommand{\C}{C} | 819 \newcommand{\C}{C} |
| 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 | |
| 825 % \guilabel{Start} | |
| 826 \newcommand{\guilabel}[1]{\textsf{#1}} | |
| 824 % \menuselection{Start \sub Programs \sub Python} | 827 % \menuselection{Start \sub Programs \sub Python} |
| 825 \newcommand{\menuselection}[1]{\textsf{\def\sub{ \ensuremath{>} }#1}} | 828 \newcommand{\menuselection}[1]{\guilabel{{\def\sub{ \ensuremath{>} }#1}}} |
| 826 | 829 |
| 827 % Also for consistency: spell Python "Python", not "python"! | 830 % Also for consistency: spell Python "Python", not "python"! |
| 828 | 831 |
| 829 % code is the most difficult one... | 832 % 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`\%}% | 833 \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`\%}% |
