summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-12 19:37:03 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-12 19:37:03 (GMT)
commit94fac130bb96dd8510c77eedb32775b974104eb0 (patch)
tree9c79ebd5cfc7112770787d098a1e335d06895066 /Doc/texinputs
parent3b5da761823882d77688597c5f2e347655f83d2d (diff)
downloadcpython-94fac130bb96dd8510c77eedb32775b974104eb0.zip
cpython-94fac130bb96dd8510c77eedb32775b974104eb0.tar.gz
cpython-94fac130bb96dd8510c77eedb32775b974104eb0.tar.bz2
\regexp{}: Rewritten to look like Freidl's book. Too rip-off?
\envvar{}: Bow to font-lock-mode a few times...!
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty13
1 files changed, 9 insertions, 4 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index f281cb5..1608fa1 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