## LaTeX trickz

Here are some ‘fine-tuning’ stuff for LaTeX that I recently learned. Was in the process of making a report for college, which required me to do the following formatting with LaTeX:

• Easily adjust the basic left, right, top and bottom margins.

Here is what i did for each of my requirement (obviously, learned from the vast knowledge base of the INTERNET 🙂 )

```\usepackage{titlesec}

\titleformat{\chapter}[display]

{\normalfont\huge\bfseries\centering}{\chaptertitlename\ \thechapter}{20pt}{\Huge}```

```\renewcommand{\contentsname}{\centerline{Table of contents}}

\tableofcontents```

Easily adjust the basic left, right, top and bottom margins.

```\usepackage{simplemargins} %simplemargins.sty has to be copied to your local LaTeX directory or working directory
\setleftmargin{4cm}
\setrightmargin{3cm}
\settopmargin{3cm}
\setbottommargin{3cm}```