]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make it easier to figure out the where a menuselection starts and ends
authorFred Drake <fdrake@acm.org>
Wed, 16 Jul 2003 14:01:56 +0000 (14:01 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 16 Jul 2003 14:01:56 +0000 (14:01 +0000)
by controling the font.

Doc/html/style.css
Doc/perl/python.perl
Doc/texinputs/python.sty

index a77fab5c5350e091597d919b271b775db5def0c1..c722db36badc59fab5221b2af7bf49738849768d 100644 (file)
@@ -115,6 +115,7 @@ div.note .label         { margin-right: 0.5em;
 .newsgroup              { font-family: avantgarde, sans-serif; }
 .url                    { font-family: avantgarde, sans-serif; }
 .file                   { font-family: avantgarde, sans-serif; }
+.menuselection          { font-family: avantgarde, sans-serif; }
 
 .tableheader            { background-color: #99ccff;
                           font-family: avantgarde, sans-serif; }
index cd04ee5173eff6d4474d41eda0ac29930ec04583..7d50e491ef4cbc9b2cb00e676b3c83fe2e43b815 100644 (file)
@@ -95,7 +95,8 @@ sub do_cmd_textless{ '&lt;' . $_[0]; }
 sub do_cmd_textunderscore{ '_' . $_[0]; }
 sub do_cmd_infinity{ '&infin;' . $_[0]; }
 sub do_cmd_plusminus{ '&plusmn;' . $_[0]; }
-sub do_cmd_menuselection{ $_[0]; }
+sub do_cmd_menuselection{
+    return use_wrappers($_[0], '<span class="menuselection">', '</span>'); }
 sub do_cmd_sub{ ' > ' . $_[0]; }
 
 
index c89cedc3110339ae454db815ddb022c12bab13de..a85bb785316621df0eeb7ddcaca31d206fec9117 100644 (file)
 \newcommand{\infinity}{\ensuremath{\infty}}
 \newcommand{\plusminus}{\ensuremath{\pm}}
 % \menuselection{Start \sub Programs \sub Python}
-\newcommand{\menuselection}[1]{{\def\sub{ \ensuremath{>} }#1}}
+\newcommand{\menuselection}[1]{\textsf{\def\sub{ \ensuremath{>} }#1}}
 
 % Also for consistency: spell Python "Python", not "python"!