Example #1
0
        public UnderOverAtom(Atom baseAtom, Atom underOver, TexUnit underOverUnit, double underOverSpace,
                             bool underOverScriptSize, bool over)
        {
            SpaceAtom.CheckUnit(underOverUnit);

            BaseAtom = baseAtom;

            if (over)
            {
                UnderAtom          = null;
                UnderSpace         = 0;
                UnderSpaceUnit     = 0;
                UnderScriptSmaller = false;
                OverAtom           = underOver;
                OverSpaceUnit      = underOverUnit;
                OverSpace          = underOverSpace;
                OverScriptSmaller  = underOverScriptSize;
            }
            else
            {
                UnderAtom          = underOver;
                UnderSpaceUnit     = underOverUnit;
                UnderSpace         = underOverSpace;
                UnderScriptSmaller = underOverScriptSize;
                OverSpace          = 0;
                OverAtom           = null;
                OverSpaceUnit      = 0;
                OverScriptSmaller  = false;
            }
        }
Example #2
0
        public UnderOverAtom(Atom baseAtom, Atom under, TexUnit underUnit, double underSpace, bool underScriptSize,
                             Atom over, TexUnit overUnit, double overSpace, bool overScriptSize)
        {
            SpaceAtom.CheckUnit(underUnit);
            SpaceAtom.CheckUnit(overUnit);

            BaseAtom           = baseAtom;
            UnderAtom          = under;
            UnderSpaceUnit     = underUnit;
            UnderSpace         = underSpace;
            UnderScriptSmaller = underScriptSize;
            OverAtom           = over;
            OverSpaceUnit      = overUnit;
            OverSpace          = overSpace;
            OverScriptSmaller  = overScriptSize;
        }