From a610f9f8c18f4cdc719f6abe9c44f8cdb235c0be Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 3 Dec 1997 03:42:39 +0000 Subject: [PATCH] Added environment for defining PyVM instructions. This is only used in the libdis.tex file I'm about to check in. I'm not sure this is really an optimal solution yet, but it may be the best alternative. It avoids describing the instructions as either data items or functions. This change was discussed with Guido. (Guido: Take a look at the LaTeX output for this; if this is reasonable I'll go ahead and update the perl code in myformat.perl to match.) --- Doc/myformat.sty | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/myformat.sty b/Doc/myformat.sty index e17c3f9e81..0a42b40acc 100644 --- a/Doc/myformat.sty +++ b/Doc/myformat.sty @@ -161,6 +161,12 @@ \let\enddatadesc\endfulllineitems +% opcodedesc should be called as an \begin{opcodedesc} ... \end{opcodedesc} +\newcommand{\opcodeline}[2]{\item[\code{#1\quad\varvars{#2}}]\ttindex{#1}} +\newcommand{\opcodedesc}[2]{\fulllineitems\opcodeline{#1}{#2}} +\let\endopcodedesc\endfulllineitems + + % Define \dataitem{name}: define a data item \newcommand{\dataitem}[1]{% \ttindex{#1}% -- 2.50.1