On Wed, Jul 10, 2013 at 4:28 PM, Nasser M. Abbasi <span dir="ltr"><<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 7/10/2013 5:49 AM, Radhakrishnan CV wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Jul 10, 2013 at 1:54 PM, Nasser M. Abbasi <<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am converting a latex document that I used to compile with<br>
latex2html to htlatex.<br>
<br>
</blockquote>
<br>
[...]<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is the correct way to insert HTML code any where in<br>
the document, and have it show at that location in the HTML<br>
file? I have very large amount of HTML code that was inserted in<br>
that document.<br>
<br>
</blockquote>
<br>
You might use {verbatim} environment as in any LaTeX document.<br>
<br>
\documentclass{article}<br>
<br>
\begin{document}<br>
<br>
\begin{verbatim}<br>
<br>
any HTML code here<br>
<br>
\end{verbatim}<br>
<br>
\end{document}<br>
<br>
Hope this helps.<br>
<br>
Best regards<br>
<br>
</blockquote>
<br></div></div>
Sure, I know I can use Verbatim.<br>
<br>
May be I did not explain the problem well.<br>
<br>
I want to inject HTML code, into the generated HTML itself<br>
(when running htlatex only)<br>
<br>
If I write<br>
<br>
--------------------------<div class="im"><br>
\documentclass{article}<br>
\begin{document}<br>
<br>
\begin{verbatim}<br></div>
<h2>This is HTML head 2 </h2><br>
\end{verbatim}<br>
<br>
\end{document}<br>
---------------------------<br>
<br>
the HTML generated will just look like this:<br>
<br>
<h2>This is HTML head 2 </h2><br>
<br>
Which is clearly not what I wanted.<br></blockquote><div><br>OK. I misunderstood your problem. I think, this should solve your problem:<br><br> Please try this:<br><br>\documentclass{article}<br>
\begin{document}<br>
<br>\ScriptEnv{html}<br> {\NoFonts\hfill\break}<br> {\EndNoFonts}<br><br>
\begin{html}<br>
<h2>This is HTML head 2 </h2><br>
\end{html}<br>
<br>
\end{document}<br>
<br clear="all"></div></div><br>Best regards<br>-- <br>Radhakrishnan<br><a href="https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1" target="_blank">River Valley</a><br>
<br>