]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to make sure \code always uses roman (non-italic) text.
authorFred Drake <fdrake@acm.org>
Fri, 30 Jun 2000 17:57:05 +0000 (17:57 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 30 Jun 2000 17:57:05 +0000 (17:57 +0000)
Change a 1.6 version number used in a an example in a comment to 2.0.

Doc/texinputs/python.sty

index 663795623822a91a1936a5349171171ccef867d2..eed9377a10dc87fe02082e644d1cdd0fd3b6be04 100644 (file)
 % Also for consistency: spell Python "Python", not "python"!
 
 % code is the most difficult one...
-\newcommand{\code}[1]{{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}%
+\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`\%}%
 \texttt{#1}}}
 
 \newcommand{\bfcode}[1]{\code{\bfseries#1}} % bold-faced code font
 %
 % Example:
 %  \versionadded{1.5.2}
-%  \versionchanged[short explanation]{1.6}
+%  \versionchanged[short explanation]{2.0}
 %
 \newcommand{\versionadded}[1]{%
   {  New in version #1.  }}