hyper-literate/collects/slatex/slatex-code/defun.tex
Robby Findler 9e5d391dfb ...
original commit: 66a62c2f50bd2b8c85867be3e415c6a0b3881f20
2000-05-25 15:55:50 +00:00

25 lines
519 B
TeX

\def\defun#1{\def\defuntype{#1}%
\medbreak
\line\bgroup
\hbox\bgroup
\aftergroup\enddefun
\vrule width .5ex \thinspace
\vrule \enspace
\vbox\bgroup\setbox0=\hbox{\defuntype}%
\advance\hsize-\wd0
\advance\hsize-1em
\obeylines
\parindent=0pt
\aftergroup\egroup
\strut
\let\dummy=}
\def\enddefun{\hfil\defuntype\egroup\smallskip}
%\def\defprocedure{\defun{procedure}}
%\def\defessentialprocedure{\defun{\hbox{%
% \vbox{\hbox{essential}\hbox{procedure}}}}}