You are on page 1of 29

Talk for PhD Students

Introduction A to L TEX Arun Anirudhan V Introduction


Special Characters

A Introduction to LTEX

Section Headings
Changing Fonts in Text Mode

Arun Anirudhan V1
SCTIMST

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

25-11-2011

Lists Tables Figures BibTeX Acknowledgement


1 Engineer-C, DTL. arun.anirudhan@nitc.ac.in

Arun Anirudhan V

A Introduction to L TEX

Outline
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

1 Introduction

Special Characters
2 Section Headings

Changing Fonts in Text Mode


3 Equations and Maths Mode

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots
4 Lists 5 Tables 6 Figures 7 BibTeX
Arun Anirudhan V
A Introduction to L TEX

Lists Tables Figures BibTeX Acknowledgement

Introduction
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

A What is LTEX?

Section Headings
Changing Fonts in Text Mode

A computer program (TEX- pronounced similar to tech) for typesetting documents. It takes a computer le, prepared according to the rules of A LTEX, and converts it to a PDF. D. E. Knuth and L. B. Lamport FREE

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

A Figure 1: The LTEXproduction chain

So...
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Pros
Separation of content and style. Quality. Its available for many machines. The typesettings better, especially the maths. LaTeX is extensible. If you want a new feature, you can look around for a free add-on or write one yourself. LaTeX is stable. It does not crash much and has low machine memory requirements. Microsoft Word, especially with large documents, requires both memory and speed. LaTeX software packages are forward and backward compatible. Automatic gure positioning is far more ecient in LaTeX than in Microsoft Word. Text Books, Poems, Music Notations, Presentations (Beamer),.... If you are in academia, you really ought to be using it! Anybody writing anything maths related will not nd a richer and better quality system. For example, even WikiPedia use LaTeX for rendering any formulas that appear on their site.

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

Arun Anirudhan V

A Introduction to L TEX

So...
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Cons
LaTeX is very fussy. A trivial mistake may mean that no output is generated and many error messages are displayed. You will need to check the error logs, x the problem and recompile. Without a WYSIWYG (What-You-See-Is-What-You-Get) front end, its not always easy to nd out how to do things. Font selection is dicult compared to selection in Word. LaTeX encourages (almost insists on) structured writing and the separation of style from content. This is not the way that many people (especially non-programmers) are used to working.

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Dont Worry... You People concentrate on CONTENT, Rest part WE have taken care.

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Hello Program
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

\documentclass[a4paper,12pt]{article} \begin{document} Hello, How are you all! \end{document} ------------------------------------hello.pdf

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Special Characters
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Most characters on the keyboard, such as letters and numbers, have their usual meaning. However the characters: \#$%& {}
Special meaning. Put a \ before these characters, except for \. Use \backslash. New paragraph. Quotation marks and dashes.

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Section Headings
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

\documentclass[a4paper,12pt]{article} \begin{document} \section{Section Headings} We explain in this section how to obtain headings for the various sections and subsections of our document. \subsection{Headings in the article Document Style} In the article style, the document may be divided up into sections, subsections and subsubsections, and each can be given a title, printed in a boldface font, simply by issuing the appropriate command. \subsubsection{This is a subsubsection} A new paragraph in subsubsection. \end{document} ------------------------------------second.pdf
Arun Anirudhan V
A Introduction to L TEX

Lists Tables Figures BibTeX Acknowledgement

Changing Fonts in Text Mode


Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

\documentclass[a4paper,12pt]{article} \begin{document} \tiny{This text is tiny.} \scriptsize{This text is scriptsize.} \footnotesize{This text is footnotesize.} \small{This text is small.} \normalsize{This text is normalsize.} \large{This text is large.} \Large{This text is Large.} \LARGE{This text is LARGE.} \huge{This text is huge.} \Huge{This text is Huge.} \end{document} ------------------------------------three.pdf

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Equations and Maths Mode


Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Cholesterylacetate + H2 O CholesterolEsterase Cholesterol + AceticAcid Cholesterol + O2 CholesterolOxidase Cholesten 3 one + H2 O2 2H2 O2 + Phenol + 4 aminoantipyrene Peroxidase Quinoneaminedye H2 O+ H2 O++ r2 $H_2O^+$ $H_2O^{++}$ $\pi r^2$ \begin{equation} \label{eq1} Cholesteryl acetate + H_2O Cholesterol + Acetic Acid \end{equation}
Arun Anirudhan V

(1) (2) (3)

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

\underrightarrow{Cholesterol Esterase}

A Introduction to L TEX

Greek Letters
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Table 1: Greek Letters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

