-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
TeX-like "def" macro doesn't allow inverting the arguments order (a.k.a. "overset" not supported) #2133
Comments
To make it clear, the goal here would be to support TeX math Subsidiary question: How to have them considered as relations. Additional reference: |
Very interesting 🤣 I think the problem is here: sile/packages/math/texlike.lua Line 160 in f864fa1
(Unordered arguments won't be were expected). (1) But the solution is not only to change that ugly code1 to (2) Or will it? Yes sure, except if one is lucky with only two arguments. I think I found a bug in LuaJIT... Eek?
Footnotes
|
Formula:
This issue should have been a proposal: "Let's support TeX-like
\overset
which is a nice convenience"... and here would have been expected to produce the arrow with a smaller A on top of it... and surely a simple macro is enough, right?... But the above crashes with "Wrong number of arguments (2) for command overset (should be 1)"
Extra test: as in the code, fractions are defined as
\def{frac}{\mfrac{#2}{#1}}
and\frac{x}{y}
gives x / y...Let's try
\def{invfrac}{\mfrac{#2}{#1}}
and expecting it to be produce y / x...Same failure as above.
So we have these def-macro thing "to save (us) some typing"...
How can we achieve
\overset
? "When macros are not enough, creating new mathematical elements is quite simple" (... followed by lots of not-so-simple explanation for a newcomer). Sure. It's typically a case where a macro would have been neat, though.🌵 My dear math friends, yes, again... Will you start to typeset some real maths one day? Just askin'
Subsidiary remark: Nowhere does the documentation says how little of the TeX-like math syntax1 is currently supported... and if there are any real goals in making it more complete.... But the reality check leads to serious doubts... 😬
Footnotes
Read "commands". But you got the point. ↩
The text was updated successfully, but these errors were encountered: