comparison Doc/texinputs/python.sty @ 7786:6adf917ee773 legacy-trunk

Fix one remaining internal use of \code{} that could use the simpler form.
author Fred Drake <fdrake@acm.org>
date Thu, 02 Apr 1998 16:09:02 +0000
parents b17d200edf62
children 8d4148213cc0
comparison
equal deleted inserted replaced
7785:05692c661434 7786:6adf917ee773
568 \newcommand{\envvar}[1]{% 568 \newcommand{\envvar}[1]{%
569 \$#1% $ <-- bow to font-lock 3 times! 569 \$#1% $ <-- bow to font-lock 3 times!
570 \index{#1@{\$#1}}% $ 570 \index{#1@{\$#1}}% $
571 \index{environment variables!{\$#1}}% $ 571 \index{environment variables!{\$#1}}% $
572 } 572 }
573 \newcommand{\makevar}[1]{#1}
573 \let\character=\samp 574 \let\character=\samp
574 575
575 % constants defined in Python modules or C headers, not language constants: 576 % constants defined in Python modules or C headers, not language constants:
576 \let\constant=\code 577 \let\constant=\sectcode
577 578
578 \newcommand{\manpage}[2]{{\emph{#1}(#2)}} 579 \newcommand{\manpage}[2]{{\emph{#1}(#2)}}
579 \newcommand{\rfc}[1]{RFC #1\index{RFC!RFC #1}} 580 \newcommand{\rfc}[1]{RFC #1\index{RFC!RFC #1}}
580 \newcommand{\program}[1]{\strong{#1}} 581 \newcommand{\program}[1]{\strong{#1}}
581 582