[l2h] Problem with \renewcommand

Ian Thurlbeck Ian Thurlbeck <ian@stams.strath.ac.uk>
Mon, 6 Sep 1999 16:49:09 +0100


Dear L2H-ers

version: 99.2alpha9
system:  Redhat 5.2/Intel 2.0.37 kernel

 ----------bug.tex-------------------
% Using \renewcommand{\xyz}[1]{\textbf{#1}}
% is another variant that does not work as expected.
 
 \documentclass{article}
 
 \begin{document}
 
\newcommand{\xyz}{abc def}
\renewcommand{\xyz}{\textbf}
 
\xyz{Session} 1999-2000
 
\include{bug1}
 
\end{document}
----------end----------------------

and

-----------bug1.tex------------------
\xyz{Session} 2000-2001
-----------end---------------------

The version as submitted generates error messages that
I cannot understand, one in the main file and another
in the include file. The text in the main file does not
acquire the bold font (consistently with the message).

The text in the second file does get emboldened
despite the message.

% latex2html bug.tex
This is LaTeX2HTML Version 99.2alpha9 (1.18)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Revised and extended by:
 Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 3.2

Loading /usr/local/lib/latex2html/versions/html3_2.pl

 *** processing declarations ***

OPENING /a/titan/export/user3/ian/tmp/l2h/bug.tex
texexpand V99.2alpha9 (Revision 1.6)

Loading /usr/local/lib/latex2html/styles/texdefs.perl...
Loading /usr/local/lib/latex2html/styles/article.perl
Reading ...
%%%%%%%%,,++.
@@@@@@@

Doing ./bug1.tex

Processing macros ...++.
@
*** wrap_cmd_xyz not defined, cannot wrap \xyz@@

Translating ...
0/1:top of bug: for bug.html

 *** translating preamble ***
..
 *** preamble done ***
;...
*** redefining \xyz ***
...

*** no brace for \textbf , before:

*** using "" as the argument instead; is this correct?  ***

...;..

1/1:sectionstar:.."About this document ..." for node1.html
;;.

Doing section links ......

*********** WARNINGS ***********

*** wrap_cmd_xyz not defined, cannot wrap \xyz

? brace missing for \textbf

Done. 

%

The relevant portion of the bug.html file is:

<P>
Session 1999-2000		#### this bit should have Bold tags as well

<P>
<B>Session</B> 2000-2001

<P>
    
Can anyone explain what's going on ?  Latex works as expected

Many thanks

Ian

--
Ian Thurlbeck                http://www.stams.strath.ac.uk/
Statistics and Modelling Science, University of Strathclyde
Livingstone Tower, 26 Richmond Street, Glasgow, UK,  G1 1XH
Tel: +44 (0)141 548 3667           Fax: +44 (0)141 552 2079