mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
\regexp{}: Rewritten to look like Freidl's book. Too rip-off?
\envvar{}: Bow to font-lock-mode a few times...!
This commit is contained in:
parent
3b5da76182
commit
94fac130bb
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue