% Beginning of the preamble

\documentclass[12pt]{article} % Sets the orarching style of the document. book, report, letter, beamer (slides), etc. 

\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}

\newcommand{\MIT}{MIT}

\title{Experiment in laTex}
\author{Navroop Sahdev}
\date{January 28, 2015}

% \defines the function and the environment is then in the curly brackets

% End of the preamble 



\begin{document}



\maketitle

\begin{abstract}
This is the abstract of my paper.
I am going to summarize here.
\end{abstract}

Hello, world:
Today is \today
I am writing in \LaTeX.\ I am going to write some more to fill up the space.

Welcome to \MIT

And now we start a new paragraph. % Empty line means the start of a new paragraph.

\section{A new section}

\subsection{one more level}

\subsubsection{even more level}

\paragraph{A note} This is a paragraph with a heading. 

Dr.~Jekyll and Mr. Hyde % ~non breaking space. 
I have a ruler that is long 

\paragraph{Special characters} \$ \% \textbackslash

\begin{verbatim} % You can type anything literally within 
the verbatim environment and latex wouldn't do anything to it. 
YOU ARE IN TYPEWRITER MODE. YOU NEED TO BREAK THE LINE AS WELL!

\newpage % command for a new page.

On a new page

\end{verbatim}

\newpage

\paragraph{Styles}
\emph{This is now emphasized \emph{emphatically}.} % If you emph inside an emph it will leave it out

{\tiny Navroop \normalsize Navroop \large Navroop} % Brackets would restrict function commands. 

\begin{figure} %Latex automatically decides where to put the figure. 
\centering
\includegraphics[height=5cm]{innovation.jpg}
\caption{This is the caption}
\end{figure}

\section{mathematics!} % Latex uses maths as a separate environment. $ sign is used for maths

it is widely known that $1+1=2$

\begin{equation} % to disable the numbering of the equation just use {equation*}
	e^{i\pi} + 1 = 0
\end{equation}

\begin{align}
	\sin^2 x = \cos^2 x &=1 \\
	\tan^2 x + 1 &= \sec^2 x
\end{align}


\begin{align}
	\int_a^b \left( \frac{1}{1 + x^2} \right) dx &= \arctan b - \arctan a \\
\end{align}



\end{document}



% Terminal commands: cd Desktop
% Compling the document: pdflatex FileName
% All optional commands are enclosed in square brackets.

