Hi Nasser,

> > Is there a better way to write the DIV code in middle of the latex
> > document that I did?


When you insert block level elements like <div>, you need to handle
paragraphs yourself. Typically by
inserting \ifvmode\IgnorePar\fi\EndP before \HCode. Like this:

\ifdefined\HCode
\ifvmode\IgnorePar\fi\EndP\HCode{<DIV style="width:800px;">}
\fi

long text  long text  long text  long text  long text  long text  long text
 long text  long text
long text  long text  long text  long text  long text  long text  long text
 long text  long text
long text  long text  long text  long text  long text  long text  long text
 long text  long text
long text  long text  long text  long text  long text  long text  long text
 long text  long text
long text  long text  long text  long text  long text  long text  long text
 long text  long text

\ifdefined\HCode
\ifvmode\IgnorePar\fi\EndP\HCode{</DIV>}
\fi

Best,
Michal

Reply via email to