[l2h] \newtheorem{Main Lemma}

Radhakrishnan C V Radhakrishnan C V <cvr@river-valley.com>
Wed, 9 Aug 2000 19:27:26 +0530 (IST)


On Tue, 8 Aug 2000, Martin Goldstern wrote:

> 
> The text below looks like decent LaTeX to me.  But
>          LaTeX2HTML Version 99.2beta8 (1.42)
> complains: 
> 
> *** sub do_cmd_theMain Lemma failed:
> syntax error at (eval 478) line 1, near "sub do_cmd_theMain Lemma "
> 
> \documentclass{article}
> \newtheorem{Main Lemma}{Main Lemma}

It is quite unusual to see an environment defined with a group of
strings sepated by a blank space. The unusual construction mechanism
(the environment name you give forms a construct \csname...\endcsname
where anything is acceptable for TeX) in TeX makes it legal in a LaTeX
run, but that doesn't necessarily warrant other programming languages to
behave like TeX.

The best and clean way will be to avoid spaces in enviroment names when
you expect your TeX code to be processed by applications written in
other languages.


-- 
Radhakrishnan