latex workshop
DESCRIPTION
how to learn Latex software...TRANSCRIPT
![Page 1: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/1.jpg)
LaTeXUsing Miktex 2.9
By-Vijay Yadav
![Page 2: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/3.jpg)
Basic Format
•Article \documentclass[12pt]{article}
![Page 4: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/4.jpg)
Basic Format
•Report \documentclass[a4paper,twoside,10pt]{report}
![Page 5: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/5.jpg)
Basic Format
•Book•\documentclass{book}
![Page 6: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/7.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/11.jpg)
Lists
Itemize•Source
–\begin{itemize}–\item Apple–\item Orange–\end{itemize}
•Result–Apple–Orange
Output
![Page 12: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/12.jpg)
Lists contd..
Enumerate•Source\begin{enumerate}\item Apple\item Orange\end{enumerate}•Result1. Apple2. Orange
Output
![Page 13: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/13.jpg)
Lists contd..(example)
Try these:
![Page 14: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/14.jpg)
Alignment
•Environments center, flushleft, flushright•Example
–\begin{flushright}–Right aligned–\end{flushright}
•ResultRight aligned
![Page 15: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/15.jpg)
Maths in LaTeX
•Use of \(……\) Example: I=\(\int_{0}^{1}\(\int_{0}^{x^{2}} e^{y/x} \,dy \,dx \)
Output
![Page 16: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/16.jpg)
Maths in LaTeX
•Use of \[……\] Example: I=\[\int_{0}^{1}\(\int_{0}^{x^{2}} e^{y/x} \,dy \,dx \]
Output
![Page 17: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/19.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/20.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/21.jpg)
Fraction
•\frac{1}{2}•\frac{x}{y}•\frac{\,dy}{\,dx} o/p:
Try these:
Output
![Page 22: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/22.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/23.jpg)
Try these:
![Page 24: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/24.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/25.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/26.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/27.jpg)
Tables Example
\begin{tabular}{|c|c|}\hline \(x\) & p \\ \hline \(x_{0}\) & 0 \\ \hline \(x_{n}\) & n \\ \hline\end{tabular}
![Page 28: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/28.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/29.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/30.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/31.jpg)
Thank You
![Page 32: Latex Workshop](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/32.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062411/577cc7a11a28aba711a18535/html5/thumbnails/33.jpg)
𝐶𝐻 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