Modified latex templates