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:

  • Center the Chapter Headings
  • Center the ‘Table of Contents ‘ caption
  • 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 đŸ™‚ )

Center the Chapter Headings

\usepackage{titlesec}

\titleformat{\chapter}[display]

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

Center the ‘Table of Contents ‘ caption

\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}
Advertisements
Tagged , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: