L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

Similar documents
Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

Introduction to LaTeX. Paul Fodor Stony Brook University

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

Workshop on LaTeX. Outline. Muhammad Mostafa Monowar 11/13/2017

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

Introduction to L A TEX

Helen Cameron. A Brief Overview of LATEX

Learning L A TEX. Patrick Lam

Introduction to LATEX

Helen Cameron. A Brief Overview of LATEX

David Helmbold, October 2005, Revised October 2007

MATLAB for the Sciences

Assessments for CS students:

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

Lecture 1: Short summary of LaTeX basics

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math

An introduction to LaTeX

Researcher Development Unit: Introduction to Latex

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

Introduction to L A TEX

A Demonstration of the L A TEX 2ε Class File for the Oxford University Press Ltd Journal. First Author 1 and Second Author 2.

COMS 6100 Class note

PRISM Introduction to L A TEX

Introduction to L A TEX beamer

Document Preparation Using L A TEX

A Very Brief Introduction to L A T E X MAT 3535

Dec. 27 th, 2010 University of Isfahan

LaTeX. Information Literacy II EN(IL2) Course

An Introduction to LATEX

Introduzione a LaTex. Fabrizio Messina

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to LaTeX. Christoph Pickl

Math 235: Introduction to LaTeX

Introduction to L A TEX

T E X and L A T E X Document preparation tools

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Basic L A TEX. what is LaTeX?

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Very Short Introduction to LaTeX

A LAT E X Tutorial. Evangelos Milios. March 15, 2004

عمادة البحث العلمي جامعة الملك سعود

An Introduction to L A TEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

L A TEX. The Logo. Introduction to L A TEX. Overview. Primary Benefits. Kinds of Documents. Bill Slough and Andrew Mertz

Getting Started with L A T E X for a Technical Document or Thesis

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program

What is L A T E X? Dan Yasaki. June 4, 2018 REU at Elon University. UNC Greensboro. Dan Yasaki What is LAT E X? 1 / 22

Introduction to L A TEX

An introduction to LaTeX

Lecture 3-Introduction to Latex (II)

Introduction to LAT E X

Introduction to L A TEX

How to get started in L A TEX

An Introduction to LATEX

Basics. Options. Commands

LearningLatex. % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

Formatting with LaTeX

A quick guide to L A TEX

LaTeX: Scientific Document Writing

Workshop: A Simple Introduction to L A TEX

Introduction to L A TEX

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58

Introduction to L A TEX

GROUP ASSIGNMENT. L A TEX Assignment 1/3

A Grasshopper s Approach to L A TEX

Document Preparation Word Processors

Become a L A TEX Guru

1 Obtaining LyX and L A TEX

An introduction to L A TEX for students

Outline. A Sneak Peek

Introduction to L A TEX

Introduction to LaTeX

Introduction to LAT E X

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

An introduction to LATEX

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

L A TEXcourse. Carmen Alonso Montes. 30th May-2nd June, 2016

Praktische Aspekte der Informatik. Moritz Mühlhausen Prof. Marcus Magnor

Getting started with Latex

L A TEX Workshop. Don Brower

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).

L A TEX for Psychological Researchers

A L A TEX-Package for IEEE PES Transactions

A demonstration of the L A TEX2ε class file for the International Journal of Network Management

INTRODUCTION TO L A TEX

How to L A TEX. George Wong, David Mykytyn. 6 October 2016

LaTeX. Information Literacy II EN(IL2) Course

L A T E X Tutorial. Wanmin Liu August. Department of Mathematics The Hong Kong University of Science and Technology

Student Learning Service: Introduction to Latex

L A TEX 101. John Gardner and Alex Yuffa. May 2, How does L A TEX work? Exercise... 4

A Brief Introduction to L A TEX

EBESS and MESS Presents: Learn to LaTeX. Presented by Joshua Tambunan 13 February 2018

Appendix B: Latex survival guide

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

Transcription:

L A T E X Workshop Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 1

Outline of the Workshop Introduction to LAT E X LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 2

Outline of the Workshop Introduction to LAT E X Document structure LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 2

Outline of the Workshop Introduction to LAT E X Document structure Document classes and packages LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 2

Outline of the Workshop Introduction to LAT E X Document structure Document classes and packages Environments LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 2

Outline of the Workshop Introduction to LAT E X Document structure Document classes and packages Environments Exercises LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 2

