summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-03-16 16:08:26 (GMT)
committerFred Drake <fdrake@acm.org>1999-03-16 16:08:26 (GMT)
commit1d8f07acbd9516ed971c38067b0b2977b2f429e6 (patch)
tree0544d74c87d066893f3744977febf7e5ae432da0 /Doc
parent0e11c49f042efcbcd7a8d8a32773a4ca52f4721a (diff)
downloadcpython-1d8f07acbd9516ed971c38067b0b2977b2f429e6.zip
cpython-1d8f07acbd9516ed971c38067b0b2977b2f429e6.tar.gz
cpython-1d8f07acbd9516ed971c38067b0b2977b2f429e6.tar.bz2
Markup for documenting LaTeX macros and environments.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/texinputs/ltxmarkup.sty24
1 files changed, 24 insertions, 0 deletions
diff --git a/Doc/texinputs/ltxmarkup.sty b/Doc/texinputs/ltxmarkup.sty
new file mode 100644
index 0000000..58bb060
--- /dev/null
+++ b/Doc/texinputs/ltxmarkup.sty
@@ -0,0 +1,24 @@
+% Created by Fred L. Drake, Jr. <fdrake@acm.org>, as part of the
+% Python Documentation Project.
+%
+% Define some simple markup for the LaTeX command documentation:
+
+\ProvidesPackage{ltxmarkup}
+\RequirePackage{python} % fulllineitems environment
+
+\newenvironment{envdesc}[2]{
+ \begin{fulllineitems}
+ \item[\code{\e begin\{{\bfseries #1}\}#2}]
+ %\item[\code{\e end\{{\bfseries #1}\}}]
+ \index{#1 environment@\idxcode{#1} environment}
+ \index{environments!#1@\idxcode{#1}}
+}{\end{fulllineitems}}
+
+\newenvironment{macrodesc}[2]{
+ \begin{fulllineitems}
+ \item[\code{\e\bfseries#1}#2]
+ \index{#1@\idxcode{\e #1}}
+}{\end{fulllineitems}}
+
+\newcommand{\env}[1]{\code{#1}}
+\newcommand{\macro}[1]{\code{\e#1}}