large exampe from writeLatex