latex tutorial thesis writing example of a case study dissertation