Usually it has a [creator=-argument, but whenever it doesn't, the signature file isn't loaded and errors are thrown.
I've tried to fix that by creating a new, empty KeyVals-object, but then latexml throws errors (which funnily enough don't seem to stop it from producing the correct content anyway). Here's what I did:
if (!$keyval) { # TODO produces latexml errors, but produces the right content anyway $keyval = LaTeXML::Core::KeyVals->new(); $whatsit->setArgs($keyval,$signature,$language); }
this throws "undefined:Encountered unknown KeyVals key"-errors. I probably instantiate the KeyVals-object wrong.
A good example where this happens is smglom/elliptic-curves/ec-reduction-modp.en.tex
In mhmodnl (https://github.com/slatex/LaTeXML-Plugin-sTeX/blob/master/lib/LaTeXML/Package/smultiling-mh.sty.ltxml#L62),
$keyval
is used to pass along the load path for the signature tex-file - iff$keyval
is defined, i.e. any optional arguments have been explicitly given in the\begin{mhmodnl}
.Usually it has a
[creator=
-argument, but whenever it doesn't, the signature file isn't loaded and errors are thrown.I've tried to fix that by creating a new, empty
KeyVals
-object, but then latexml throws errors (which funnily enough don't seem to stop it from producing the correct content anyway). Here's what I did:if (!$keyval) { # TODO produces latexml errors, but produces the right content anyway $keyval = LaTeXML::Core::KeyVals->new(); $whatsit->setArgs($keyval,$signature,$language); }
this throws "undefined:Encountered unknown KeyVals key"-errors. I probably instantiate the KeyVals-object wrong.A good example where this happens is smglom/elliptic-curves/ec-reduction-modp.en.tex