Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46346ec

Browse files
committed
Try to make sure \code always uses roman (non-italic) text.
Change a 1.6 version number used in a an example in a comment to 2.0.
1 parent 25e1726 commit 46346ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@
710710
% Also for consistency: spell Python "Python", not "python"!
711711

712712
% code is the most difficult one...
713-
\newcommand{\code}[1]{{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}%
713+
\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`\%}%
714714
\texttt{#1}}}
715715

716716
\newcommand{\bfcode}[1]{\code{\bfseries#1}} % bold-faced code font
@@ -838,7 +838,7 @@
838838
%
839839
% Example:
840840
% \versionadded{1.5.2}
841-
% \versionchanged[short explanation]{1.6}
841+
% \versionchanged[short explanation]{2.0}
842842
%
843843
\newcommand{\versionadded}[1]{%
844844
{ New in version #1. }}

0 commit comments

Comments
 (0)