Introduction to L A T E X LAT E X is a text processing system. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 3

Introduction to L A T E X LAT E X is a text processing system. Base engine is T E X (Donald Knuth, 1978) developed for typesetting, to include formulae. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 3

Introduction to L A T E X LAT E X is a text processing system. Base engine is T E X (Donald Knuth, 1978) developed for typesetting, to include formulae. LAT E X focuses on document structure than details (Leslie Lamport 1985). LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 3

Introduction to L A T E X LAT E X is a text processing system. Base engine is T E X (Donald Knuth, 1978) developed for typesetting, to include formulae. LAT E X focuses on document structure than details (Leslie Lamport 1985). Has collection of defined commands to create names and numbers for title, section, etc. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 3

Introduction to L A T E X LAT E X is a text processing system. Base engine is T E X (Donald Knuth, 1978) developed for typesetting, to include formulae. LAT E X focuses on document structure than details (Leslie Lamport 1985). Has collection of defined commands to create names and numbers for title, section, etc. AMS-T E X was a collection of extensions to T E X with more advanced mathematical typesetting features. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 3

Introduction to L A T E X LAT E X is a text processing system. Base engine is T E X (Donald Knuth, 1978) developed for typesetting, to include formulae. LAT E X focuses on document structure than details (Leslie Lamport 1985). Has collection of defined commands to create names and numbers for title, section, etc. AMS-T E X was a collection of extensions to T E X with more advanced mathematical typesetting features. LAT E X 2ε is the latest version of LAT E X in use. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 3

Document Structure LAT E X document is a plain text file with required commands and environments. The extension of the file is.tex All commands start with a \. Eg., \caption, \label, etc. A LAT E X document starts with a declaration of the document type by \documentclass{} The matter to type set are typed between \begin{document} the content \end{document} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 4

Document Structure (Cont..) LAT E X documents are classified into article, report, book, etc. A typical document can be; \documentclass{article} \begin{document} content... \end{document} Practice: Create a sample document LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 5

Document Compilation We have: file.tex LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi Extension dvi stands for device independent. A.dvi file can be viewed by yap, texworks, evince, xdvi, okular, etc. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi Extension dvi stands for device independent. A.dvi file can be viewed by yap, texworks, evince, xdvi, okular, etc. To get.ps or.pdf files; Do: dvips file.dvi to get;.ps file LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi Extension dvi stands for device independent. A.dvi file can be viewed by yap, texworks, evince, xdvi, okular, etc. To get.ps or.pdf files; Do: dvips file.dvi to get;.ps file Do: ps2pdf file.ps to get;.pdf file LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi Extension dvi stands for device independent. A.dvi file can be viewed by yap, texworks, evince, xdvi, okular, etc. To get.ps or.pdf files; Do: dvips file.dvi to get;.ps file Do: ps2pdf file.ps to get;.pdf file Do: dvipdf file.dvi to get;.pdf file LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi Extension dvi stands for device independent. A.dvi file can be viewed by yap, texworks, evince, xdvi, okular, etc. To get.ps or.pdf files; Do: dvips file.dvi to get;.ps file Do: ps2pdf file.ps to get;.pdf file Do: dvipdf file.dvi to get;.pdf file An easy way to produce.pdf files: Do: pdflatex file.dvi and get;.pdf file LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Document Compilation We have: file.tex Do: latex file.tex to get: file.dvi Extension dvi stands for device independent. A.dvi file can be viewed by yap, texworks, evince, xdvi, okular, etc. To get.ps or.pdf files; Do: dvips file.dvi to get;.ps file Do: ps2pdf file.ps to get;.pdf file Do: dvipdf file.dvi to get;.pdf file An easy way to produce.pdf files: Do: pdflatex file.dvi and get;.pdf file Practice: Compile the sample document LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 6

Documentclass and Arguments Different document classes are: article: To typeset articles for journals, conferences, etc. report: To typeset reports of any form book: To typeset a book LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 7

Documentclass and Arguments Different document classes are: article: To typeset articles for journals, conferences, etc. report: To typeset reports of any form book: To typeset a book Optional arguments are provided in square brackets before the class type LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 7

Documentclass and Arguments Different document classes are: article: To typeset articles for journals, conferences, etc. report: To typeset reports of any form book: To typeset a book Optional arguments are provided in square brackets before the class type Eg: \documentclass[]{article} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 7

