Sunteți pe pagina 1din 231

Online Workshop on LATEX

Dr. A. Sebastian Selvaraj

Guest Lecturer, Department of Mathematics,


Madurai Kamaraj University Constituent College,
Vedasandur, Dindigul. Tamil Nadu, India

sebawinselva@gmail.com arostudycircle@gmail.com

YouTube Channel : Aro Study Circle

Monday 18th May, 2020

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts
Page Layout and Style

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts
Page Layout and Style
Listing

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts
Page Layout and Style
Listing
Table Preparation

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts
Page Layout and Style
Listing
Table Preparation
Figure Insertion

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts
Page Layout and Style
Listing
Table Preparation
Figure Insertion
Equation Writing

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction
Fonts Selection
Formatting Texts
Page Layout and Style
Listing
Table Preparation
Figure Insertion
Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection
Formatting Texts
Page Layout and Style
Listing
Table Preparation
Figure Insertion
Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection Additional Contents
Formatting Texts
Page Layout and Style
Listing
Table Preparation
Figure Insertion
Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection Additional Contents
Formatting Texts
Letter and Article
Page Layout and Style
Listing
Table Preparation
Figure Insertion
Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection Additional Contents
Formatting Texts
Letter and Article
Page Layout and Style
Book and Report
Listing
Table Preparation
Figure Insertion
Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection Additional Contents
Formatting Texts
Letter and Article
Page Layout and Style
Book and Report
Listing
Table Preparation Bibliography

Figure Insertion
Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection Additional Contents
Formatting Texts
Letter and Article
Page Layout and Style
Book and Report
Listing
Table Preparation Bibliography

Figure Insertion Slide Preparation


Equation Writing
New Command and Renew command

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Outline

Introduction List of Contents and Index


Fonts Selection Additional Contents
Formatting Texts
Letter and Article
Page Layout and Style
Book and Report
Listing
Table Preparation Bibliography

Figure Insertion Slide Preparation


Equation Writing List of Plug-in and Software for LATEX
New Command and Renew command Conversion

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Day-I Outline

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Day-I Outline

Introduction

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Day-I Outline

Introduction
Fonts Selection

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Day-I Outline

Introduction
Fonts Selection
Formatting the Texts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Day-I Outline

Introduction
Fonts Selection
Formatting the Texts
Page Layout and Styles

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Motivation and Introduction
Purpose of this Lecture

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Purpose of this Lecture

This lecture is only designed for beginners from the very basic level.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Purpose of this Lecture

This lecture is only designed for beginners from the very basic level. It covers the
topics such as file types, latex editor, how to use latex, symbols, lists, fonts, table,
format, etc.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Requirements

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Requirements

The LATEX is the markup language used for the typesetting of the technical documents.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Requirements

The LATEX is the markup language used for the typesetting of the technical documents.
To learn LATEX you must have a great idea of MS Word

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Requirements

The LATEX is the markup language used for the typesetting of the technical documents.
To learn LATEX you must have a great idea of MS Word and the way or method in
which you want to design your document.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Requirements

The LATEX is the markup language used for the typesetting of the technical documents.
To learn LATEX you must have a great idea of MS Word and the way or method in
which you want to design your document. It also needs an understanding of
mathematics and related commands.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting
a) most Word users don’t know much

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting
a) most Word users don’t know much
b) may lose logical structure of a document

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting
a) most Word users don’t know much
b) may lose logical structure of a document
2. bibliographies, cross-references, figure labels must be completed by hand

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting
a) most Word users don’t know much
b) may lose logical structure of a document
2. bibliographies, cross-references, figure labels must be completed by hand
3. different versions mean compatibility issues

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting
a) most Word users don’t know much
b) may lose logical structure of a document
2. bibliographies, cross-references, figure labels must be completed by hand
3. different versions mean compatibility issues
4. cost!

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Word Processors vs. LATEX

The Weaknesses of Word


