]> granicus.if.org Git - python/commitdiff
\regexp{}: Rewritten to look like Freidl's book. Too rip-off?
authorFred Drake <fdrake@acm.org>
Thu, 12 Mar 1998 19:37:03 +0000 (19:37 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 12 Mar 1998 19:37:03 +0000 (19:37 +0000)
\envvar{}:  Bow to font-lock-mode a few times...!

Doc/texinputs/python.sty

index f281cb5c5cb673c249bbc69622e5cab5e642ae95..1608fa1a64b741c935876203a5180e07c374bf8a 100644 (file)
 \let\cdata=\code
 
 \newcommand{\mimetype}[1]{{\small\textsf{#1}}}
-\newcommand{\regexp}[1]{$_\lceil$#1$^\rfloor$}
+% The \! is a "negative thin space" in math mode.
+\newcommand{\regexp}[1]{%
+  {\tiny$^{^\lceil}\!\!$%
+   {\normalsize\code{#1}}%
+   $\!\!\rfloor\!$%
+  }}
 \newcommand{\envvar}[1]{%
-  \$#1%
-  \index{#1@{\$#1}}%
-  \index{environment variables!{\$#1}}%
+  \$#1%                                 $ <-- bow to font-lock 3 times!
+  \index{#1@{\$#1}}%                    $
+  \index{environment variables!{\$#1}}% $
 }
 \let\character=\samp