Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • MathPlayer
                        • MathML 3 elementary math examples
                        • MathML 3 elementary math examples

                        Elementary math elements

                        Reading time: 1min

                        MathML 3 adds several elements to handle elementary math problems. The elementary math elements below should be inside of either an mstack or an mlongdiv element. Both mstack and mlongdiv make the digits of numbers contained in them be in their own columns and their children appear in their own row; mlongdiv's first three children are the divisor, dividend, and result and are treated specially.

                        • msgroup groups rows with similar alignment; options control the position and shifting of children (see multiplication and division examples below)
                        • msrow groups digits and operators into a row; options control the position of the children
                        • msline draws lines between rows of the stack; options control the position, length, thickness, and overhang of the line
                        • mscarries annotates the following row with optional borrows/carries and/or crossouts; options control the default location, style, and size of the borrows, carries, and crossouts
                        • mscarry a borrow/carry and/or crossout for a single digit; options control the location, style, and size of the borrow, carry, and/or crossout

                        If a blank entry in a column is needed, the element none can be used. This is shown in some of the examples below.

                        Was this article helpful?

                        Yes
                        No
                        Give feedback about this article

                        Related Articles

                        • The four basic operations
                        • Arithmetic
                        • Hyperbolic functions
                        • MathML makes elementary math accessible

                        Making people’s STEM work more meaningful

                        MathType

                        • MathType for Office Tools
                        • MathType for Mac
                        • MathType for Microsoft 365
                        • MathType for Google Workspace
                        • MathType for LMS
                        • MathType for XML Editors
                        • Arabic notation
                        • Our products accessibility
                        • MathType is online

                        WirisQuizzes

                        Learning Lemur

                        Solutions for Education

                        • Blackboard Learn
                        • Brightspace by D2L
                        • Canvas
                        • Google Classroom
                        • Moodle
                        • Schoology

                        Solutions for Publishing Houses

                        Solutions for Technical Writers

                        Solutions for Chemistry

                        Integrations

                        • HTML Editors
                        • MathType in WordPress

                        Pricing

                        Company

                        Careers

                        Blog

                        Contact Us

                        Buy Now

                        Plugin Downloads

                        © Wiris 2025

                        • Cookie Settings
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Powered by Helpjuice
                        Expand