Documentclass and Arguments Different document classes are: article: To typeset articles for journals, conferences, etc. report: To typeset reports of any form book: To typeset a book Optional arguments are provided in square brackets before the class type Eg: \documentclass[]{article} Arguments are font size, paper size, document mode, number of columns, etc. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 7

Documentclass and Arguments Different document classes are: article: To typeset articles for journals, conferences, etc. report: To typeset reports of any form book: To typeset a book Optional arguments are provided in square brackets before the class type Eg: \documentclass[]{article} Arguments are font size, paper size, document mode, number of columns, etc. \documentclass[12pt,a4paper,twocolumn]{article} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 7

Documentclass and Arguments Different document classes are: article: To typeset articles for journals, conferences, etc. report: To typeset reports of any form book: To typeset a book Optional arguments are provided in square brackets before the class type Eg: \documentclass[]{article} Arguments are font size, paper size, document mode, number of columns, etc. \documentclass[12pt,a4paper,twocolumn]{article} Practice: Use the arguments in your sample document and see the changes LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 7

Packages Packages are included to support different functionalities: To get mathematical symbols, functions, etc., to include a figure in the document, to change a default font, and so on... LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 8

Packages Packages are included to support different functionalities: To get mathematical symbols, functions, etc., to include a figure in the document, to change a default font, and so on... Packages are included in the preamble of the document, the area between the \documentclass and \begin{document} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 8

Packages Packages are included to support different functionalities: To get mathematical symbols, functions, etc., to include a figure in the document, to change a default font, and so on... Packages are included in the preamble of the document, the area between the \documentclass and \begin{document} Eg: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,amsfonts} \usepackage{times,natbib,graphicx} \begin{document} matter \end{document} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 8

Packages Packages are included to support different functionalities: To get mathematical symbols, functions, etc., to include a figure in the document, to change a default font, and so on... Packages are included in the preamble of the document, the area between the \documentclass and \begin{document} times change the font to Times Roman. natbib allows author year type of citations similar to Disney et al. (2003), etc., graphicx supports figure inclusion, and many more packages to explore... LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 8

Packages Packages are included to support different functionalities: To get mathematical symbols, functions, etc., to include a figure in the document, to change a default font, and so on... Packages are included in the preamble of the document, the area between the \documentclass and \begin{document} times change the font to Times Roman. natbib allows author year type of citations similar to Disney et al. (2003), etc., graphicx supports figure inclusion, and many more packages to explore... Practice: Use the times package in your sample document and see the changes LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 8

Before the Body of Document A document will have: Title of the document, LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) \title{your Title} will assign a title for the document. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) \author{your Name(s)} will assign the name(s) of author(s) to the document. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) \date{any date} will assign a date to the document. If kept blank, no date will be assigned. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) Use all of them before \begin{document} in your document LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) Use all of them before \begin{document} in your document Use \maketitle immediately after \begin{document} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Before the Body of Document A document will have: Title of the document, Name(s) of the author(s), and Affiliation, date of creation etc., (optional) Use all of them before \begin{document} in your document Use \maketitle immediately after \begin{document} Practice: Compile document and check what happens. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 9

Table of contents and Abstract Include an abstract immediately after \maketitle LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 10

Table of contents and Abstract Include an abstract immediately after \maketitle Write the abstract between \begin{abstract} and \end{abstract} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 10

Table of contents and Abstract Include an abstract immediately after \maketitle Write the abstract between \begin{abstract} and \end{abstract} Include a table of contents after abstract Use: \tableofcontents LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 10

Table of contents and Abstract Include an abstract immediately after \maketitle Write the abstract between \begin{abstract} and \end{abstract} Include a table of contents after abstract Use: \tableofcontents Practice: Prepare Table of contents in your document LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 10

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Use \section{section name}, \subsection{subsection name}, etc. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Mathematical symbols and formulae in line with the text. $ $ can provide in line math environment LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Mathematical symbols and formulae in line with the text. $ $ can provide in line math environment Eg: A straight line equation is $ y=ax+b $. will produce; A straight line equation is y = ax + b. in the compiled document LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Mathematical symbols and formulae in line with the text. $ $ can provide in line math environment It may be required to refer a section or subsection in the body of the text. Use \section{section name}\label{section-label} to define a label to a section. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Mathematical symbols and formulae in line with the text. $ $ can provide in line math environment It may be required to refer a section or subsection in the body of the text. Use \section{section name}\label{section-label} to define a label to a section. To cross refer a section or subsection having label section-label Use \ref{section-label} at the appropriate place. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Mathematical symbols and formulae in line with the text. $ $ can provide in line math environment It may be required to refer a section or subsection in the body of the text. Use \section{section name}\label{section-label} to define a label to a section. To cross refer a section or subsection having label section-label Use \ref{section-label} at the appropriate place. Eg: The detailed descriptions are provided in Section \ref{section-label}. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Into the Body of Document A document can have: Sections, subsections, sub-subsections etc. Mathematical symbols and formulae in line with the text. $ $ can provide in line math environment It may be required to refer a section or subsection in the body of the text. Use \section{section name}\label{section-label} to define a label to a section. To cross refer a section or subsection having label section-label Use \ref{section-label} at the appropriate place. Practice: Use label for a section in your sample document and cross refer to it in the body in some other section. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 11

