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

Comments

Projects
None yet
5 participants
@brucemiller
Owner

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

This comment has been minimized.

Owner

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

This comment has been minimized.

Owner

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

This comment has been minimized.

Owner

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

This comment has been minimized.

Collaborator

dginev commented Jan 25, 2013

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

@dginev

This comment has been minimized.

Collaborator

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

This comment has been minimized.

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

This comment has been minimized.

Collaborator

dginev commented Feb 13, 2016

Thanks for speaking up @binarez , we hear you!

@pirofti

This comment has been minimized.

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

This comment has been minimized.

Owner

brucemiller commented May 2, 2017

@bfirsh

This comment has been minimized.

Contributor

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

This comment has been minimized.

Owner

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

This comment has been minimized.

Owner

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