Library for compound documents in MATE