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
OUTPUT FILES

1 Device independent output: <filename>.dvi

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

3 PDF output, produced from dvi: <filename>.pdf
STRUCTURE OF A LATEX 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}
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}
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 insidebegin{document}
author      • For Adding Authors Detail.
                 {It is define before the documentclass}

maketitle   • For adding Title within Document
                 {It define under the documentclass}
ABSTRACT


documentclass[12pt]{article}
begin{abstract}
This is the paper's abstract.
end{abstract}
end{document}
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)
SECTION AND SUBSECTION


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}
TEXT FORMATTING

      The Following are some Text Formatting Commands

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}
SOME MORE TEXT STYLES
 LATEX COMMAND                   OUTPUT

emph{emphasised text}

texttt{typewriter text}

textbf{bold text}

textit{italicized text}

textsl{slanted text}

textsc{small caps text}
Continued in   Part-3

Manit bhopal group_1_latex_assignment_part_2-1

  • 2.
    PHASES OF WORKINGIN LATEX 2. Compilation and Output For Compilation and Output we select Build and Output under Build Menu OR Press Ctrl+Shift+F5
  • 3.
    OUTPUT FILES 1 Deviceindependent output: <filename>.dvi 2 PostScript output, produced from dvi: <filename>.ps 3 PDF output, produced from dvi: <filename>.pdf
  • 4.
    STRUCTURE OF ALATEX 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}
  • 5.
    TITLE AND AUTHOR UnderLaTeX 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}
  • 7.
    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 insidebegin{document} author • For Adding Authors Detail. {It is define before the documentclass} maketitle • For adding Title within Document {It define under the documentclass}
  • 8.
    ABSTRACT documentclass[12pt]{article} begin{abstract} This is thepaper's abstract. end{abstract} end{document}
  • 9.
    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)
  • 10.
    SECTION AND SUBSECTION documentclass[12pt]{article} section{SectionHeadings} 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}
  • 12.
    TEXT FORMATTING The Following are some Text Formatting Commands 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}
  • 13.
    SOME MORE TEXTSTYLES LATEX COMMAND OUTPUT emph{emphasised text} texttt{typewriter text} textbf{bold text} textit{italicized text} textsl{slanted text} textsc{small caps text}
  • 14.