Mercurial > cpython-lru_cache-weakref
diff Doc/texinputs/python.sty @ 7670:8e6a58019887 legacy-trunk
\regexp{}: Rewritten to look like Freidl's book. Too rip-off?
\envvar{}: Bow to font-lock-mode a few times...!
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 12 Mar 1998 19:37:03 +0000 |
| parents | 869373fa0bf8 |
| children | d23bfe06175e |
line wrap: on
line diff
--- a/Doc/texinputs/python.sty Thu Mar 12 15:33:05 1998 +0000 +++ b/Doc/texinputs/python.sty Thu Mar 12 19:37:03 1998 +0000 @@ -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
