Comprehensive TeX Archive Network

Direc­tory 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

  \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

Down­load the con­tents of this pack­age in one zip archive (306.9k).

in­ter­val – For­mat math­e­mat­i­cal in­ter­vals, en­sur­ing proper spac­ing

When typ­ing an open in­ter­val as $]a,b[$, a clos­ing bracket is be­ing used in place of an open­ing fence and vice versa. This leads to the wrong spac­ing in, say, $]-a,b[$ or $A\in]a,b[=B$. The pack­age at­tempts to solve this us­ing:
\in­ter­val{a}{b} -> [a,b]
\in­ter­val[open]{a}{b} -> ]a,b[
\in­ter­val[open left]{a}{b} -> ]a,b]

The pack­age also sup­ports fence scal­ing and en­sures that the en­clos­ing fences will end up hav­ing the proper clos­ing and open­ing types.

maths does not do this job prop­erly.

Ver­sion0.3 2014-08-04
Li­censeThe Project Public Li­cense 1.3
Main­tainerLars Mad­sen
Con­tained inTeX Live as in­ter­val
MiKTeX as in­ter­val
Topics sup­port for type­set­ting math­e­mat­ics
Guest Book Sitemap Contact Contact Author