I have been perusing the documentation and examining the
$LATEX2HTML/styles, and from what I can see, it will be possible to
treat our extensions to LaTeX as if they were a style or package.
However, I still don't have enough depth in how to extend the
translator to figure out what I need to do.
I have started by duplicating &do_env_list from latex2html itself to
use as a template for our redefined list environment. I have put
this in a file called "dymmac.perl" in the same directory as my
"simple.tex" and "dymmac.sty". Here is a copy of "simple.tex":
\documentclass{article}
\usepackage{dymmac}
\begin{document}
\bl
\pt* test
\pt* test
\el
\end{document}
Now, in dymmac.sty, \bl is a redefined \begin{list}{}{}, \el is a
redefined \end{list}, and \pt is a redefined \item. There are quite a
lot of fiddly-bits to this code which distract from the fact that
basically they just implement a modified list environment. Anyway,
I don't think you need to know the implementation to answer the basic
questions I have. But I can post it if you think it is relevant.
The problem I've been having is that when I run latex2html on this
simple test case, I am seeing:
Unknown commands: el ptstar bl
And the result is that the list-formatting is totally lost, i.e.
I just get "point one point two point three" all on the same line.
Does the fact that \bl is defined to be \begin{list}{}{} hide it
from the translator? What do I need to do in order to get the
translator to "see" \begin{list}{}{} inside the "\bl" command?
I have tried this in the preamble of the test case:
\newcommand{\bl}{\begin{list}{}{}}
\newcommand{\el}{\end{list}}
This time, the translator only lists "ptstar" as an unknown command.
So I add another line to the preamble:
\newcommand{\ptstar}{\pt}
But now I get very strange results. The translator lists "pttest" as
unknown. Obviously it has run "\pt" and the word "test" together. So
I change the definition to:
\newcommand{\ptstar}{\pt }
Now the translator is only unhappy with \pt. But "\pt" is supposed to
be processed by my redefined &do_env_list. Now I'm really baffled. I
replaced occurances of the pattern "\item" with "\pt" in &do_env_list,
so I expected &do_env_list to recognize it and process it accordingly.
I have the feeling I'm going about this totally the wrong way. Could
someone please put me back on track?
Ben.
--
Ben Armstrong -. Medianet Development Group,
[EMAIL PROTECTED] `-. Dymaxion Research Limited
<URL: http://www.dymaxion.ca/> `- Halifax, Nova Scotia, Canada