Esempio n. 1
0
        private Box Enclosure_updiagonalstrike(TexEnvironment environment, Box morphbox)
        {
            var texFont = environment.MathFont;
            var style   = environment.Style;
            var axis    = texFont.GetAxisHeight(style);
            var defaultLineThickness = texFont.GetDefaultLineThickness(style);

            var ddrule = new UpDiagonalRule(environment, 1, -morphbox.TotalWidth, morphbox.TotalHeight, 0);
            var resbx  = new HorizontalBox();

            resbx.Add(morphbox);
            resbx.Add(new StrutBox(-morphbox.Width, -morphbox.Height, 0, 0));
            resbx.Add(ddrule);
            return(resbx);
        }
Esempio n. 2
0
        protected override Box CreateBoxCore(TexEnvironment environment)
        {
            var texFont = environment.MathFont;
            var style   = environment.Style;
            var axis    = texFont.GetAxisHeight(style);
            var defaultLineThickness = texFont.GetDefaultLineThickness(style);

            var baseBox = this.BaseAtom == null ? StrutBox.Empty : this.BaseAtom.CreateBox(environment);

            var ddrule = new UpDiagonalRule(environment, 1.3, -baseBox.TotalWidth, baseBox.TotalHeight, 0);
            var resbx  = new HorizontalBox();

            resbx.Add(baseBox);
            resbx.Add(new StrutBox(-baseBox.Width, -baseBox.Height, 0, 0));
            resbx.Add(ddrule);
            return(resbx);
        }