latex workshop

33
LaTeX Using Miktex 2.9 By -Vijay Yadav

Upload: db16101994

Post on 21-Jul-2016

25 views

Category:

Documents


0 download

DESCRIPTION

how to learn Latex software...

TRANSCRIPT

Page 1: Latex Workshop

LaTeXUsing Miktex 2.9

By-Vijay Yadav

Page 2: Latex Workshop

Basics•Document Class\documentclass[options]{class}options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,...class = article, report, book,...•Packages\usepackage{package name}epsfig = insert PS pictures into the documentfancyhdr = easy definition of footer and header

Page 3: Latex Workshop

Basic Format

•Article \documentclass[12pt]{article}

Page 4: Latex Workshop

Basic Format

•Report \documentclass[a4paper,twoside,10pt]{report}

Page 5: Latex Workshop

Basic Format

•Book•\documentclass{book}

Page 6: Latex Workshop

Body of Text

•Start with \begin{document}•End with \end{document}•Typesetting Text

–\\ or \newline and \newpage–Bold \textbf{……………} or \bf –Emphasise \emph{…………} –Italic \textit{………} or \it{..}–Underline \underline{…………} or \ul

Page 7: Latex Workshop

Body of Text contd..(examples)

•Example output:

Following are examples of \textbf{Bold}\emph{Emphsise}\textit{Italic}\underline{Underline}

Output

Try these:-

Page 8: Latex Workshop

Format•Sections

– \chapter{…} - To be used with book and report document classes

• Eg \chapter{Latex}– \section{…}

1.1,1.2 ,.. • Eg \section{Introduction}

– \subsection{…} 1.1.1,1.1.2,..

• Eg \subsection{Latex is good}– \subsubsection{…} 1.1.1.1,…….

• Eg \subsubsection{It’s a way of representing document}

– \appendix - changes numbering scheme

output

Page 9: Latex Workshop

Titles, Authors and others\title{…} \author{…}

