Skip to content
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

Implement algorithm2e bindings #233

Closed
brucemiller opened this issue Jul 8, 2011 · 12 comments
Closed

Implement algorithm2e bindings #233

brucemiller opened this issue Jul 8, 2011 · 12 comments

Comments

@brucemiller
Copy link
Owner

@brucemiller brucemiller commented Jul 8, 2011

[Originally Ticket 1557, reported by cheshirekow]

I would like to request that the algorithm2e package be implemented for latexml.

@brucemiller
Copy link
Owner Author

@brucemiller brucemiller commented Jul 8, 2011

From CTAN:
Algorithm2e is an environment for writing algorithms in LaTeX2e.
An algorithm is defined as a floating object like figures.
It provides macros that allow you to create different sorts of key
words, thus a set of predefined key words is given. You can also
change the typography of the keywords.'

The CTAN page is here: http://ctan.org/tex-archive/macros/latex/contrib/algorithm2e/
The package maintainer: http://www.lirmm.fr/~fiorio/miscellaneous/algorithm2e.html
Documentation from the latest release: http://www.lirmm.fr/~fiorio/files/misc/Algorithm2e-4.01/algorithm2e.pdf

@brucemiller
Copy link
Owner Author

@brucemiller brucemiller commented Jul 8, 2011

I've tried to read the documentation for latexml to understand if I have the skills to write the binding myself but I don't think I do. What I would hope from the post processor is that it creates a div for the algorithm which is styled with a fixed width, borders, and auto left,right margins (centered on the page) so that it looks like the "float" generated from latex or pdflatex.

@brucemiller
Copy link
Owner Author

@brucemiller brucemiller commented Jul 13, 2011

I added a very primitive proof-of-concept implementation. The result can be viewed : here. Some minor details are on the Mailing List.

@dginev
Copy link
Collaborator

@dginev dginev commented Jan 25, 2013

We should merge in and expand on cheshirekow's work before the LaTeXML 0.8 release.

@dginev
Copy link
Collaborator

@dginev dginev commented Dec 6, 2013

But from a tactical perspective, let's bump to 0.9 as it's not a core priority and we want to add some modifications to "do things right" here.

@binarez
Copy link

@binarez binarez commented Feb 13, 2016

I'm not exactly sure how to signify that I would really like this feature implemented so I'll just say it here in this comment. 👍

Discussion on tex.sx

@dginev
Copy link
Collaborator

@dginev dginev commented Feb 13, 2016

Thanks for speaking up @binarez , we hear you!

@pirofti
Copy link

@pirofti pirofti commented May 1, 2017

Is there even an experimental algorithm2e binding that I can test? I could not get the one I wrote to define and pass the @float and end@float undefined errors:

Error:undefined:\@float The token T_CS[\@float] is not defined.
algorithm2e.sty.ltxml.txt

@brucemiller
Copy link
Owner Author

@brucemiller brucemiller commented May 2, 2017

@bfirsh
Copy link
Contributor

@bfirsh bfirsh commented Dec 13, 2017

A LaTeXML paper did the rounds on Twitter recently and the only thing broken was this package. @dginev suggested commenting with a +1 for this issue. (Or +3200 retweets. ;)

@brucemiller
Copy link
Owner Author

@brucemiller brucemiller commented Dec 14, 2017

Considering I almost lost my draft binding due to fat-fingered git misuse, I probably should do something sooner rather than later. It currently(?) mangles line numbering & blank lines, but would look better than the red blob you got!

@brucemiller
Copy link
Owner Author

@brucemiller brucemiller commented Apr 23, 2018

Found the binding, upgraded to current code, and it pretty much works. The biggest flaw is, due to not properly tracking TeX modes, you'll get empty lines, wihch may even be numbered. Other than that it should work. Will revisit the modes issue at some point in the future. Thanks for the report!

@dginev dginev modified the milestones: LaTeXML-0.9, LaTeXML-0.8.3 Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants