[l2h] Problems whit New Packages

Jose Aliste P. jaliste@dim.uchile.cl
Fri, 18 May 2001 11:15:35 -0400 (CLT)


Hi,

if I try to convert the prueba3.tex below with latex2html it works
perfect. But if I define the commands in prueba2.sty (also below) and try
to convert prueba2.tex(also below) then it doesn't work. How can I get the
right results..

Note: the commands which I defined only use standar Latex and commands
from html.sty. 

---------------------------------------------------------------------
- Beginning of prueba2.tex                                          -
---------------------------------------------------------------------
documentclass{article}
\usepackage{prueba2}
\begin{document}

\tablelist[\myalign]{\mylist}{%
\textbf{A lista }}{%
\myitem{B}{bold-face}
\myitem{I}{italice}
\myitem{TT}{teletype-text}}
\mfi{1}{2}
\end{document}
--------------------------------------------------------------------
- End of prueba2.tex 
--------------------------------------------------------------------

--------------------------------------------------------------------
- begin of prueba2.sty
--------------------------------------------------------------------
\ProvidesPackage{prueba2}
\RequirePackage{html}

\newcommand{\myalign}{center}
\newcommand{\mylist}{UL}
\newcommand{\myitem}[2]{\HTMLcode[disc]{LI}{\simpletest{#1}{#2}}}
\newcommand{\simpletest}[2]{%
\HTMLcode{#1}{ a simmple test of ''#2'',} usinge \HTMLcode{CODE}{<#1>} .}
\newcommand{\tableopts}{10,border=5}
\newcommand{\tablelist}[4][left]{\HTMLcode[#1]{DIV}{
\HTMLcode[\tableopts]{TABLE}{
\HTMLcode[bottom]{CAPTION}{
#3
}\HTMLcode{TR}{\HTMLcode{TD}{\HTMLcode{#2}{
#4
}}}
}}\HTMLcode[all]{BR}}
\newcommand{\mfi}[2]{\HTMLcode{FORM}{hola}}
--------------------------------------------------------------------
- end of prueba2.sty
--------------------------------------------------------------------

--------------------------------------------------------------------
- begin of prueba3.tex
--------------------------------------------------------------------
\documentclass{article}
\usepackage{prueba2}
\begin{document}
\newcommand{\myalign}{center}
\newcommand{\mylist}{UL}
\newcommand{\myitem}[2]{\HTMLcode[disc]{LI}{\simpletest{#1}{#2}}}
\newcommand{\simpletest}[2]{%
\HTMLcode{#1}{ a simmple test of ''#2'',} usinge \HTMLcode{CODE}{<#1>} .}
\newcommand{\tableopts}{10,border=5}
\newcommand{\tablelist}[4][left]{\HTMLcode[#1]{DIV}{
\HTMLcode[\tableopts]{TABLE}{
\HTMLcode[bottom]{CAPTION}{
#3
}\HTMLcode{TR}{\HTMLcode{TD}{\HTMLcode{#2}{
#4
}}}
}}\HTMLcode[all]{BR}}
\newcommand{\mfi}[2]{\HTMLcode{FORM}{hola}}

\tablelist[\myalign]{\mylist}{%
\textbf{A lista }}{%
\myitem{B}{bold-face}
\myitem{I}{italice}
\myitem{TT}{teletype-text}}
\mfi{1}{2}
\end{document}