We are converting our intro AI book to html using latexml (0.8.2). We have hit a snag with algpseudocode. I have created a small examples that does not work.
test.tex:
\documentclass{book}
\usepackage{algpseudocode}
%\usepackage[noend]{algpseudocode}
\begin{document}
\begin{algorithmic}[1]
\Procedure{Proc}{$a,b$}
\State\Return{7}
\EndProcedure
\end{algorithmic}
\end{document}
Latex works fine. The command
latexml --destination=dest.xml test.tex
says "Conversion complete: No obvious problems."
Then
latexmlpost --destination=result.html dest
gives many errors of the form
dest.xml:11: validity error : xml:id : attribute value .l2 is not an NCName
<listingline xml:id=".l2"><tag><text fontsize="80%">2:</text></tag><text f
^
and does not produce an output. This is preventing us from converting our book!
Aside: we are converting the second edition of our AI textbook from latex to HTML. The first edition used hyperlatex; see http://artint.info/html/ArtInt.html but we needed to do much postprocessing by hand. We have decided to use latexml because it supports mathml and many packages. The book is written using high-level semantic commands and we don't mind defining separate macros to render the latex and the html (which is how we got hyperlatex to work). Thanks for providing latexml.
We are converting our intro AI book to html using latexml (0.8.2). We have hit a snag with algpseudocode. I have created a small examples that does not work.
test.tex:
Latex works fine. The command
latexml --destination=dest.xml test.tex
says "Conversion complete: No obvious problems."
Then
latexmlpost --destination=result.html dest
gives many errors of the form
and does not produce an output. This is preventing us from converting our book!
Aside: we are converting the second edition of our AI textbook from latex to HTML. The first edition used hyperlatex; see http://artint.info/html/ArtInt.html but we needed to do much postprocessing by hand. We have decided to use latexml because it supports mathml and many packages. The book is written using high-level semantic commands and we don't mind defining separate macros to render the latex and the html (which is how we got hyperlatex to work). Thanks for providing latexml.