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

2013-07-12 Thread Radhakrishnan CV
On Fri, Jul 12, 2013 at 4:23 AM, Karl Berry k...@freefriends.org wrote: Runaway argument? I see CVR solved your problem with an environment. That's good (maybe we should add that environment in general), but this error indicates the problem is simply having a blank line (\par) in the

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

2013-07-11 Thread Karl Berry
Runaway argument? I see CVR solved your problem with an environment. That's good (maybe we should add that environment in general), but this error indicates the problem is simply having a blank line (\par) in the argument, and we should just make \HCode \long in order to allow it. (I admit

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

2013-07-10 Thread Nasser M. Abbasi
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

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

2013-07-10 Thread Nasser M. Abbasi
On 7/10/2013 5:49 AM, Radhakrishnan CV wrote: On Wed, Jul 10, 2013 at 1:54 PM, Nasser M. Abbasi n...@12000.org wrote: I am converting a latex document that I used to compile with latex2html to htlatex. [...] What is the correct way to insert HTML code any where in the document, and have

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

2013-07-10 Thread Michal Hoftich
Correct way is to not insert any HTML code to the document, but instead redefine ordinary LaTeX commands to insert html codes in .4ht files. If you really want to insert HTML code directly, you can define command which will eat arguments in normally LaTeX run and insert \HCode with tex4ht. Like

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

2013-07-10 Thread Nasser M. Abbasi
On 7/10/2013 6:14 AM, Michal Hoftich wrote: Correct way is to not insert any HTML code to the document, but instead redefine ordinary LaTeX commands to insert html codes in .4ht files. If you really want to insert HTML code directly, you can define command which will eat arguments in normally

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

2013-07-10 Thread Radhakrishnan CV
On Wed, Jul 10, 2013 at 4:28 PM, Nasser M. Abbasi n...@12000.org wrote: On 7/10/2013 5:49 AM, Radhakrishnan CV wrote: On Wed, Jul 10, 2013 at 1:54 PM, Nasser M. Abbasi n...@12000.org wrote: I am converting a latex document that I used to compile with latex2html to htlatex. [...]