0% found this document useful (0 votes)
35 views14 pages

Latex Tutorial

The document provides an overview of LaTeX, a typesetting system designed for creating documents, particularly those with complex mathematical content. It includes installation instructions, basic document structure, commands for formatting text, and guidelines for creating sections, lists, and footnotes. Additionally, it covers environments, text formatting options, and packages to enhance document presentation.

Uploaded by

meenakrishu123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views14 pages

Latex Tutorial

The document provides an overview of LaTeX, a typesetting system designed for creating documents, particularly those with complex mathematical content. It includes installation instructions, basic document structure, commands for formatting text, and guidelines for creating sections, lists, and footnotes. Additionally, it covers environments, text formatting options, and packages to enhance document presentation.

Uploaded by

meenakrishu123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Latex : Document Prepration and

Presentation
TEX : TEX is a typesetting program that was invented for the
creation of books ,especially for books that contain a lot of
mathematics.
TEX is both a language and a program. Thus, it is a
typesetting system.
LATEX is an easy-to-use version of TEX.

● WHY LATEX ?

● TO INSTALL LATEX
-Download Texstudio and MikTex
LINK : https://www.texstudio.org
-Overleaf : Online LaTex editor
LINK : https://miktex.org/download
LATEX DOCUMENT STRUCTURE
DOCUMENT CLASS
Writing your first piece of LaTeX
1. Type the following code in the editor

\documentclass{article}
\begin{document}
First document. This is a simple example, with
no
extra parameters or packages included.
\end{document}

Note :
(i) Commands are preceded by the \ (backslash) symbol. Commands
are case-sensitive.
(ii) LATEX ignores most extra spaces in a file. A blank line (or lines)
tells LATEX to start a new paragraph.
(iii) The part of the file preceding the \begin{document} command is
called the preamble.

THE INPUT :
● One or more blank lines denote the end of paragraph.
● \\ - used to make new lines.
● Quotation mark – \, it is a typesetting command that causes
Latex to insert a small amount of space. EXAMPLE : ``\,`he and
`she’\,’’ .
● Dashes -
(a) for intra-word dash or hyphen put 1 dash (-) as in X-Ray
(b) for medium dash for number ranges put 2 dash like (1–2 )
(c) for punctuation dash put 3 dash (---)
● To make space after a period ( at.) a \ followed by space . ex.
Any text at et al.\ made it.
● To type some special symbol ( $ ,& , %, #, _, {}, place
\(backslash) before symbol.
● \TeX & \LaTeX are command to produce logos of these . and
also after these command to put space we must tell TeX by
typing a \(space) command.
● \dots to produce three dots (...)
● \emph command tells that text is to be emphasized. As in ex
“Here is a simple \emph{example} of emphasized text.
● \em command tells to start emphasizing text.
● To prevent line break for example in 1 to 10, chapet 3, use
~(tilde character) like { from 1 to~10, chapter~3}
● To prevent line break within certain words use \mbox command.
● \footnote{argument} - it produce footnote having the text of
footnote as its argument as in \footnote{this is example} .
● FORMULAS : A formula appearing in a middle of a sentence is
enclosed by \( ….. \) or $.....$ or \begin{math}......\end{math}
commands. As [ &x + y&] .
● In MATH subscript ans superscripts are made by ~ and ^ symbol
respectively like a_{1} and x^{2n}.
● The character { ` } produces a prime symbol.
● % is used to putting a comment in input line , after it % and all
character followed on the line are ignored.
● INPUT :
OUTPUT :

2.Environment
An environment starts with \begin{name} and ends with \end{name}
COMMAND
\begin{name}
Your content here...
...goes here...
\end{name}
- Name is name of environment like quote , math, document.
- Quote is used to produces suitable display of short quotes.
- Quotation is used to produce a display of quotations of more
than one paragraph.
-
- There are three list making environments (a) Itemize (unnumbered
/bulleted list) (b) enumerate (numbered list) (c ) description
(unnumbered definition)
3.To add basic information to your document Title, author, and
date commands
\documentclass[12pt, letterpaper]{article}
\title{My first LaTeX document}
\author{Krishna}
\date{August, 2024}
\begin{document}
\maketitle
We have now added a title, author and date to our
first \LaTeX{} document!
\end{document}
Note to typeset the title, author and date use the \maketitle
command within the body of the document.

4.To add sections and subsections

\documentclass{article}
\usepackage{blindtext}

\title{Sections and Chapters}


\author{Overleaf}
\date{\today}

\begin{document}
\maketitle
\section{Introduction}

This is the first section.

\blindtext

\section{Second Section}
This is the second section

\blindtext
\end{document}
NOTE :

1. The \part command is used for major divisions of long


documents.
2. \document[options]{class} - option like font size ,
landscape .
3. \usepackage{blindtext] -to add some content.
4. \usepackage{latexsym} this defines commands to produce certain
special symbols.
5. To get an unnumbered chapter, section, subsection, etc. add an
asterisk (*) at the end of the command, before the opening curly
brace. EXAMPLE : \section*{Second Section}
6.The \appendix command does not produce any text; it
simply causes sectional units to be numbered
properly for an appendix.

5. To format text bold, italic , underlining

● Bold: bold text in LaTeX is typeset using the \textbf{...}


command.
● Italics: italicised text is produced using the \textit{...}
command.
● Underline: to underline text use the \underline{...}
command.
SOME OTHER POINTS :
1. \usepackage{blindtext}- To add some blind text
(\blindtext)
2. titlesec package to customize chapters, sections and subsections
style.
3. \part - it is used for major division of long documents
4. \usepackage[a5paper,margin=1in]{geometry}
5. \usepackage[a5paper,margin=top=1in, left=2in, right=0.75in,
bottom=1in]{geometry}
6. Margins for two sided page : documentclass- book ,
usepackage[a4paper, outer=1in, inner=2in]
7. \pagestyle[empty}
8. \tableofcontents

You might also like