Beispiel #1
0
        public void MakeContext()
        {
            switch (ElementName)
            {
            case "math":
                MathContext.CMath(this);
                break;

            case "mstyle":
                MathContext.CMStyle(this);
                break;

            case "mtable":
                MathContext.CMTable(this);
                break;

            case "mi":
                MathContext.CMi(this);
                break;

            case "mo":
                MathContext.CMo(this);
                break;

            default:
                MathContext.DefaultContext(this);
                break;
            }
        }
Beispiel #2
0
        public void MakeChildContext(MathNode child)
        {
            switch (ElementName)
            {
            case "mfrac":
                MathContext.ChildCMFrac(this, child);
                break;

            case "mroot":
                MathContext.ChildCMRoot(this, child);
                break;

            case "msub":
                MathContext.ChildCMSub(this, child);
                break;

            case "msup":
                MathContext.ChildCMSup(this, child);
                break;

            case "msubsup":
                MathContext.ChildCMSubSup(this, child);
                break;

            case "mmultiscripts":
                MathContext.ChildCMMultiScripts(this, child);
                break;

            case "munder":
                MathContext.ChildCMUnder(this, child);
                break;

            case "mover":
                MathContext.ChildCMOver(this, child);
                break;

            case "munderover":
                MathContext.ChildCMUnderOver(this, child);
                break;

            default:
                MathContext.DefaultChildContext(this, child);
                break;
            }
        }