\alpha \beta \gamma \delta \epsilon \zeta \eta \theta

\iota \kappa \lambda \mu \nu \xi o \pi

\rho \sigma \tau \upsilon \phi \chi \psi \omega

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Mathematical Symbols
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Table 2: Mathematical Symbols


\forall \exists \int \pm \sim \leftarrow \Uparrow \infty \triangle \oint \leq \equiv \rightarrow \Longleftrightarrow \sum \prod \partial \geq \cong \Leftarrow \rightleftharpoons

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Simple Program
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

\documentclass[a4paper,12pt]{article} \begin{document} The foundations of the rigorous study of \textit{analysis} were laid in the nineteenth century, notably by the mathematicians Cauchy and Weierstrass. Central to the study of this subject are the formal definitions of \textit{limits} and \textit{continuity}. Let $D$ be a subset of $\bf R$ and let $f \colon D \to \textbf{R}$ be a real-valued function on $D$. The function $f$ is said to be \textit{continuous} on $D$ if, for all $\epsilon > 0$ and for all $x \in D$, there exists some $\delta > 0$ (which may depend on $x$) such that if $y \in D$ satisfies \[ |y - x| < \delta \] then \[ |f(y) - f(x)| < \epsilon. \] One may readily verify that if $f$ and $g$ are continuous functions on $D$ then the functions $f+g$, $f-g$ and $f.g$ are continuous. If in addition $g$ is everywhere non-zero then $f/g$ is continuous. This is a good example. \end{document} -------------------------------------

Lists Tables Figures BibTeX Acknowledgement

one.pdf Arun Anirudhan V


A Introduction to L TEX

Fractions
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Fractions of the form The function f is given by

numerator denominator .

Section Headings
Changing Fonts in Text Mode

f (x) = 2x + for all real numbers x.

x 7 x2 + 4

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

The function $f$ is given by \[ f(x) = 2x + \frac{x - 7}{x^2 + 4}\] for all real numbers $x$.

Arun Anirudhan V

A Introduction to L TEX

Roots
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Square Roots

expression.

The roots of a quadratic polynomial ax 2 + bx + c with a = 0 are given by the formula b b 2 4ac 2a The roots of a quadratic polynomial $a x^2 + bx + c$ with $a \neq 0$ are given by the formula \[ \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \]

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

The roots of a cubic polynomial of the form x 3 3px 2q are given by the formula
3

q+

q2 p3 +

q2 p3

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

where the values of the two cube roots must are chosen so as to ensure that their product is equal to p.

Lists
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

A LTEX, provides the following list environments:

enumerate for numbered lists, itemize for un-numbered lists, description for description lists

Numbered lists are produced using


One Two 3 Three
1 2

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

Numbered lists are produced using \begin{enumerate} \item One \item Two \item Three \end{enumerate}
Arun Anirudhan V
A Introduction to L TEX

Lists....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Un-numbered lists are produced using


One Two Three

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

Un-numbered lists are produced using \begin{itemize} \item One \item Two \item Three \end{itemize}

Arun Anirudhan V

A Introduction to L TEX

Lists....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Description lists (for glossaries etc.) are produced: We now list the denitions of open ball, open set and closed set in a metric space. open ball The open ball of radius r about any point x is the set of all points of the metric space whose distance from x is strictly less than r ; open set A subset of a metric space is an open set if, given any point of the set, some open ball of suciently small radius about that point is contained wholly within the set; closed set A subset of a metric space is a closed set if its complement is an open set.
Arun Anirudhan V
A Introduction to L TEX

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

Lists....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

We now list the definitions of \emph{open ball}, \emph{open set} and \emph{closed set} in a metric space. \begin{description} \item[open ball] The \emph{open ball} of radius~$r$ about any point~$x$ is the set of all points of the metric space whose distance from $x$ is strictly less than $r$; \item[open set] A subset of a metric space is an \emph{open set} if, given any point of the set, some open ball of sufficiently small radius about that point is contained wholly within the set; \item[closed set] A subset of a metric space is a \emph{closed set} if its complement is an open set. \end{description}

Arun Anirudhan V

A Introduction to L TEX

Tables
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Tables can be produced using the tabular environment. For example, The rst ve International Congresses of Mathematicians were held in the following cities: Chicago Zurich Paris Heidelberg Rome U.S.A. Switzerland France Germany Italy 1893 1897 1900 1904 1908

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Tables....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

The first five International Congresses of Mathematicians were held in the following cities: \begin{center} \begin{tabular}{lll} Chicago&U.S.A.&1893\\ Zurich&Switzerland&1897\\ Paris&France&1900\\ Heidelberg&Germany&1904\\ Rome&Italy&1908 \end{tabular} \end{center}

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Tables....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

