# interval – Format mathematical intervals, ensuring proper spacing

When typing an open interval as `$]a,b[$`, a closing
bracket is being used in place of an opening fence and vice versa.
This leads to the wrong spacing in, say,
`$]-a,b[$ or $A\in]a,b[=B$`. The package attempts to solve
this using:

`\interval{a}{b}` -> `[a,b]`

`\interval[open]{a}{b}` -> `]a,b[`

`\interval[open left]{a}{b}` -> `]a,b]`

The package also supports fence scaling and ensures that the enclosing fences will end up having the proper closing and opening types.

TeX maths does not do this job properly.

Sources | `/macros/latex/contrib/interval` |

Documentation | |

Version | 0.3 2014-08-04 |

License | The LaTeX Project Public License 1.3 |

Maintainer | Lars Madsen |

Contained in | TeX Live as interval |

MiKTeX as interval | |

Topics |
support for typesetting mathematics |

Download the contents of this package in one zip archive (306.9k).

## Suggestions

Maybe you are interested in the following packages as well.

- fixmath: Make maths comply with ISO 31-0:1992 to ISO 31-13:1992
- gensymb: Generic symbols for both text and math mode
- rmathbr: Repeating of math operator at the broken line and the new line in inline equations
- conteq: Typeset multiline continued equalities