From: Fred Drake Date: Thu, 12 Mar 1998 19:37:03 +0000 (+0000) Subject: \regexp{}: Rewritten to look like Freidl's book. Too rip-off? X-Git-Tag: v1.5.1~384 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94fac130bb96dd8510c77eedb32775b974104eb0;p=python \regexp{}: Rewritten to look like Freidl's book. Too rip-off? \envvar{}: Bow to font-lock-mode a few times...! --- diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index f281cb5c5c..1608fa1a64 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -481,11 +481,16 @@ \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