14

Manit bhopal group_1_latex_assignment_part_2-1

Embed Size (px)

DESCRIPTION

LaTeX Tutorial

Citation preview

Page 1: Manit bhopal group_1_latex_assignment_part_2-1
Page 2: Manit bhopal group_1_latex_assignment_part_2-1

PHASES OF WORKING IN LATEX

2. Compilation

and Output

For Compilation

and Output

we select Build

and Output

under Build Menu

OR

Press Ctrl+Shift+F5

Page 3: Manit bhopal group_1_latex_assignment_part_2-1

1 Device independent output: <filename>.dvi

2 PostScript output, produced from dvi: <filename>.ps

3 PDF output, produced from dvi: <filename>.pdf

OUTPUT FILES

Page 4: Manit bhopal group_1_latex_assignment_part_2-1

STRUCTURE OF A STRUCTURE OF A STRUCTURE OF A STRUCTURE OF A LATEXLATEXLATEXLATEX DOCUMENT DOCUMENT DOCUMENT DOCUMENT

The general syntax of a LaTeX file is as follows:

\documentclass[options]{class}

Further optional global commands and options, such as

\usepackage{packagename}

\begin{document} text mixed with typesetting commands

\end{document}

Page 5: Manit bhopal group_1_latex_assignment_part_2-1

TITLE AND AUTHOR

Under LaTeX We Can define Title and Authors

Information in following way-

\title{Our First \LaTeXe{} Document}

\author{

Mrs. Aarti Kumar\\

Department of Computer Applications\\

MANIT Bhopal\\

Mrs. Dipti Chauhan\\

Department of Computer Applications\\

MANIT Bhopal\\

Mr. Dharmendra Singh Rajput\\

Department of Computer Applications\\

MANIT Bhopal\\

Mr. Krishna K. Mohbey\\

Department of Computer Applications\\

MANIT Bhopal\\

}

\date{\today}

\documentclass[12pt]{article}

\begin{document}

\maketitle

\end{document}

Page 6: Manit bhopal group_1_latex_assignment_part_2-1
Page 7: Manit bhopal group_1_latex_assignment_part_2-1

TITLE AND AUTHOR

\title • It is used to define the Title of Article of Document

{It is defined before \documentclass but to print

the title we have to use \maketitle command which is

defined inside\begin{document}

\author • For Adding Authors Detail.

{It is define before the \documentclass}

\maketitle • For adding Title within Document

{It define under the \documentclass}

Page 8: Manit bhopal group_1_latex_assignment_part_2-1

ABSTRACT

\documentclass[12pt]{article}

\begin{abstract}

This is the paper's abstract.

\end{abstract}

\end{document}

Page 9: Manit bhopal group_1_latex_assignment_part_2-1

SECTION AND SUBSECTION

Sectioning commands provide the means to structure your text into units.

•\part

•\chapter (report style only)

•\section

•\subsection

•\subsubsection

•\paragraph

•\subparagraph

•\subsubparagraph (milstd and book-form styles only)

•\subsubsubparagraph (milstd and book-form styles only)

Page 10: Manit bhopal group_1_latex_assignment_part_2-1

\documentclass[12pt]{article}

\section{Section Headings}

We explain in this section how to obtain headings

for the various sections and subsections of our

document.

\subsection{Headings in the `article' Document Style}

In the `article' style, the document may be divided up

into sections, subsections and subsubsections, and each

can be given a title, printed in a boldface font,

simply by issuing the appropriate command.

\end{document}

SECTION AND SUBSECTION

Page 11: Manit bhopal group_1_latex_assignment_part_2-1
Page 12: Manit bhopal group_1_latex_assignment_part_2-1

TEXT FORMATTING

\documentstyle[11pt]{article}

\setlength{\topmargin}{-.5in}

\setlength{\textheight}{9in}

\setlength{\oddsidemargin}{.125in}

\setlength{\textwidth}{6.25in}

\begin{document}

\title{LaTeX Typesetting By Example}

\author{Mrs. Aarti Kumar\\

Department of Computer Applications}

\renewcommand{\today}{July 5, 2012}

\maketitle

This article demonstrates a basic set of LaTeX

formatting commands.

Compare the typeset output side-by-side with

the input document.

\end{document}

The Following are some Text Formatting Commands

Page 13: Manit bhopal group_1_latex_assignment_part_2-1

SOME MORE TEXT STYLES

\emph{emphasised text}\\

\texttt{typewriter text}\\

\textbf{bold text}\\

\textit{italicized text}\\

\textsl{slanted text}\\

\textsc{small caps text}\\

LATEXLATEXLATEXLATEX COMMANDCOMMANDCOMMANDCOMMAND OUTPUT OUTPUT OUTPUT OUTPUT

Page 14: Manit bhopal group_1_latex_assignment_part_2-1

Continued in Part-3