[tex4ht] How to insert HTML code at any location in the generated HTML file?

Nasser M. Abbasi nma at 12000.org
Wed Jul 10 10:24:02 CEST 2013


I am converting a latex document that I used to compile with
latex2html to htlatex.

With latex2html, I used to do this to insert raw HTML code
any where:

--------------------------------
\documentclass{article}
\usepackage{html}
\begin{document}
\begin{rawhtml}
  
   any HTML code here

\end{rawhtml}
\end{document}
-------------------------

So I changed the above to

--------------------------------
\documentclass{article}
\begin{document}

\HCode{

any HTML code here
}

\end{document}
--------------------------------

but I get an error:

--------------------------
htlatex foo.tex
(./foo.aux)
Runaway argument?
{
! Paragraph ended before \HCode was complete.
<to be read again>
                    \par
l.5
     
?
-----------------------------

What is the correct way to insert HTML code any where in
the document, and have it show at that location in the HTML
file? I have very large amount of HTML code that was inserted in
that document.

Using TL 2013 on linux mint.

thanks,
--Nasser





More information about the tex4ht mailing list