% Macros for HTML.
% Copyright (C) 1993, 1994 Gary Houston
% This program may be copied and modified under the terms of the 
% GNU General Public License version 2.

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{gfhtml}[1994/08/13 gf HTML class]

\renewcommand{\@date}{\empty}
\renewcommand{\@author}{\empty}

\DeclareOption*{%
  \PassOptionsToClass{\CurrentOption}{article}%
}
\ProcessOptions

\LoadClass{article}

\RequirePackage{gftext}
\RequirePackage{gfstructure}
\RequirePackage{gfdisplay}

% URLs are usually too wide, and whitespace should not be stretched, so...
\raggedright

% Seperate paragraphs with blank space, no indentation.  \raggedright also
% suppresses indentation.
\parindent 0pt
\parskip 9pt

% Print the document header.  This may be redefined by smallsects.sty.
\renewcommand\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}
    {\LARGE \@title \par}%
    \if\empty\@date\else
      {\par\large\@date}%
    \fi
  \end{center}
  \par
  \vskip 1.5em%
}

\long\def\address#1{\textit{#1}}
\newcommand{\anchor}[1]{#1}

% The hyphenation character is changed from "-" to "/" when typesetting
% URLs.
\newcommand{\url}[1]{\code{URL}{\hyphenchar\font=`\/<#1>\hyphenchar\font=`\-}}

\newcommand{\urn}[1]{\code{URN}{#1}}
\newcommand{\xref}[1]{(page \pageref{#1})}
\newcommand{\img}[1]{[Image\if\empty#1\else{} \code{IMG}{<#1>}\fi]}
