Standard LaTeX has the opportunity to write things like $\log^2{x}$
. This is however no longer possible when loading the skmath
package, because skmath
expects the logarithm to be entered $\log[<base>]{<expression>}$
.
Did I miss something or is it only possible to achieve this by re-redfining \log
.
PS: I am aware that $\log{<expression>}^2
is mathematically the same and have set it thus for now, but the above method seems more reader-friendly to me.
Best Answer
One possible redefinition of the syntax, if you are willing to accept this syntax as a solution:
The required redefinition:
A complete document, with a multitude of test cases showing the behavior for omitted/empty arguments:
And its output: