Dear all,
I just modified the algorithm environment in TeXmacs and Mogan to achieve an algorithm2e-like environment. The original algorithm environment cannot render the line number properly as discussed in Algorithm2e for Texmacs
To see this, the original algorithm environment with numbered lines looks like this:
My modified version looks like this:
The .ts file together with the template are uploaded into Github: https://github.com/JackYansongLi/algorithm2e-texmacs. Feel free to pull it and raise some issues for me on GitHub.