You are on page 1of 4

\documentclass{article}

\usepackage[utf8]{inputenc}

\title{demo}
\author{Prashant Mishra}
\date{August 2022}

\begin{document}

\maketitle

\section{Introduction}

\end{document}
//tabular

\documentclass{article}
\begin{document}
\begin{tabular}{|c{0.5 em}|c{0.2 em}|}
\hline PRN & SEAT\\
\hline 211 &33 \\[1 ex]
\hline
\end{tabular}
\end{document}

// for numbering list

\begin{enumerate}
\item First points
\item Second
\item Etc.
\end{enumerate}

// for alphabetic, numeric numbering

\documentclass{article}
\usepackage{enumitem}
\begin{document}

\begin{enumerate}[label=(\alph*)]
\item an apple
\item a banana
\item a carrot
\item a durian
\end{enumerate}

\begin{enumerate}[label=(\Alph*)]
\item an apple
\item a banana
\item a carrot
\item a durian
\end{enumerate}

\begin{enumerate}[label=(\roman*)]
\item an apple
\item a banana
\item a carrot
\item a durian
\end{enumerate}

\end{document}

// Left alignment

\documentclass{article}
\begin{flushleft}
One line with text \\
A second line with text\\
...
\end{flushleft}
\end{document}

// Right alignment
\documentclass{article}
\begin{flushright}
One line with text\\
A second line with text \\
...
\end{flushright}
\end{document}

// Center Alignment
\documentclass{article}
\begin{center}
One line with text \\
New line with text \\
...
\end{center}
\end{document}

// Integration
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ \int_a^b x^2\;\mathrm{d}x= \tfrac{1}{3} x^3 \Big|_a^b \]
\end{document}

// Differentiation
\documentclass{article}%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage[thinc]{esdiff}
\begin{document}
\begin{alignat*}{3}
\diff{f}{x} &\qquad \diff*[4]{g}{t}{t = 1} \\[2ex]
\diffp{f}{x} &\qquad\diffp{g}{tu}& & \qquad & \diffp*{g}{{t^2}{u^3}}{(0,0)}
\end{alignat*}
\end{document}

//expression sqrt(x^7+-)
\documentclass{article}
\begin{document}
This is a math expression \(\sqrt{x^7+-}\) inside
text. And this is also the same:
\begin{math}
\sqrt{x^2+1}
\end{math}
but by using another command. This is a simple math
expression without numbering\[\sqrt{x^2+1}\]
separated from text. This is also the same: \begin{displaymath}
\sqrt{x^2+1}\
\end{displaymath} \begin{equation}
\sqrt{x^2+1}
\end{equation}
\end{document}

//pythagoras theoram exprtession


\documentclass{article}
\begin{document}

The well known Pythagorean theorem \(x^2+y^2= z^2\) was proved to be invalid for
other exponents. Meaning the next equation has no integer solutions:

\[x^n+y^n = z^n\]
\[\sqrt{x^2+1}\]

\end{document}

//3x3 table(3cell)
\documentclass{article}
\begin{document}
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
cell1 & cell2 & cell3\\
cell4 & cell5 & cell6\\
cell7 & cell8 &cell9\\
\hline
\end{tabular}
\end{center}
\end{document}

\\insert image

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{A project with images}


\author{Overleaf}
\date{}

\begin{document}

\maketitle

\section{Introduction}
\begin{figure}[htp]
\centering
\includegraphics[width=4cm]{man}
\caption{symbol of our college}
\label{fig:galaxy}
\end{figure}

\end{document}

\\image at center
\documentclass{article}

\usepackage[centercaption]{sidecap}

\usepackage{graphicx}

.*****our pune university*****\\


\centering
\begin{document}
\includegraphics[width=8cm,height=7cm]{pune}

\caption{Fig 1:}
\centering
\This is the image\\
In this we try to bing everything
\end{document}

You might also like