Open mspertus opened 6 years ago
Hmm, I thought there was another open issue about memoir; maybe I was thinking of koma #915. They're both really nice, but large & complex classes/packages. You could try using --includestyles
to let latexml try to interpret the class file, but even if it can cope with the TeX, class files typically slip in beneath the layer where latexml can interpret the document structure.
What would help to create bindings (other than writing the bindings yourself! :>) would be a sample or set of sample files as simple as possible, yet exercising most of the features of the class/package. The really time consuming part, for me, is sifting through the documentation to find all the unique bits. And the memoir documentation is 500 pages!
Thanks, Bruce. I have been modifying the "book" binding, pretty much just by adding DefMacro{...}{} because I'm new to latexml and don't know what the @#$% I'm doing, but that might serve as a good starting point for someone more knowledgeable. I will share once I've gotten a little further along.
Also wanted to call out https://github.com/cplusplus/draft std.tex mentioned in the issue as a possible sample file. While it is large, nearly of it is just content, with most of the action in styles.tex. Perhaps the biggest benefit of that is that I am trying to build this, so my fork at https://github.com/mspertus/LaTeXML, however lame, is at least a starting point. The biggest awkwardness is that it uses some other unbound style files like isodate, but I think those are fairly small and likely good targets too.
While I don't really know what I'm doing, I created support for memoir (and some other style files I need) at https://github.com/mspertus/LaTeXML. This successfully compiles https://github.com/cplusplus/draft with one caveat: I had to comment out the error for underscores outside of math mode due to the problem described at http://lists.informatik.uni-erlangen.de/pipermail/latexml/2018-July/002391.html.
Still, it is very satisfying and important to my projects to be able to compile an intricate 1400 page memoir file and hope that it can point the way to proper support.
Thanks, Mike
When I run latexml on memoir documents, I get a fatal error, presumably because there is no binding for the memoir class. Here is a minimal example that I have adapted from https://github.com/cplusplus/draft.
resulting in the following output (note the missing binding and the fatal error)