Environments:- Equations The environments in a LAT E X document are; equations, tables, arrays, lists, figures, LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 12

Environments:- Equations The environments in a LAT E X document are; equations, tables, arrays, lists, figures, Equation LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 12

Environments:- Equations The environments in a LAT E X document are; equations, tables, arrays, lists, figures, Equation A single equation is typeset between \begin{equation} and \end{equation}. It will assign a number to the equation. Assign a label to the equation and refer it anywhere. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 12

Environments:- Equations The environments in a LAT E X document are; equations, tables, arrays, lists, figures, Equation A single equation can also be typeset between $$ and $$. No equation number will be created and no labelling possible. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 12

Environments:- Equations The environments in a LAT E X document are; equations, tables, arrays, lists, figures, Equation \begin{equation} f=ma \label {eq1} \end{equation} Equation \ref{eq1} can be used to find out the force exerted by a body of mass $ m $ moving with acceleration $ a $. will produce: f = ma. (1) Equation 1 can be used to find out the force exerted by a body of mass m moving with an acceleration a. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 12

Environments:- Equations The environments in a LAT E X document are; equations, tables, arrays, lists, figures, Equation \begin{eqnarray} \varphi=\sqrt[10]{\frac{a}{b}} \label {eq1}\\ \lim {x \rightarrow 0} \frac{\sin x}{x} = 1 \label{eq3} \end{eqnarray} Will produce: ϕ = 10 r a b (2) lim x 0 sin x x = 1 (3) LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 12

Environments:- Arrays Arrays are created using \begin{array}{justification} and \end{array} {justification} possible for array elements are: {l}:- for left aligned column {c}:- for centre aligned column {r}:- for right aligned column LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 13

Environments:- Arrays $$ \left( \begin{array}{ r c l} \alpha i & \beta & \gamma\\ a&ab&abcd \\ 1&123&3 \\ \end{array} \right) $$ Will Produce: 0 B @ Γα i β γ a ab abcd 1 123 3 1 C A LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 13

Environments:- Tables Tables are created using \begin{table}[position] and \caption{table caption }\label{table-label} \end{table} [position] possible for tables are: [h]:- for position exactly at this place (here) [t]:- for top of the page in which the table comes [b]:- for bottom of the page in which the table comes Usually \tabular environment is used to define the column alignments LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 14

Environments:- Tables \begin{table} \begin{tabular}{ r l c } \hline Roll No. & Name & Grade \\ \hline 0123 & Radha & AA \\ \hline 0124 & Radhika & AB \\\hline \end{tabular} \caption{first Table}\label{first-table} \end{table} Will Produce: Roll No. Name Grade 0123 Radha AA 0124 Radhika AB Table 1: First Table LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 14

Environments:- Tables \begin{table} \centering \begin{tabular}{ r l c } \hline Roll No. & Name & Grade \\ \hline 0125 & Anu & AB \\ \hline 0126 & Vinu & BB \\\hline \end{tabular} \caption{first Table}\label{first-table} \end{table} Will Produce: Roll No. Name Grade 0125 Anu AB 0126 Vinu BB Table 2: Second Table LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 14

Environments:- Lists Lists are basically; Enumerated List, Bullet List, and Description Enumerated Lists are created by \begin{enumerate} \item First item in list \item Second item in list \end{enumerate} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 15

Environments:- Lists Lists are basically; Enumerated List, Bullet List, and Description Enumerated List \begin{enumerate} \item First item in List \item Second item in List \end{enumerate} Will Produce: 1. First item in List 2. Second item in List LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 15

