The environment has to print only in the HTML output and be ignored by LaTeX otherwise. However, I am getting an error:
Code: Select all
(/usr/share/texmf/tex/latex/hyperref/nameref.sty))
Runaway argument?
! File ended while scanning use of \@gobble@nv.
<inserted text>
\par
Code: Select all
\newenvironment{banner}
{
\begin{rawhtml}
\@print{<h5 id="banner">}
}
{
\@print{</h5>}
\end{rawhtml}
}
Code: Select all
\begin{banner}
This is the banner
\end{banner}
Code: Select all
\begin{rawhtml}<h5 id="banner">
The banner goes here.
</h5>
\end{rawhtml}
I've attached a test file. It is generated with LyX but I used LaTeX and dvips on the tex file to get the error message.
Thanks,
Frank