Brackets are an essential part of maths which while serving a functional purpose also significantly improve readability. In MathML they are included with the <mfenced> tag:
|
|
It is important (and somewhat irritating) to note that <mfenced> must contain exactly one child tag if it is simply to enclose the contents in brackets. If it contains more than one child tag, separators are inserted between them:
|
|
Using the 'open', 'close' and 'separator' attributes we can specify the paretheses and separators used:
|
|
The separator attribute can also accept a list if more than one type is required (eg: separators=":~*").
As an aside targeted at my other main interest: the physicists among you will notice that this is ideally suited to the 'bra-ket' notation of quantum mechanics:
|
|