tex2py icon indicating copy to clipboard operation
tex2py copied to clipboard

This project was great, why the development stopped on it ?

Open MohamedAliRashad opened this issue 3 years ago • 3 comments

I think there is more features to be added for such a project, and it's really simple to use

MohamedAliRashad avatar Mar 03 '21 22:03 MohamedAliRashad

@MohamedAliRashad Thanks for posting and for the kind words! What sort of features are you thinking of? I just didn't know what to add, haha. There are some glaring bugs though, I just never got around to fixing.

alvinwan avatar Apr 10 '21 08:04 alvinwan

@alvinwan The project truly deserves every praise.

Well, I was looking for a tex parser to transform a latex file into a tree-like object for me to traverse freely (in python of course). Your project was great for its simplicity of use but it lacked documentation so it was true hell to figure what everything meant.

Regarding the bugs, if you can open issues with them I think I might be able to help you.

MohamedAliRashad avatar Apr 10 '21 09:04 MohamedAliRashad

@MohamedAliRashad Hahaha sorry for creating hell. Does the lower-level TexSoup https://github.com/alvinwan/texsoup help? Depends on what sort of tree you're looking for:

  • TexSoup's tree reflects the syntax tree, where each node is a latex command or environment. Child nodes are nested commands or environments.
  • tex2py's is a 'content' tree, where each node is a semantic part of the document (like section). Child nodes are lower-level semantic parts (like subsection). In this regard, the README and repo description are a bit imprecise about what kind of tree it builds. This was a naive, younger me :P

tex2py is just a light wrapper on top of TexSoup

alvinwan avatar Apr 11 '21 02:04 alvinwan