I have some macros in my document, and I want to create my own HTML for there. I follow this blog entry but I can't to make it work.
I put this code before my \begin{document}:
\def\one#1#2#3{#1space#2space#3}
\NewConfigure{one}[4]%
{\def\a@one{#1}\def\b@one{#2}%
\def\c@one{#3}\def\d@one{#4}}
% I can't understand this things too much - I'm not familiar with TeX
\def\@temp#1#2#3{\a@one#1\c@one#2\d@one#3\b@one}
\let\one\@temp
\Configure{one}
{\Tg<span class="one">\Tg<code>}{\Tg</b>\Tg</span>}
{\Tg</code>\Tg<em>}{\Tg</em>\Tg<b>}
\one{verbatim}{emphasize}{boldface}
And compile with: htlatex mylatexfile.tex "xhtml"
And I get this error message:
! Use of \one doesn't match its definition.
l.19 \one{
verbatim}{emphasize}{boldface}
My problem is, for example, I have a macro like:
\newcommand{\myfunction}[2]{The title is: #1 an the body is \textit{#2} }
and I want to translate this in some like:
<div class="container">
<div class="title"><!-- #1 goes here --></div>
<div class="content"><!-- #2 goes here --></div>
</div>
How I can do that?