Modified latex template