Environments:- Lists Lists are basically; Enumerated List, Bullet List, and Description Bullet List \begin{itemize} \item First item in List \item Second item in List \end{itemize} Will Produce: First item in List Second item in List LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 15

Environments:- Lists Lists are basically; Enumerated List, Bullet List, and Description Description List \begin{description} \item[ieor] Industrial Engineering and Operations Research (IEOR) at IIT Bombay. \item[idc] Industrial Design Centre (IDC) at the Indian Institute of Technology Bombay. \end{description} Will Produce: IEOR IDC Industrial Engineering and Operations Research (IEOR) at IIT Bombay. Industrial Design Centre (IDC) at the Indian Institute of Technology Bombay. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 15

Environments:- Figures Figures can be inserted with the graphics package included in the preamble. Figures are included by \begin{figure}[position] \centering \includegrapics[size]{figure file name} \caption{figure caption}\label{figure-label} \end{figure} Eg. \begin{figure}[h]\centering \includegraphics[width=3in]{fig1.eps} \caption{first Figure}\label{first-figure} \end{figure} Will produce: LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 16

Environments:- Figures Figure 1: First Figure LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 16

Environments:- Tabbing Tabbing sets Tab positions in a line and the following lines follow these tab positions. Tab separation is done by \=. These tab positions are used by \> E.g. \begin{tabbing} Program\quad \= : \= \TeX\\ [5pt] Author \> : \> Donald Knuth\\[5pt] Manuals \> :\\ \end{tabbing} Will produce: Program Author : T E X : Donald Knuth Manuals : LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 17

Tabbing- (Contd..) Another example \begin{tabbing} Book Title \hspace{2cm} \= Author \hspace{2cm} \= Year\\ [5pt] Stochastic Process \> S. M. Ross \> 2007\\[5pt] Linear Programming \> Robert J. Vanderbei \> 2008 \end{tabbing} Will produce: Book Title Author Year Stochastic Process S. M. Ross 2007 Linear Programming Robert J. Vanderbei 2008 LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 18

Linespacing in a file Line spacing in a file can be globally be fixed to single space, one and half space, or double space, by declaring the base line stretch \renewcommand{\baselinestretch}{1.5} used before \begin{document} will change the linespacing in the entire document to one half space. A cleaner way is to use the package setspace This will allow changing the line spacing from any point in the document onwards. Commands used are: \singlespace : for single space \onehalfspace : for one and half space space \doublespace : for double space LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 19

Citations in a document Citations can be inserted either by using a bibliography file (.bib ) and using the labels to cite or by using \bibitem{citekey}...contents... and use the citekey within the same document. Better follow the.bib file and a style to cite. \small @BOOK{Axsater, } title = {{Inventory} {Control}}, publisher = {Kluwer Academic Publishers}, year = {2000}, author = {Sven Axs\"{a}ter} @Article{DMTCS, author = {Csaba Schneider}, title = {Computing nilpotent quotients in finitely presented {L}ie rings}, journal = {Discrete Mathematics and Theoretical Computer Science}, year = 1997, volume = {1}, number = {1}, LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 20

Use Citations Citations can be inserted in the appropriate space by using \cite{key} or \cite{keylist} (for more citations) A.bib file will have entries like Searching is a topic which is under active development: the CTAN team hope to be able shortly to provide significant new tools \cite{axsater} \bibliography{sample} \bibliographystyle{plain} can produce References Axsäter, S., 2000. Inventory Control. Kluwer Academic Publishers. LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 21

To change name for References Section and Styles The title for thr references section can be changed to any thing by using \renewcommand\refname{required name} after the beginning of the document. To get Author(year) type citations, use the package natbib. then use citations by \citet{key} or \citep{key} \citet will produce Axsäter (2000) \citep will produce (Axsäter 2000) LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 22

Beamer Presentations \documentclass{beamer} \usetheme{singapore} \title{example Presentation Created with the Beamer Package} \author{bijulal D.} \date{\today} \begin{document} \frame{\titlepage} \section[outline]{} \frame{\tableofcontents} \section{introduction} \subsection{overview of the Beamer Class} \frame{ \frametitle{features of the Beamer Class} \begin{itemize} \item<1-> Normal LaTeX class. \item<2-> Easy overlays. \item<3-> No external programs needed. \end{itemize} } \end{document} LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 23

To be continued... LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 24