Eg:-\title{These is TITLE} \author{Here is the Author's name}

Format Contd.

Output

Paragraph and footnote\paragraph{…}\footnote{…}Eg:-\paragraph{These is paragraph1}\par{These is paragraph2}\footnote{These is FOOTER}

Output

Page 10: Latex Workshop

Format Contd.•Labels

–\label{marker} - Marker in document.–\pageref{marker} - Displays page no. of

marker.–\ref{marker} - Displays section location of

marker.•Itemize

–Use either enumerate, itemize or description.

Page 11: Latex Workshop

Lists

Itemize•Source

–\begin{itemize}–\item Apple–\item Orange–\end{itemize}

•Result–Apple–Orange

Output

Page 12: Latex Workshop

Lists contd..

Enumerate•Source\begin{enumerate}\item Apple\item Orange\end{enumerate}•Result1. Apple2. Orange

Output

Page 13: Latex Workshop

Lists contd..(example)

Try these:

Page 14: Latex Workshop

Alignment

•Environments center, flushleft, flushright•Example

–\begin{flushright}–Right aligned–\end{flushright}

•ResultRight aligned

Page 15: Latex Workshop

Maths in LaTeX

•Use of \(……\) Example: I=\(\int_{0}^{1}\(\int_{0}^{x^{2}} e^{y/x} \,dy \,dx \)

Output

Page 16: Latex Workshop

Maths in LaTeX

•Use of \[……\] Example: I=\[\int_{0}^{1}\(\int_{0}^{x^{2}} e^{y/x} \,dy \,dx \]

Output

Page 17: Latex Workshop

Symbols

•There are a great deal of examples such as Greek letters, set and relations symbols, arrows, binary operators, etc. Example:

\forall x \in X, \quad \exists y \leq \epsilon

Page 18: Latex Workshop

Greek Symbol

•Greek letters are commonly used in mathematics Example:

\alpha, A, \beta, B, \gamma, \Gamma, \pi, \Pi, \phi, \varphi, \Phi

Page 19: Latex Workshop

Subscript and Superscript

•Subscript Underscore(_) is used for Subscript. For Example

•Superscript caret (^) is used for Superscript. For Example

Code: x_{1} \\ a_{x} \\

Code: x^{2} \\ a^{x} \\

Page 20: Latex Workshop

Operators•An operator is a function that is written as a word: e.g. trigonometric functions (sin, cos, tan), logarithms and exponentials (log, exp). LaTeX has many of these defined as commands: For Example:1. \cos (2\theta) = \cos^2 \theta - \sin^2 \theta

2. \[\lim_{x \to \infty} \exp(-x) = 0 \]

Try these

Page 21: Latex Workshop

Fraction

•\frac{1}{2}•\frac{x}{y}•\frac{\,dy}{\,dx} o/p:

Try these:

Output

Page 22: Latex Workshop

Integration

•Integral without limits

\int x \,dx•Integral with limits \int_{a}^{b} x \,dx

•Double Integration

\iint \limits_{R} x \,dx•Triple Integration

\iiint \limits_{V} x \,dx

Page 23: Latex Workshop

Try these:

Page 24: Latex Workshop

Equations in LaTeX

\begin{equation} \label{eq:someequation}5^2 - 5 = 20\end{equation}•this references the equation \ref{eq:someequation}

Page 25: Latex Workshop

Tables in LaTeX

•Columns–\begin{tabular}{|…|…|}–\end{tabular}

•Rows–& - Split text into columns–\\ - End a row–\hline - Draw line under row– e.g. 123123 & 34.00\\ \hline

Two Columnsl = automatically adjust size, left justifyr = automatically adjust size, right justifyp = set size e.g. p{4.7cm}c = Centre text

Page 26: Latex Workshop

Example of Table

Name Roll No. Branch

Student1 1 Comps

Student2 2 I.T

\begin{tabular}{|l|r|c|} \hlineName & Roll No. & Branch \\ \hlineStudent1 & 1 & Comps \\ \hlineStudent2 & 2 & I.T \\ \hline\end{tabular}

Page 27: Latex Workshop

Tables Example

\begin{tabular}{|c|c|}\hline \(x\) & p \\ \hline \(x_{0}\) & 0 \\ \hline \(x_{n}\) & n \\ \hline\end{tabular}

Page 28: Latex Workshop

Matrix\[\begin{pmatrix} a & b \\c & d \end{pmatrix}\quad\begin{bmatrix} a & b \\c & d \end{bmatrix}\quad\begin{vmatrix} a & b \\c & d \end{vmatrix} \]

Page 29: Latex Workshop

Matrix Example \[\begin{bmatrix} \(x_{1}\) & \(x_{2}\) \\\(y_{1}\) & \(y_{2}\)\end{bmatrix}=\quad\begin{bmatrix} \(a\sin \theta\) & \(a\cos \theta\) \\\(b\cos\theta\) & \(b\sin \theta\) \end{bmatrix} \]

Page 30: Latex Workshop

Images in LaTeX\begin{figure}\begin{center}\includegraphics[scale=1]{block.pdf} \end{center}\caption{block dig}\end{figure}

\begin{figure}\begin{flushleft}\includegraphics[scale=1]{handset.jpg} \end{flushleft}\caption{handset}\end{figure}

Page 31: Latex Workshop

Thank You

Page 32: Latex Workshop

Sources of Water

Surface-Water Rain-Water Underground-Water Sea-Water

Flowing-Water Still-Water Springs Tube-Wells Wells

Streams Rivers Sea

Lakes Reservoirs Ponds

Page 33: Latex Workshop

𝐶𝐻 2 𝐶𝐻 2𝑁 𝑁𝐶𝐻 2𝐶ΟΟΝ 𝑎Ν 𝑎ΟΟ𝐶𝐻 2𝐶

𝐶𝐻 2𝐶ΟΟ𝐻H ΟΟ𝐶𝐻2𝐶

Lime-Soda Process

Batch-process Continuous-process

Batch-process Continuous-process

Cold Lime-Soda Process Hot Lime-Soda

Process