# Directory `tex-archive/macros/latex/contrib/interval`

% (C) Lars Madsen, daleif@imf.au.dk, 2014/08/04 % This material is subject to the LaTeX Project Public License. % See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html % for the details of that license. This small package use the pgfkeys pacakge to solve the problem of using the ]a,b[ syntax for indicating an open interval. Instead of having to type this as \mathopen{]}a,b\mathclose{[} users can simply use \interval[open]{a}{b} (= ]a,b[ with proper spacing) Other usages include \interval[open left]{a}{b} (= ]a,b]) \interval{a}{b} (= [a,b]) We also provide a simple interface to switch to the more convenient (a,b) tradition for specifying an open interval. See the manual for details. * v0.2: typo in manual * v0.3: added the colorize option

## Files

Name | Size | Date | Notes |
---|---|---|---|

README | 804 | 2014-08-04 11:51 | |

interval.pdf | 312511 | 2014-08-04 11:46 | |

interval.sty | 2376 | 2014-08-04 11:40 | |

interval.tex | 4634 | 2014-08-04 11:46 |

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

## 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.

Package Details | interval |

Version | 0.3 2014-08-04 |

License | The LaTeX Project Public License 1.3 |

Maintainer | Lars Madsen |

Contained in | TeXlive as interval |

MikTeX as interval | |

Topics |
support for typesetting mathematics |