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
\importmodule does not tolerate _ in module names #202
Comments
@dginev, could you have a look at this? |
this is important (priority) to me, since we need if of the OpenDreamKit flexiformalization of elliptic curves. |
Can you easily use underscores in the TeX implementation? I was left with the impression they remain active unless explicitly neutralized. Active underscores are easily one of the most common problems in Authorea as well btw. |
There does not seem to be a problem in sTeX here. |
But the only thing that is really happening is that the arguments are passed around to an |
https://github.com/KWARC/LaTeXML/blob/master/lib/LaTeXML/Package/TeX.pool.ltxml#L3404-L3407 I can think of two possible workarounds: I. a sketchy approach: explicitly silencing this error for sTeX, which however, might introduce other errors and make KWARC's LaTeXML deviate from Bruce's branch. II. a might work approach: without modifying any LaTeXML code, instead of passing the module name by argument, we can pass it by keyval e.g. |
Right, you are pointing to the exact bit of code that triggers the error, when the underscore is expanded outside of math mode. So the idea with the https://github.com/KWARC/LaTeXML/blob/master/lib/LaTeXML/Package/TeX.pool.ltxml#L237 If you could first change the plain argument and try using an underscore name, I would be quite curious to read more about what the error is and how it's triggered. It should "just work". I am equally surprised Michael has made this work in TeX so easily, since the catcode must have been neutralized there as well. |
Btw, @kohlhase just a reminder that if you switch the It may be better to use the dedicated |
Right, DefConstructor('\importmodule OptionalKeyVals:importmodule Semiverbatim', works on on
with no problem. |
Perfect, then there is probably 0 dev work to do here. I am still wondering if using |
Btw, @angerhang here is the intro-level documentation of binding "prototypes" where semiverbatim is briefly introduced: http://math.nist.gov/~BMiller/LaTeXML/manual/modules/LaTeXML_Package.html#SSx2.SSSx1.Px1
|
Yap thanks for the tip : ) but I don't know why Miko said neither |
I probably had some problems testing, I was wondering myself. Did you commit? |
I haven't because Deyan and I were not sure if |
I am not sure either, so let's just start with |
Note that we also need to do the same for |
Note that up until a recent patch, |
Thanks to Bruce for the clarification. I had suspected something like this (you might still update the LaTeXML documentation though). And we definitely do not want |
All clear, thanks for the details! |
@angerhang I have tested this with the modules at https://gl.mathhub.info/ODK/lmfdb/. And I am still getting script warnings. Could you please try as well? Just install them via |
I tried to install the modules by
|
this is a known issue of |
This issue was moved to slatex/LaTeXML-Plugin-sTeX#16 |
\importmodule{test_test}
gives me the error.Just run sTeX on
I am not sure where this comes from, I had suspected that we have to give the argument of
\importmodule
the typeSemivarbatim
or evenTeXFileName
, but that did not really help.The text was updated successfully, but these errors were encountered: