
%b. PAV specific  text macros for Hevea
\let\TOPMAT\relax
\def\code{\tt}
\def\endcode{\rm}%

% extra line between paras. Only problem is that we also seem to
% put too much space between list items
\def\par{\@print{

}}

% my mailto tag
\renewcommand\mailto[1]{\@print{mailto:}#1}

%\pound macro
\def\pound{\@print{#}}

% \Tilde macro for use in url's only!
% NB: capital-T tilde: the lowercase one is the math accent
\def\Tilde{\@print{~}}

% macros for my letters and memos
% specials control for letterhead an envelopes
\newenvironment{envelope}{\begin{latexonly}}{\end{latexonly}}
\newenvironment{letthd}{\begin{latexonly}}{\end{latexonly}}
%
% memo macros
\newenvironment{memoto}{\@print{TO:      }}{}
\newenvironment{memosubj}{\@print{SUBJECT: }}{\par\par}
\newenvironment{memodate}{\@print{DATE:    }}{}
\newenvironment{memocc}{\@print{Cc:      }}{}
\newenvironment{memoencl}{\@print{Encl:    }}{}
\newenvironment{memofrom}{\@print{FROM:    }}{}
%
% letter macros
\newenvironment{letterdate}{}{}
\newenvironment{letterto}{}{}
\newenvironment{letterclosing}{}{}
\newenvironment{lettersign}{}{}
\newenvironment{letterps}{\@print{PS: }}{}
\newenvironment{lettercc}{\@print{Cc: }}{}
\newenvironment{letterencl}{\@print{Encl:}}{}
\newenvironment{letteropening}{}{}

\renewcommand{\newline}{

}


%I'm not sure why this is necessary, but something seems wrong with \par
% doesn't seem to work right - see above for a solution
%\texlet\par=\\

% for my letter and memo styles, this puts a blank line before
% paragrphs
\newcommand{\paragraph}[2][]{%
\par
\@open{HEAD}{}%H5
#2%
\@close{HEAD}%
}
\newcommand{\paragraph*}[1]{%
\par
\@open{HEAD}{}%H5
#1%
\@close{HEAD}%
}

