ed final tex