{{ message }}

# Errors with algpseudocode #825

Closed
opened this issue Jan 5, 2017 · 2 comments
Closed

# Errors with algpseudocode#825

opened this issue Jan 5, 2017 · 2 comments
Milestone

### 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. 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 2:

### 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!

### 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!
closed this Jan 9, 2017
added this to the LaTeXML-0.8.3 milestone Jan 6, 2018
mentioned this issue Mar 31, 2020