jlatexmath
jlatexmath copied to clipboard
TypedAtom not generated when named function is inside a BigOperatorAtom
I am developing a class to automate the colouring of LaTeX elements based on their type (numbers, Greek letters, operators, etc). Currently I can identify named functions as the atoms inside a TypedAtom container, which works fine. The problem is that if the named functions are the basis of a BigOperatorAtom (subscripts, superscripts), the TypedAtom container is not generated. For example, in the LaTeX code "\sin(x)" , the CharAtoms s, i, n are contained in a TypedAtom, but in the code "\sin^2(x)" the CharAtoms s,i,n are not. Thanks, David