Latex tutorial , how to automate formatting of documents? For Beginners