1. WYSIWYG programs combine composition and typesetting
a) most Word users don’t know much
b) may lose logical structure of a document
2. bibliographies, cross-references, figure labels must be completed by hand
3. different versions mean compatibility issues
4. cost!
5. Word is terrible at math!

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978
? Art of Computer Programming,

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978
? Art of Computer Programming, realized high quality digital typesetting system was
necessary

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978
? Art of Computer Programming, realized high quality digital typesetting system was
necessary
• LATEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978
? Art of Computer Programming, realized high quality digital typesetting system was
necessary
• LATEX
? Leslie Lamport, early 1980s (manual published in 1986)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978
? Art of Computer Programming, realized high quality digital typesetting system was
necessary
• LATEX
? Leslie Lamport, early 1980s (manual published in 1986)
? needed macro package on top of TEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The History of LATEX

• TEX
? Donald Knuth, 1978
? Art of Computer Programming, realized high quality digital typesetting system was
necessary
• LATEX
? Leslie Lamport, early 1980s (manual published in 1986)
? needed macro package on top of TEX
? has become the standard

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible
cost (free!)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible
cost (free!)
consistency throughout document

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible
cost (free!)
consistency throughout document
allows you to focus on content

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible
cost (free!)
consistency throughout document
allows you to focus on content
automation of tedious tasks (cross-references, bibliographies, etc.)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible
cost (free!)
consistency throughout document
allows you to focus on content
automation of tedious tasks (cross-references, bibliographies, etc.)
radical, global changes can be implemented consistently with very little work

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Strengths of LATEX

portability and compatibility - text files!


very flexible
cost (free!)
consistency throughout document
allows you to focus on content
automation of tedious tasks (cross-references, bibliographies, etc.)
radical, global changes can be implemented consistently with very little work
decision-making about formatting can be left to user.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Weaknesses of LATEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Weaknesses of LATEX

undeniable learning curve

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
The Weaknesses of LATEX

undeniable learning curve


complex formatting may occasionally take more time than a word processor (e.g.,
tables)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.
 Both LATEX and TEX contain a variety of font styles, such as serif, typewriter, and a
set of mathematical functions.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.
 Both LATEX and TEX contain a variety of font styles, such as serif, typewriter, and a
set of mathematical functions.
 It is an open-source and powerful document preparation system. It is high-quality
typesetting, which can be used for any publishing.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.
 Both LATEX and TEX contain a variety of font styles, such as serif, typewriter, and a
set of mathematical functions.
 It is an open-source and powerful document preparation system. It is high-quality
typesetting, which can be used for any publishing.
 It is often used for scientific publications and medium to large technical documents.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.
 Both LATEX and TEX contain a variety of font styles, such as serif, typewriter, and a
set of mathematical functions.
 It is an open-source and powerful document preparation system. It is high-quality
typesetting, which can be used for any publishing.
 It is often used for scientific publications and medium to large technical documents.
 It is not a word processor or any word document, but it is an efficient way for the
publishers and the authors to organize their materials.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.
 Both LATEX and TEX contain a variety of font styles, such as serif, typewriter, and a
set of mathematical functions.
 It is an open-source and powerful document preparation system. It is high-quality
typesetting, which can be used for any publishing.
 It is often used for scientific publications and medium to large technical documents.
 It is not a word processor or any word document, but it is an efficient way for the
publishers and the authors to organize their materials.
 It gives a unique appearance to the system. It saves the time for designing as well
as the efforts used for the documents.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is LATEX ?
 LATEX is pronounced as ’lah-tech’ or ’lay-tech.’
 It is based on TEX , a typesetting language designed for science and math.
 Both LATEX and TEX contain a variety of font styles, such as serif, typewriter, and a
set of mathematical functions.
 It is an open-source and powerful document preparation system. It is high-quality
typesetting, which can be used for any publishing.
 It is often used for scientific publications and medium to large technical documents.
 It is not a word processor or any word document, but it is an efficient way for the
publishers and the authors to organize their materials.
 It gives a unique appearance to the system. It saves the time for designing as well
as the efforts used for the documents.
 You must remember that LATEX is not a word processor! Don’t expect it to behave
like one.
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Why LATEX Over Other Word Processors ?

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Why LATEX Over Other Word Processors ?

