Made notebook typesetting work