Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3d5fc5

Browse files
committed
Add AMK's seealso environment that is now used in the library manual
at some places.
1 parent e47da0a commit e3d5fc5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/myformat.sty

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,14 @@
215215
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}}
216216

217217
\newcommand{\sectcode}[1]{{\tt #1}}
218+
219+
% Cross-referencing (AMK)
220+
% Sample usage:
221+
% \begin{seealso}
222+
% \seemodule{rand}{Uniform random number generator}; % Module xref
223+
% \seetext{{\em Encyclopedia Britannica}}. % Ref to a book
224+
% \end{seealso}
225+
226+
\newenvironment{seealso}[0]{{\bf See Also: }}{\par}
227+
\newcommand{\seemodule}[2]{\ref{module-#1}: {\tt #1} (#2)}
228+
\newcommand{\seetext}[1]{\par{#1}}

0 commit comments

Comments
 (0)