The effort and time required in LATEX for preparing complicated and big-size documents
are quite less than those required in other word processors for simple documents.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Why LATEX Over Other Word Processors ?

The effort and time required in LATEX for preparing complicated and big-size documents
are quite less than those required in other word processors for simple documents. LATEX
is especially well suited for scientific writing, like technical reports, articles, academic
dissertations, books, etc.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Why LATEX Over Other Word Processors ?

The effort and time required in LATEX for preparing complicated and big-size documents
are quite less than those required in other word processors for simple documents. LATEX
is especially well suited for scientific writing, like technical reports, articles, academic
dissertations, books, etc.
One of the major advantages of using LATEX is that manual formatting of a document,
as usually required in many word processors, can be automated in LATEX .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Why LATEX Over Other Word Processors ?

The effort and time required in LATEX for preparing complicated and big-size documents
are quite less than those required in other word processors for simple documents. LATEX
is especially well suited for scientific writing, like technical reports, articles, academic
dissertations, books, etc.
One of the major advantages of using LATEX is that manual formatting of a document,
as usually required in many word processors, can be automated in LATEX . Therefore,
the possibility of doing any mistake in numbering and referring items (sections, tables,
figures or equations), in choosing size and type of fonts for different sections and
subsections, or in preparing bibliographic references, can be avoided.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Why LATEX Over Other Word Processors ?

The effort and time required in LATEX for preparing complicated and big-size documents
are quite less than those required in other word processors for simple documents. LATEX
is especially well suited for scientific writing, like technical reports, articles, academic
dissertations, books, etc.
One of the major advantages of using LATEX is that manual formatting of a document,
as usually required in many word processors, can be automated in LATEX . Therefore,
the possibility of doing any mistake in numbering and referring items (sections, tables,
figures or equations), in choosing size and type of fonts for different sections and
subsections, or in preparing bibliographic references, can be avoided. Further, LATEX has
the provision for automatically generating various lists of contents, index, and glossary.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
How to Prepare a LATEX Input File?

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
How to Prepare a LATEX Input File?

LATEX input file can be divided into two


parts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
How to Prepare a LATEX Input File?

LATEX input file can be divided into two


parts
1. Preamble

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
How to Prepare a LATEX Input File?

LATEX input file can be divided into two


parts
1. Preamble
2. Body

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
How to Prepare a LATEX Input File?

\documentclass[]{}
.
LATEX input file can be divided into two
.
parts
.
1. Preamble \begin{document}
2. Body .
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is Preamble ?

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is Preamble ?

\documentclass[]{}
.
.
.
\begin{document}
.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is Preamble ?

\documentclass[]{}
. The simplest preamble is \documentclass{dtype},
.
.
\begin{document}
.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is Preamble ?

\documentclass[]{}
. The simplest preamble is \documentclass{dtype}, where
. dtype in is a mandatory argument as the class (or type) of
. the document, such as letter, article, report or book.
\begin{document}
.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
What is Preamble ?

\documentclass[]{}
. The simplest preamble is \documentclass{dtype}, where
. dtype in is a mandatory argument as the class (or type) of
. the document, such as letter, article, report or book.
\begin{document} \documentclass[a4paper,11pt]{article} for printing
. an article on A4 paper in 11 point fonts.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Body

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Body

\documentclass[]{}
.
.
.
\begin{document}
.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Body

\documentclass[]{}
. The main body of a LATEX input file starts with
. \begin{document} and ends with \end{document}.
.
\begin{document}
.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Body

\documentclass[]{}
. The main body of a LATEX input file starts with
. \begin{document} and ends with \end{document}. The
. entire contents to be printed in the output are inserted
\begin{document} within the body, mixed with various LATEX instructions.
.
.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Body

\documentclass[]{}
. The main body of a LATEX input file starts with
. \begin{document} and ends with \end{document}. The
. entire contents to be printed in the output are inserted
\begin{document} within the body, mixed with various LATEX instructions. Any
. text entered after \end{document} is simply skipped by a
. LATEX compiler.
.
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Standard Options to the \documentclass[]{} command

