summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-11 02:01:52 (GMT)
committerGreg Ward <gward@python.net>2000-04-11 02:01:52 (GMT)
commit08c68fc82da216a286c4a10e547a7dc60b7c6ef1 (patch)
tree9a11b784486388a87121813017985ed158b82159 /Doc
parentc392caa3904c7f23c82850b38405d9b8d02e7c81 (diff)
downloadcpython-08c68fc82da216a286c4a10e547a7dc60b7c6ef1.zip
cpython-08c68fc82da216a286c4a10e547a7dc60b7c6ef1.tar.gz
cpython-08c68fc82da216a286c4a10e547a7dc60b7c6ef1.tar.bz2
LaTeX macros for the Distutils manuals.
Perhaps these should be added to the standard Python style file?
Diffstat (limited to 'Doc')
-rw-r--r--Doc/texinputs/distutils.sty26
1 files changed, 26 insertions, 0 deletions
diff --git a/Doc/texinputs/distutils.sty b/Doc/texinputs/distutils.sty
new file mode 100644
index 0000000..eb47918
--- /dev/null
+++ b/Doc/texinputs/distutils.sty
@@ -0,0 +1,26 @@
+%
+% LaTeX commands and macros needed for the two Distutils manuals,
+% inst.tex and dist.tex.
+%
+% $Id$
+%
+
+% My gripe list about the Python style files:
+% * I want italics in verbatim environments (verbatim.sty?)
+% * I hate escaping underscores (url.sty fixes this)
+
+% Should these be added to the standard Python doc tools? (They'll be
+% needed for my "Distributing Python Modules" guide, too.)
+\newcommand{\command}[1]{\code{#1}}
+\newcommand{\option}[1]{\textsf{\small{#1}}}
+\newcommand{\filevar}[1]{{\textsl{\filenq{#1}}}}
+\newcommand{\homefile}[1]{\file{\tilde/#1}}
+\newcommand{\comingsoon}{\emph{Coming soon...}}
+\def\package{\module}
+
+% And how about these? Very handy for writing pathnames (tilde for
+% Unix, backslash for DOS/Windows).
+\renewcommand{\tilde}{\raisebox{-0.5ex}{\symbol{126}}}
+\newcommand{\bslash}{\symbol{92}} % XXX only works in tt fonts!
+
+\newcommand{\XXX}[1]{\textbf{**#1**}}