l r c | p{width} \hline

species a column of left-justied text species a column of right-justied text species a column of centered text inserts a vertical line between columns species a left-justied column of the given width draws an horizontal line

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

Figures
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Figure 2: BMT Wing


\begin{center} \begin{figure} \includegraphics[scale=.25]{bmt.jpg} \caption{BMT Wing} \label{fig1} \end{figure}\end{center}
Arun Anirudhan V
A Introduction to L TEX

Lists Tables Figures BibTeX Acknowledgement

Figures....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Specier h

Section Headings
Changing Fonts in Text Mode

t b p ! H

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Permission Place the oat here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot). Position at the top of the page. Position at the bottom of the page. Put on a special page for oats only. Override internal parameters Latex uses for determining good oat positions. Places the oat at precisely the location in the LaTeX code.

Use of label: Cross Referencing.

Lists Tables Figures BibTeX Acknowledgement

As shown in gure 2, we see the garden from BMT Wing palace.


As shown in figure \ref{fig1}, we see the garden from BMT Wing palace.

Arun Anirudhan V

A Introduction to L TEX

BibTeX
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

BibTeX is reference management software for formatting lists of references. The BibTeX tool is typically used together with the LaTeX document preparation system.
@article{mohan2010growth, title={Growth factor-mediated effects on chondrogenic differentiation of mesenchymal stem cells in 3D semi-IPN poly (vinyl alcohol)--poly (caprolactone) scaffolds}, author={Mohan, N. and Nair, P.D. and Tabata, Y.}, journal={Journal of Biomedical Materials Research Part A}, volume={94}, number={1}, pages={146--159}, year={2010}, publisher={Wiley Online Library} }

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

Arun Anirudhan V

A Introduction to L TEX

BibTeX.....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

\documentclass{article} \usepackage{harvard} \begin{document} Here is how cross referencing of references work, these are publications by \cite{misra2008additional}, \cite{misra2008unusual}, \cite{PubMed_21918157} and \cite{PubMed_17418741}. \bibliographystyle{agsm} \bibliography{Satyajeet1} \end{document}

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

BibTeX.....
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

@Article{ PubMed_21918157, url = "http://www.ncbi.nlm.nih.gov/pubmed/21918157", issn = "1526-7598", volume = "113", number = "5", year = "2011", month = nov, journal = "Anesth Analg", title = "Echo rounds: false tendons and accessory papillary muscle in the left ventricle.", pages = "1016--8", author = "Satyajeet Misra and Thomas Koshy and Soumendu Pal", affiliation = "DNB, PDCC, Department of Anesthesiology, Flat B-6, NFH, SCTIMST Institute Quarters, Poonthi Rd., Kumarapuram, Trivandrum, Kerala-695011, India. misrasatyajeet@gmail.co." }

Arun Anirudhan V

A Introduction to L TEX

Acknowledgement
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

Our Director. My SIC, Mr. Muraleedharan CV. Sharma Sir, Renuka Madam... IT Division, BMT Wing. Viola, Dawlee, Vidhya, Manju and Lynda..... For their Constructive Criticism.... CSED, NITC. My friends.... For their support....

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement Arun Anirudhan V


A Introduction to L TEX

References
Introduction A to L TEX Arun Anirudhan V Introduction
Special Characters

References
[1] [2] [3] [4] [5] [6] [7] [8] LaTeX, http://en.wikibooks.org/wiki/LaTeX accessed on November 25, 2011. Online tutorials on LaTeX, http://amath.colorado.edu/documentation/LaTeX/tutorial/ accessed on November 25, 2011. BibTeX, http://en.wikipedia.org/wiki/BibTeX accessed on November 25, 2011. LaTeX Math Symbols, http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html accessed on November 25, 2011. Google Scholar, http://scholar.google.co.in/ accessed on November 25, 2011. TeXMed - a BibTeX interface for PubMed, http://www.bioinformatics.org/texmed/ accessed on November 25, 2011. An introduction to LaTeX, http://www.latex-project.org/intro.html accessed on November 25, 2011. LaTeX isnt for everyone but it could be for you, http://www.osnews.com/story/10766/LaTeX_ isn_t_for_everyone_but_it_could_be_for_you/page1/ accessed on November 25, 2011.

Section Headings
Changing Fonts in Text Mode

Equations and Maths Mode


Superscripts and Subscripts Greek Letters Mathematical Symbols Fractions and Roots

Lists Tables Figures BibTeX Acknowledgement

Arun Anirudhan V

A Introduction to L TEX

You might also like