LaTeX cmd Error: Command '\titlefont' already defined.

Please do format your code correctly to help any readers help you.

See FAQ: How to format your code