comparison Doc/texinputs/python.sty @ 18230:b893d12045cb legacy-trunk

\infinity, \plusminus: New macros to allow us to avoid math mode for these symbols.
author Fred Drake <fdrake@acm.org>
date Sat, 23 Jun 2001 03:11:45 +0000
parents c25876a51f1b
children 6a5ef1994153
comparison
equal deleted inserted replaced
18229:f0361837323d 18230:b893d12045cb
750 \newcommand{\ASCII}{{\sc ascii}} 750 \newcommand{\ASCII}{{\sc ascii}}
751 \newcommand{\Cpp}{C\protect\raisebox{.18ex}{++}} 751 \newcommand{\Cpp}{C\protect\raisebox{.18ex}{++}}
752 \newcommand{\C}{C} 752 \newcommand{\C}{C}
753 \newcommand{\EOF}{{\sc eof}} 753 \newcommand{\EOF}{{\sc eof}}
754 \newcommand{\NULL}{\constant{NULL}} 754 \newcommand{\NULL}{\constant{NULL}}
755 \newcommand{\infinity}{\ensuremath{\infty}}
756 \newcommand{\plusminus}{\ensuremath{\pm}}
755 757
756 % Also for consistency: spell Python "Python", not "python"! 758 % Also for consistency: spell Python "Python", not "python"!
757 759
758 % code is the most difficult one... 760 % code is the most difficult one...
759 \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`\%}% 761 \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`\%}%