{"action":"created","issue":{"url":"https://api.github.com/repos/KWARC/sTeX/issues/175","labels_url":"https://api.github.com/repos/KWARC/sTeX/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/KWARC/sTeX/issues/175/comments","events_url":"https://api.github.com/repos/KWARC/sTeX/issues/175/events","html_url":"https://github.com/KWARC/sTeX/issues/175","id":117367538,"number":175,"title":"stex bindings need to pass on the mh option","user":{"login":"kohlhase","id":4037538,"avatar_url":"https://avatars.githubusercontent.com/u/4037538?v=3","gravatar_id":"","url":"https://api.github.com/users/kohlhase","html_url":"https://github.com/kohlhase","followers_url":"https://api.github.com/users/kohlhase/followers","following_url":"https://api.github.com/users/kohlhase/following{/other_user}","gists_url":"https://api.github.com/users/kohlhase/gists{/gist_id}","starred_url":"https://api.github.com/users/kohlhase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohlhase/subscriptions","organizations_url":"https://api.github.com/users/kohlhase/orgs","repos_url":"https://api.github.com/users/kohlhase/repos","events_url":"https://api.github.com/users/kohlhase/events{/privacy}","received_events_url":"https://api.github.com/users/kohlhase/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KWARC/sTeX/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/KWARC/sTeX/labels/Priority","name":"Priority","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"angerhang","id":7655454,"avatar_url":"https://avatars.githubusercontent.com/u/7655454?v=3","gravatar_id":"","url":"https://api.github.com/users/angerhang","html_url":"https://github.com/angerhang","followers_url":"https://api.github.com/users/angerhang/followers","following_url":"https://api.github.com/users/angerhang/following{/other_user}","gists_url":"https://api.github.com/users/angerhang/gists{/gist_id}","starred_url":"https://api.github.com/users/angerhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angerhang/subscriptions","organizations_url":"https://api.github.com/users/angerhang/orgs","repos_url":"https://api.github.com/users/angerhang/repos","events_url":"https://api.github.com/users/angerhang/events{/privacy}","received_events_url":"https://api.github.com/users/angerhang/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-11-17T14:38:39Z","updated_at":"2015-11-19T13:07:30Z","closed_at":null,"body":"It seems that there is still a problem in the handling of the ```mh``` option in ```*.sty.txml```. Hang has added \r\n```\r\nDeclareOption('mh', sub {Digest(T_CS('\\@mikoslidestrue')); });\r\n```\r\nbut this disables the old \r\n```\r\nDeclareOption(undef, sub {PassOptions('omdoc','cls',ToString(Digest(T_CS('\\CurrentOption'))));\r\n                                          PassOptions('mikoslides','sty',ToString(Digest(T_CS('\\CurrentOption'))));});\r\n```\r\n```ProcessOptions()``` does not pass the mh option on to ```mikoslides.sty.ltxml``` and ```omdoc.cls.ltxml``` \r\n\r\nHMMMM, I am trying to fix this, but it all extremely messed up. I wonder how this was all supposed to run at any time, ... we should talk about this. \r\n\r\nBTW, we have 43K fatal errors because of this on MathHub.info :-). \r\n"},"comment":{"url":"https://api.github.com/repos/KWARC/sTeX/issues/comments/158052543","html_url":"https://github.com/KWARC/sTeX/issues/175#issuecomment-158052543","issue_url":"https://api.github.com/repos/KWARC/sTeX/issues/175","id":158052543,"user":{"login":"angerhang","id":7655454,"avatar_url":"https://avatars.githubusercontent.com/u/7655454?v=3","gravatar_id":"","url":"https://api.github.com/users/angerhang","html_url":"https://github.com/angerhang","followers_url":"https://api.github.com/users/angerhang/followers","following_url":"https://api.github.com/users/angerhang/following{/other_user}","gists_url":"https://api.github.com/users/angerhang/gists{/gist_id}","starred_url":"https://api.github.com/users/angerhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angerhang/subscriptions","organizations_url":"https://api.github.com/users/angerhang/orgs","repos_url":"https://api.github.com/users/angerhang/repos","events_url":"https://api.github.com/users/angerhang/events{/privacy}","received_events_url":"https://api.github.com/users/angerhang/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T13:07:30Z","updated_at":"2015-11-19T13:07:30Z","body":"More concretely, and in respect to the minimal example, the option is only handled if the package is loaded after Digesting Tex\r\n\r\nOptionTest.cls.ltxml passes the option to `rec.sty.ltxml` \r\n```\r\nDeclareOption('test', sub {PassOptions('rec','sty',ToString(Digest(T_CS('\\CurrentOption')))); });\r\nProcessOptions();\r\nRequirePackage('rec');\r\n```\r\n\r\nand `rec.sty.ltxml` prints a message if `test` is being passed\r\n```\r\nDeclareOption('test', sub {AssignValue('@newtest' => 1, 'global'); });\r\nProcessOptions();\r\nif(LookupValue('@newtest')) { warn \"option  Activated\";}\r\n```\r\n\r\n```\r\nLoading /path/to/localmh/ext/perl5lib/lib/perl5/LaTeXML/Package/wrapfig.sty.ltxml... 0.00 sec)\r\n(Loading /path/to/localmh/ext/perl5lib/lib/perl5/LaTeXML/Package/colortbl.sty.ltxml...\r\n(Loading /path/to/localmh/ext/perl5lib/lib/perl5/LaTeXML/Package/array.sty.ltxml... 0.00 sec) 0.05 sec)\r\n(Loading /path/to/localmh/ext/sTeX/sty/etc/ed.sty.ltxml... 0.00 sec)\r\n(Loading /path/to/localmh/ext/perl5lib/lib/perl5/LaTeXML/Package/babel.sty.ltxml...\r\n(Processing definitions /usr/local/texlive/2015/texmf-dist/tex/generic/babel/babel.sty...\r\n(Processing definitions /usr/local/texlive/2015/texmf-dist/tex/generic/babel/switch.def... 0.06 sec)\r\n(Processing definitions /usr/local/texlive/2015/texmf-dist/tex/generic/babel-german/ngerman.ldf...\r\n(Processing definitions /usr/local/texlive/2015/texmf-dist/tex/generic/babel-german/ngermanb.ldf...\r\n(Loading /path/to/localmh/ext/perl5lib/lib/perl5/LaTeXML/Package/babel.def.ltxml...\r\n(Processing definitions /usr/local/texlive/2015/texmf-dist/tex/generic/babel/babel.def...\r\n(Processing definitions /usr/local/texlive/2015/texmf-var/tex/generic/config/language.def... 0.06 sec) 1.88 sec) 2.35 sec)\r\nInfo:latex:\\GenericInfo (babel)             \r\n\t/usr/local/texlive/2015/texmf-dist/tex/generic/babel-german/ngermanb.ldf#textrange(from=88;0,to=88;24)\r\n\tPackage babel Info: Making \" an active character\r\n 3.77 sec) 4.68 sec) 7.98 sec) 8.46 sec)\r\n\r\nlatexmls (LaTeXML version 0.8.1 (KWARC fork); revision ee486e9)\r\nprocessing started Thu Nov 19 12:49:49 2015\r\n\r\n(Digesting TeX test...\r\n(Processing content /path/to/localmh/MathHub/smglom/mv/source/test.tex...\r\n(Loading /path/to/localmh/MathHub/smglom/mv/source/optionTest.cls.ltxml...\r\n(Loading /path/to/localmh/MathHub/smglom/mv/source/rec.sty.ltxml...\r\nWarning:perl:option  Activated\r\n\t/path/to/localmh/MathHub/smglom/mv/source/rec.sty.ltxml line 8\r\n\tat /path/to/localmh/MathHub/smglom/mv/source/rec.sty.ltxml line 8, <$IN> line 3\r\n\tIn Core::Gullet[@0x49067c0] /path/to/localmh/MathHub/smglom/mv/source/rec.sty.ltxml line 8\r\n 0.00 sec) 0.03 sec) 0.33 sec) 0.36 sec)\r\n｀｀｀"}}