On Fri, 9 Oct 1998, Michael L. Hall wrote:

> 
> The following gives me errors in version 98.2beta6:
> 
> \documentclass{article}
> \usepackage{html}
> 
> \begin{document}
> 
> \newcommand{\ressection}[1]{\section{#1}}
> 
> \ressection{One} 
> 
> \ressection{Two}
> 
> \end{document}
> 
> I'm doing this in a document containing my resume, where I want
> sections in the L2H version but not in the LaTeX version. I define
> ressection differently for the two versions. Please let me know if
> this is not the proper way to accomplish that.
> 
> -Mike

Mike,

playing around with section commands isn't necessarily a good thing. But
in this case just change things to:

\documentclass{article}

\usepackage{html}

\newcommand{\ressection}[1]{\section{#1}}

\begin{document}

\ressection{One}

\ressection{Two}

\end{document}

And it should work OK. Newcommands should really be defined in the
document preamble. If you define them in the document body they behave
quiet differently.

Regards,

Peter.

--
  Dr. Peter W. Draper                  e-mail:  [EMAIL PROTECTED]
  Starlink Applications Programmer
  University of Durham                 Voice:   0191 374 3806
  Department of Physics                Fax:     0191 374 7068
  Science Labs, South Road
  Durham, DH1 3LE, U.K.

Reply via email to