\begin{document}\maketitle
We have now added a title, author and date to our first \LaTeX{} document!
% This line here is a comment. It will not be printed in the document.\end{document}
NISER | School of Computer Sciences (CSS)
Latex - Bold, italics and underlining
Bold - \textbf{}
Italics - \textit{}
Underline - \underline{}
Some of the \textbf{greatest}
discoveries in \underline{science}
were made by \textbf{\textit{accident}}.
Also check with \emph{}
NISER | School of Computer Sciences (CSS)
Latex - Images
Caption for the image
\usepackage{graphicx}\begin{figure}[h]\centering\includegraphics[width=0.25\textwidth]{sample}\caption{a nice plot}\label{fig:mesh1}\end{figure}
You can refer to a figure using \ref{fig:mesh1}
NISER | School of Computer Sciences (CSS)
Latex - Lists
Unordered lists
\begin{document}\begin{itemize}\item The individual entries are indicated with a black dot, a so-called bullet.
\item The text in the entries may be of any length.
\end{itemize}
Ordered lists
\begin{enumerate}
\item This is the first entry in our list
\item The list numbers increase witheach entry we add
\end{enumerate}
NISER | School of Computer Sciences (CSS)
Latex - Math
One of the most widely supported feature is writing maths in LaTeX
\begin{equation}
E=m
\end{equation}
In physics, the mass-energy equivalence is stated by the equation $E=mc^2$.
NISER | School of Computer Sciences (CSS)
Latex - Abstract
Scientific documents normally have an overview in the beginning
abstract environment will help
\begin{document}
\begin{abstract}
This is a simple paragraph at the beginning of the
document. A brief introduction about the main subject.
\end{abstract}
\end{document}
NISER | School of Computer Sciences (CSS)
Latex - Chapters and Section
\chapter{First Chapter}\section{Introduction}
This is the first section.
\section{Second Section}
Text for second section
\subsection{First Subsection}
First subsection
\section*{Unnumbered Section}
No numbers
NISER | School of Computer Sciences (CSS)
Latex - Tables
Table \ref{table:data} is an example of referenced \LaTeX{} elements.
\begin{table}[h!]\centering\begin{tabular}{||c c c c||}\hline
Col1 & Col2 & Col2 & Col3 \\ [0.5ex]
\hline\hline
1 & 6 & 87837 & 787 \\
2 & 88 & 788 & 6344 \\ [1ex]
\hline\end{tabular}\caption{Table to test captions and labels}\label{table:data}\end{table}