XML-Technologien / MathML / Applying styles and transformations / Using CSS with MathML

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

All the examples used in the previous section used HTML element and attribute names, for the purpose of illustration. However, you can use a CSS stylesheet to control the appearance of any type of XML document. All that is needed is to define appropriate style rules that refer to the element and attribute names used in that document. In particular, you can use CSS style rules to specify how MathML expressions should be rendered. Style rules for MathML and XHTML can then be combined in a single stylesheet that can be used, for example, to control the appearance of an XHTML document that contains embedded MathML equations.

Some examples of effects you can achieve with a custom CSS stylesheet, include the following:

In this section, we give some examples of CSS rules involving MathML presentation markup. These rules illustrate how you can use a CSS stylesheet to control specific aspects of the display of MathML.

   

   

 

 

 

 

nach oben