Font size 10pt (default), 11pt and 12pt


paper size letterpaper (default), a4paper, a5paper, b5paper,
legalpaper and executivepaper
Page orientation portrait (default) and landscape
Columns of texts onecolumn (default) and twocolumn
Type of printing oneside (default for article and report) and twoside
(default for book)
New chapter openright (default for book), openany
Title printing titlepage and notitlepage
Equation leqno , fleqn
Drafting final (default) and draft
Bibliography openbib

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)
TeXlipse (http://texlipse.sourceforge.net)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)
TeXlipse (http://texlipse.sourceforge.net)
TeXmacs (www.texmacs.org)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)
TeXlipse (http://texlipse.sourceforge.net)
TeXmacs (www.texmacs.org)
Texmaker (www.xm1math.net/texmaker)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)
TeXlipse (http://texlipse.sourceforge.net)
TeXmacs (www.texmacs.org)
Texmaker (www.xm1math.net/texmaker)
TeXpen (https://sourceforge.net/projects/texpen)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)
TeXlipse (http://texlipse.sourceforge.net)
TeXmacs (www.texmacs.org)
Texmaker (www.xm1math.net/texmaker)
TeXpen (https://sourceforge.net/projects/texpen)
TeXstudio (www.texstudio.org)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Editors
There are many open-source (free access in internet) text editors developed specifically
for preparing LATEX input files.
For both Windows and Linux:
BaKoMa TEX (http://bakoma-tex.com)
Emacs (www.gnu.org/software/emacs/emacs.html)
jEdit (http://jedit.org)
Kile (http://kile.sourceforge.net)
LyX (www.lyx.org)
Open LaTeX Studio (http://sebbrudzinski.github.io/Open-LaTeX-Studio)
TeXlipse (http://texlipse.sourceforge.net)
TeXmacs (www.texmacs.org)
Texmaker (www.xm1math.net/texmaker)
TeXpen (https://sourceforge.net/projects/texpen)
TeXstudio (www.texstudio.org)
TeXworks (https://github.com/TeXworks/texworks), etc. th
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18 May, 2020
A simple LATEX Document

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
A simple LATEX Document

\documentclass{article}
\begin{document}
Hai Friends Its my First
document in \LaTeX
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
A simple LATEX Document

\documentclass{article}
\begin{document}
Hai Friends Its my First document in LATEX.
Hai Friends Its my First
document in \LaTeX
\end{document}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands (A LATEX command is an independent instruction used either for producing
something new or to change the form of an existing item,)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands (A LATEX command is an independent instruction used either for producing
something new or to change the form of an existing item,)
Environments

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands (A LATEX command is an independent instruction used either for producing
something new or to change the form of an existing item,)
Environments (A LATEX environment is a structure composed of two complementary
commands, within which some particular job can be performed,)

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands (A LATEX command is an independent instruction used either for producing
something new or to change the form of an existing item,)
Environments (A LATEX environment is a structure composed of two complementary
commands, within which some particular job can be performed,)
Packages

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands (A LATEX command is an independent instruction used either for producing
something new or to change the form of an existing item,)
Environments (A LATEX environment is a structure composed of two complementary
commands, within which some particular job can be performed,)
Packages (Provision is also there to invoke additional commands and environments in
a document for adding extra features that are not parts of the standard document
class.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
LATEX Syntax

LATEX syntax consists of


Commands (A LATEX command is an independent instruction used either for producing
something new or to change the form of an existing item,)
Environments (A LATEX environment is a structure composed of two complementary
commands, within which some particular job can be performed,)
Packages (Provision is also there to invoke additional commands and environments in
a document for adding extra features that are not parts of the standard document
class. Such commands and environments are defined in separate files, known as
packages).

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Special Characters

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Special Characters

Character Command
$ \$
% \%
{ } \{ \}
\_
ˆ \^\
& \&
# \#
\ $\backslash$
∼ $\sim$
< $<$
> $>$

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Fonts Selection
Font Selection

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX


1. paragraph-mode

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX


1. paragraph-mode
The paragraph-mode is for producing normal texts with automatic word-splitting,
and line and page breaking to fit the texts within the area specified by the width
and height of a page.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX


1. paragraph-mode
The paragraph-mode is for producing normal texts with automatic word-splitting,
and line and page breaking to fit the texts within the area specified by the width
and height of a page.
2. LR- Mode

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX


1. paragraph-mode
The paragraph-mode is for producing normal texts with automatic word-splitting,
and line and page breaking to fit the texts within the area specified by the width
and height of a page.
2. LR- Mode
It processes texts from left-to-right without any word-splitting and line breaking.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX


1. paragraph-mode
The paragraph-mode is for producing normal texts with automatic word-splitting,
and line and page breaking to fit the texts within the area specified by the width
and height of a page.
2. LR- Mode
It processes texts from left-to-right without any word-splitting and line breaking.
3. Math-Mode

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Font Selection

There are three modes for processing texts in LATEX


1. paragraph-mode
The paragraph-mode is for producing normal texts with automatic word-splitting,
and line and page breaking to fit the texts within the area specified by the width
and height of a page.
2. LR- Mode
It processes texts from left-to-right without any word-splitting and line breaking.
3. Math-Mode
It is for writing mathematical expressions, like equations.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Family
Serif Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Family
Serif Family
Sans Serif Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Family
Serif Family
Sans Serif Family
Typewriter Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Family
Series
Serif Family
Medium Series
Sans Serif Family
Typewriter Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Family
Series
Serif Family
Medium Series
Sans Serif Family
Boldface Series
Typewriter Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Shape
Family Default
Series
Serif Family
Medium Series
Sans Serif Family
Boldface Series
Typewriter Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Shape
Family Default
Series
Serif Family Italic Shape
Medium Series
Sans Serif Family
Boldface Series
Typewriter Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Shape
Family Default
Series
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Shape
Family Default
Series
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Shape
Family Default
Series
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape
Family Default
Series
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default
Series
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series Small
Serif Family Italic Shape
Medium Series
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series Small
Serif Family Italic Shape
Medium Series large
Sans Serif Family Slanted Shape
Boldface Series
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series Small
Serif Family Italic Shape
Medium Series large
Sans Serif Family Slanted Shape
Boldface Series Large
Typewriter Family Small Caps
Emphasized Shape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series Small
Serif Family Italic Shape
Medium Series large
Sans Serif Family Slanted Shape
Boldface Series Large
Typewriter Family Small Caps
Emphasized Shape LARGE

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series Small
Serif Family Italic Shape
Medium Series large
Sans Serif Family Slanted Shape
Boldface Series Large
Typewriter Family Small Caps
Emphasized Shape LARGE
huge

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Text - Mode Fonts

Size
Tiny

Shape Scriptsize

Family Default Footnotesize


Series Small
Serif Family Italic Shape
Medium Series large
Sans Serif Family Slanted Shape
Boldface Series Large
Typewriter Family Small Caps
Emphasized Shape LARGE
huge
HUGE

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Math-Mode Fonts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Math-Mode Fonts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Like many word-processors, LATEX also has the provision for producing colored fonts,
supported by the color package.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Like many word-processors, LATEX also has the provision for producing colored fonts,
supported by the color package.
This is blue text

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Like many word-processors, LATEX also has the provision for producing colored fonts,
supported by the color package.
This is blue text
{\color{blue}This is blue text}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Like many word-processors, LATEX also has the provision for producing colored fonts,
supported by the color package.
This is blue text
{\color{blue}This is blue text}
Using the \definecolor{}{}{} command, various colors can be defined.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Like many word-processors, LATEX also has the provision for producing colored fonts,
supported by the color package.
This is blue text
{\color{blue}This is blue text}
Using the \definecolor{}{}{} command, various colors can be defined.
\definecolor{seba}{cmyk}{0.2, 0.5, 0.5, 0.2}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Colored Fonts

Like many word-processors, LATEX also has the provision for producing colored fonts,
supported by the color package.
This is blue text
{\color{blue}This is blue text}
Using the \definecolor{}{}{} command, various colors can be defined.
\definecolor{seba}{cmyk}{0.2, 0.5, 0.5, 0.2}
This is my color .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Formatting Texts
Formatting Texts

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Formatting Texts

 Automatic and Uniform Formatting

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Formatting Texts

 Automatic and Uniform Formatting


 commit mistake by attempting to format a document manually

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Formatting Texts

 Automatic and Uniform Formatting


 commit mistake by attempting to format a document manually
 \centerline{\bf Section 1: Introduction}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Formatting Texts

 Automatic and Uniform Formatting


 commit mistake by attempting to format a document manually
 \centerline{\bf Section 1: Introduction} or {\bf Theorem 4:}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Formatting Texts

 Automatic and Uniform Formatting


 commit mistake by attempting to format a document manually
 \centerline{\bf Section 1: Introduction} or {\bf Theorem 4:}

Various options for automatic formatting of a document are discussed here.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Sectional Units

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Sectional Units

For Article Class

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Sectional Units

For Article Class

\section{ }
\subsection{}
\subsection{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Sectional Units

For Book and Report Class


For Article Class

\section{ }
\subsection{}
\subsection{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Sectional Units

For Book and Report Class


For Article Class
\chapter{ }
\section{ }
\section{ }
\subsection{}
\subsection{}
\subsection{}
\subsection{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Labeling and Referring Numbered Items

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Labeling and Referring Numbered Items

The labeling and referring of an item are performed through \label{rkey} and
\ref{rkey} respectively, where rkey is the assigned unique reference key of the item.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

This is flushleft content.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

This is flushleft content.

\begin{flushleft}
This is flushleft content.
\end{flushleft}

2. flushright

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

This is flushleft content.

\begin{flushleft}
This is flushleft content.
\end{flushleft}

2. flushright

This is flushright content.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

This is flushleft content.

\begin{flushleft}
This is flushleft content.
\end{flushleft}

2. flushright

This is flushright content.

\begin{flushright}
This is flushright content.
\end{flushright}

3. center

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

This is flushleft content.

\begin{flushleft}
This is flushleft content.
\end{flushleft}

2. flushright

This is flushright content.

\begin{flushright}
This is flushright content.
\end{flushright}

3. center

This is center aligned content

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Texts Alignment
1. flushleft

This is flushleft content.

\begin{flushleft}
This is flushleft content.
\end{flushleft}

2. flushright

This is flushright content.

\begin{flushright}
This is flushright content.
\end{flushright}

3. center

This is center aligned content

\begin{center}
This is center aligned content
\end{center}
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
New Lines and Paragraphs

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
New Lines and Paragraphs

The direct command for creating a new line is \newline.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
New Lines and Paragraphs

The direct command for creating a new line is \newline. A new line can also be
created using a line break command (\linebreak, \\, \\\\, or one or more blank
lines) at the end of the previous line.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
New Lines and Paragraphs

The direct command for creating a new line is \newline. A new line can also be
created using a line break command (\linebreak, \\, \\\\, or one or more blank
lines) at the end of the previous line.
The direct command for creating a new paragraph is \par.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
New Lines and Paragraphs

The direct command for creating a new line is \newline. A new line can also be
created using a line break command (\linebreak, \\, \\\\, or one or more blank
lines) at the end of the previous line.
The direct command for creating a new paragraph is \par. On the other hand, the
\paragraph{} and \subparagraph{} commands can also be used for creating new
paragraphs.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Creating blank spaces

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Two Columns

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Two Columns

\documentclass[twocolumn]{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Multiple Columns Related Parameters

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Multiple Columns Related Parameters

The visual appearance of a multi-column document may be controlled by the


\columnsep, \columnseprule and \columnwidth commands. The \columnsep
command specifies the gap between two columns, while \columnseprule specifies the
width of the vertical line separating two columns.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Multiple Columns Related Parameters

The visual appearance of a multi-column document may be controlled by the


\columnsep, \columnseprule and \columnwidth commands. The \columnsep
command specifies the gap between two columns, while \columnseprule specifies the
width of the vertical line separating two columns. On the other hand,
\columnwidth governs the width of a column.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Generate Multiple Columns

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Generate Multiple Columns

The multicols environment, defined in the multicol package, can be used, which has
the capability of producing any number of columns(upto 10).

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Generate Multiple Columns

The multicols environment, defined in the multicol package, can be used, which has
the capability of producing any number of columns(upto 10).

The multicols environment, which has the capability of an example for 3 columns
defined in the multicol producing any number of document.
package, can be used, columns(upto 10). This is

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Generate Multiple Columns

The multicols environment, defined in the multicol package, can be used, which has
the capability of producing any number of columns(upto 10).

The multicols environment, which has the capability of an example for 3 columns
defined in the multicol producing any number of document.
package, can be used, columns(upto 10). This is

\begin{multicols}{3}
The multicols environment, defined in the multicol package, can be used,
which has the capability of producing any number of columns(upto 10).
This is an example for 3 columns document.
\end{multicols}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Foot Notes

1A
LT EX is a document preparation system
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Foot Notes

LATEX provides the \footnote{} command for printing its argument as a foot note.

1A
LT EX is a document preparation system
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Foot Notes

LATEX provides the \footnote{} command for printing its argument as a foot note.
The command is to be inserted just after the word or phrase (usually without any gap)
against which a foot note is to be generated.

1A
LT EX is a document preparation system
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Foot Notes

LATEX provides the \footnote{} command for printing its argument as a foot note.
The command is to be inserted just after the word or phrase (usually without any gap)
against which a foot note is to be generated. In the output, such words or phrases are
superscribed in Arabic numerals with the counter of the \footnote{} command.

1A
LT EX is a document preparation system
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Foot Notes

LATEX provides the \footnote{} command for printing its argument as a foot note.
The command is to be inserted just after the word or phrase (usually without any gap)
against which a foot note is to be generated. In the output, such words or phrases are
superscribed in Arabic numerals with the counter of the \footnote{} command.

Consider : LATEX1 provides the footnote{} command also.

1A
LT EX is a document preparation system
Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Layout and Styles
Page Layout

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Layout

Paper Size

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Layout

Paper Size a4paper, a5paper, b5paper, letterpaper(default), legalpaper,


executivepaper.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Layout

Paper Size a4paper, a5paper, b5paper, letterpaper(default), legalpaper,


executivepaper.
Orientation :

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Layout

Paper Size a4paper, a5paper, b5paper, letterpaper(default), legalpaper,


executivepaper.
Orientation : portrait and landscape

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Standard Page Layout

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Standard Page Layout

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Standard Page Layout

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Standard Page Layout

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Style

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Style

LATEX provides various standard macros as well as customizing facilities for designing a
document.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Running Header and Footer

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Running Header and Footer

\pagestyle{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Running Header and Footer

\pagestyle{} and \thispagestyle{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Running Header and Footer

\pagestyle{} and \thispagestyle{}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Fancy Headings

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Fancy Headings

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Fancy Headings

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .
roman i,ii,iii, . . .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .
roman i,ii,iii, . . .
Roman I,II,III, . . .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .
roman i,ii,iii, . . .
Roman I,II,III, . . .
alph a, b, c, . . .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .
roman i,ii,iii, . . .
Roman I,II,III, . . .
alph a, b, c, . . .
Alph A, B, B, . . .

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .
roman i,ii,iii, . . .
Roman I,II,III, . . .
alph a, b, c, . . .
Alph A, B, B, . . .

By default page numbering starts from unity.

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Page Numbering

Five types of page numbering are available \pagenumbering{anum}

arabic 1,2,3 . . .
roman i,ii,iii, . . .
Roman I,II,III, . . .
alph a, b, c, . . .
Alph A, B, B, . . .

By default page numbering starts from unity. Numbering can be started from any
other number using \setcounter{page}{n} in the preamble,

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020
Thanks

YouTube Channel : Aro Study Circle

Dr. A. Sebastian Selvaraj, GL, MKU College, Vedasandur, Dindigul Online Workshop on LATEX Monday 18th May, 2020

S-ar putea să vă placă și