summaryrefslogtreecommitdiffstats
path: root/Doc/myformat.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/myformat.sty')
-rw-r--r--Doc/myformat.sty11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index 6785850..e17c3f9 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -215,3 +215,14 @@
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}}
\newcommand{\sectcode}[1]{{\tt #1}}
+
+% Cross-referencing (AMK)
+% Sample usage:
+% \begin{seealso}
+% \seemodule{rand}{Uniform random number generator}; % Module xref
+% \seetext{{\em Encyclopedia Britannica}}. % Ref to a book
+% \end{seealso}
+
+\newenvironment{seealso}[0]{{\bf See Also: }}{\par}
+\newcommand{\seemodule}[2]{\ref{module-#1}: {\tt #1} (#2)}
+\newcommand{\seetext}[1]{\par{#1}}