support for memoir class and the easy parts of xypic support