New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with algpseudocode #825

davpoole opened this Issue Jan 5, 2017 · 2 comments


None yet
3 participants

davpoole commented Jan 5, 2017

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.



Latex works fine. The command
latexml --destination=dest.xml test.tex
says "Conversion complete: No obvious problems."
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 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.


This comment has been minimized.


brucemiller commented Jan 9, 2017

hmm... it seems the binding for algpseudocode is assuming that the algorithm package is loaded, and wants to number the lines from within an algorithm counter, but that's not happening in your case. I've got to look into how to make it behave in both scenarios...

Nice textbook, btw!


This comment has been minimized.


brucemiller commented Jan 9, 2017

OK, I think I've got it working right, now; checked in. Thanks for the report and good luck with your book; let us know how it goes!

@brucemiller brucemiller closed this Jan 9, 2017

@dginev dginev added this to the LaTeXML-0.8.3 milestone Jan 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment