[tex4ht] [bug #576] \HCode alternative that copies verbatim?

Michal Hoftich puszcza-hackers at gnu.org.ua
Tue Aug 16 00:45:22 CEST 2022


Follow-up Comment #1, bug #576 (project tex4ht):

Hi Karl, there are two ways how to support verbatim content, using \ScriptEnv
or \ScriptCommand. See this example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}
\begin{document}
     \ScriptEnv{foo}
       {\ifvmode\IgnorePar\fi\EndP\NoFonts\hfill\break }
       {\EndNoFonts }

\ScriptCommand{\FooCmd}
       {\ifvmode\IgnorePar\fi\EndP\NoFonts\hfill\break }
       {\EndNoFonts }

normal text

\begin{foo}
  <p dir="auto">The following code shows the concept:</p>

  <p dir="auto">This is another paragraph</p>
\end{foo}

normal text 

\FooCmd
  <p dir="auto">The following code shows the concept:</p>

  <p dir="auto">This is another paragraph</p>
\EndFooCmd
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?576>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list.