In-house Seminar
on Technical Writing Using
Latex
Presented by
Krishna V
Asst.Professor
Dept of CSE
LATEX
 LaTeX is pronounced as 'lah-tech' or 'lay-tech.' which is
distributed under the LPPL (Latex Project Public License).
 It is based on TEX, a typesetting language designed for science
and math.
 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.
Difference between Microsoft Word and
LATEX
 Microsoft Word is based on the concept of WYSIWYG (What
You See Is What You Get).
 It means the way you type it reflects the document along with
it, i.e., the final document will look the same as you type in.
 We can make the changes in the document material as we type.
The changes include line spacing, font, format, text style, page
style, headings, page breaks, etc.
Difference between Microsoft Word and
LATEX
 In LATEX, you cannot see the final document when you are
typing. It allows the users to concentrate and focus on the
content rather than its design or look.
 It is based on the WYSIWYM (What You See Is What You
Mean).
 It means that you have to concentrate on the content, rest
the computer will take care of the formatting.
LaTeX Installation Steps
 It’s required to download the two softwares
 1. A compiler: Miketex/Teclive/Textex
 2.An Editor:TexMaker/Texworks
 Links:
 https://miktex.org/download
 https://www.xm1math.net/texmaker/download.html
How does Latex work?
 The first step to use Latex is to create the file using
the editor and give the name ending with .tex.
 In this file, you can type the text of your document as
well as the commands to format it.
Your first LaTeX document
The commands in the Latex begin with the backslash' .'
The first step is to open the Texmaker or any corresponding
editor you are using for the Latex.
TEXMAKER EDITOR
LATEX SYMBOLS
Below is the list of the commands divided into the particular
categories. The essential commands used all over are:
•  it is called backslash, used as the starting command. The line
following it gets printed.
• {} it is called curly brackets, which is used to group and
separate commands from its surroundings and must appear
in pairs.
•  terminates a line.
• * it also terminates the line, but disallows the page break.
• [] it is used to write the optional parameters that can be
passed to a command to change its behavior.
• % the Latex ignores the rest of the line or commands after %.
The basic layout of a LaTeX file
 Creating documents with LaTeX is simple.
 LaTeX uses control statements, which define how your
content should be formatted.
 Before you can see what the final result looks like, the
LaTeX compiler will take your .tex file and compile it
into a .pdf file.
The basic layout of a
LaTeX file
• A document has a preamble and document part
• The document environment must be defined
• Commands beginning with a backslash ,
environments have a begin and end tag
• Useful settings for pagenumbering:
 gobble – no numbers
 arabic – arabic numbers
 roman – roman numbers
The basic layout of a LaTeX file
 A basic example document can be created with the
following code:
documentclass{article}
begin{document}
Hello World!
end{document}
Adding a title page
 documentclass{article}
 title{My first document}
 date{2013-09-01}
 author{John Doe}
 begin{document}
 maketitle
 newpage
 Hello World!
 end{document}
Using LaTeX paragraphs and sections
• LaTeX uses the commands section, subsection and 
subsubsection to define sections in your document
• The sections will have successive numbers and appear
in the table of contents
• Paragraphs are not numbered and thus don’t appear
in the table of contents
Sectioning elements (sections, subsections,
paragraphs etc.)
 section{}
 subsection{}
 subsubsection{}
 paragraph{}
 subparagraph{}
LaTeX TABLE
The tables in Latex are created with a combination of
a tabular environment and the table environment.
The tabular environments contain the actual content of
the table
While others include the caption.
LATEX TABLE
 The commands used to create table environment are:
 begin{table}{where}
 Table
 end{table}
 The commands used to create tabular environment
are:
 begin{tabular}{lcr}
 end{tabular}
LATEX TABLE
1. documentclass{article}
2. begin{document}
3. begin{center}
4. TABLE
5. end{center}
6. begin{tabular}{lcr}
7. a&b&c
8. d&e&f
9. g&h&i
10. end{tabular}
11. end{document}
LATEX TABLE
Using LaTeX packages
 Use packages in LaTeX to add more functions. Demonstration
of amsmath package and basic math typesetting
LaTeX offers a lot of functions by default, but in some
situations it can become in handy to use so
called packages.
 To import a package in LaTeX, you simply add the 
usepackage directive to the preamble of your
document:
Using LaTeX packages
 documentclass{article}
 usepackage{PACKAGENAME}
 begin{document}
 ...
 end{document}
Purpose of packages
 There are countless packages.
 To typeset math, LaTeX offers (among others)
an environment called equation. Everything inside this environment will
be printed in math mode, a special typesetting environment for math.
 LaTeX also takes care of equation numbers for us:
 documentclass{article}
 begin{document}
 begin{equation}
 f(x) = x^2
 end{equation}
 end{document}
LaTeX math and equations
 There are two major modes of typesetting math in
LaTeX
 one is embedding the math directly into your text
by encapsulating your formula in dollar signs and the
 other is using a predefined math environment
Using inline math – embed formulas in
your text
To make use of the inline math feature, simply write your
text and if you need to typeset a single math symbol or
formula, surround it with dollar signs:
...
This formula $f(x) = x^2$ is an example.
...
Output equation: This formula f(x)=x2 is an example
The equation and align environment
The most useful math envorinments are the
equation environment for typesetting single equations
and the align environment for multiple equations and
automatic alignment:
The equation and align environment
documentclass{article}
usepackage{amsmath}
begin{document}
begin{equation*}
1 + 2 = 3
end{equation*}
begin{equation*}
1 = 3 - 2
end{equation*}
begin{align*}
1 + 2 &= 3
1 &= 3 - 2
 end{align*}
 end{document}
The equation and align
environment
 Output Equation:
 1+2=3
 1=3–2
 Output Align:
1+2 =3
1=3–2
The equation and align
environment
• LaTeX is a powerful tool to typeset math
• Embed formulas in your text by surrounding them
with dollar signs $
• The equation environment is used to
typeset one formula
• The align environment will align formulas at
the ampersand & symbol
• Single formulas must be separated with two
backslashes
Insert an image in LaTeX – Adding a
figure or picture
 Captioned images / figures in LaTeX
 From time to time, it’s necessary to add pictures to your
documents.
 Using LaTeX all pictures will be indexed automatically and
tagged with successive numbers when using the figure
environment and the graphicx package.
Insert an image in LaTeX – Adding
a figure or picture
• Use the graphicx package and figure environment to
embed pictures
• Pictures will be numbered automatically
• Change the width of your image by using 
includegraphics[width=linewidth]{}
• Refer to pictures in your document by setting a 
label and using the ref tag
• Set the position of your image by adding a float option
such as [h!]
• If you want to show multiple figures next to each other,
use the subcaption package and
the subfigure environment
Insert an image in LaTeX –
Adding a figure or picture
LaTex Input
documentclass{article}
usepackage{graphicx}
begin{document}
begin{figure}
includegraphics[width=linewidth]{boat.jpg}
caption{A boat.}
label{fig:boat1}
end{figure}
Figure ref{fig:boat1} shows a boat.
end{document}
OUTPUT
 The code above will create the following pdf:
Insert an image in LaTeX – Adding
a figure or picture
 The figure environment takes care of the numbering
and positioning of the image within the document.
 In order to include a figure, you must use the 
includegraphics command.
 It takes the image width as an option in brackets and
the path to your image file.
 linewidth: will be scale the picture to fit the width of
the document.
 As a result smaller pictures are upscaled and larger
pictures downscaled respectively.
 The backets contain the path to the image
LaTeX Input
documentclass{article}
usepackage{amsmath}
title{LaTeX}
date{}
begin{document}
maketitle
LaTeX{}is pronounced as 'lah-tech' or 'lay-tech.' which is distributed under the LPPL (Latex Project Public
License). It is based on TeX, a typesetting language designed for science and math. BothLaTeX{} 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.
LaTeX Input
begin{align}
E_0 &=mc^2 
E &=frac{mc^2}{sqrt{1-frac{v^2}{c^2}}}
end{align}
end{document}
LaTeX Output

TECHNICAL WRITING USING LATEX POWER POIN

  • 1.
    In-house Seminar on TechnicalWriting Using Latex Presented by Krishna V Asst.Professor Dept of CSE
  • 2.
    LATEX  LaTeX ispronounced as 'lah-tech' or 'lay-tech.' which is distributed under the LPPL (Latex Project Public License).  It is based on TEX, a typesetting language designed for science and math.  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.
  • 3.
    Difference between MicrosoftWord and LATEX  Microsoft Word is based on the concept of WYSIWYG (What You See Is What You Get).  It means the way you type it reflects the document along with it, i.e., the final document will look the same as you type in.  We can make the changes in the document material as we type. The changes include line spacing, font, format, text style, page style, headings, page breaks, etc.
  • 4.
    Difference between MicrosoftWord and LATEX  In LATEX, you cannot see the final document when you are typing. It allows the users to concentrate and focus on the content rather than its design or look.  It is based on the WYSIWYM (What You See Is What You Mean).  It means that you have to concentrate on the content, rest the computer will take care of the formatting.
  • 5.
    LaTeX Installation Steps It’s required to download the two softwares  1. A compiler: Miketex/Teclive/Textex  2.An Editor:TexMaker/Texworks  Links:  https://miktex.org/download  https://www.xm1math.net/texmaker/download.html
  • 6.
    How does Latexwork?  The first step to use Latex is to create the file using the editor and give the name ending with .tex.  In this file, you can type the text of your document as well as the commands to format it.
  • 7.
    Your first LaTeXdocument The commands in the Latex begin with the backslash' .' The first step is to open the Texmaker or any corresponding editor you are using for the Latex.
  • 8.
  • 9.
    LATEX SYMBOLS Below isthe list of the commands divided into the particular categories. The essential commands used all over are: • it is called backslash, used as the starting command. The line following it gets printed. • {} it is called curly brackets, which is used to group and separate commands from its surroundings and must appear in pairs. • terminates a line. • * it also terminates the line, but disallows the page break. • [] it is used to write the optional parameters that can be passed to a command to change its behavior. • % the Latex ignores the rest of the line or commands after %.
  • 10.
    The basic layoutof a LaTeX file  Creating documents with LaTeX is simple.  LaTeX uses control statements, which define how your content should be formatted.  Before you can see what the final result looks like, the LaTeX compiler will take your .tex file and compile it into a .pdf file.
  • 11.
    The basic layoutof a LaTeX file • A document has a preamble and document part • The document environment must be defined • Commands beginning with a backslash , environments have a begin and end tag • Useful settings for pagenumbering:  gobble – no numbers  arabic – arabic numbers  roman – roman numbers
  • 12.
    The basic layoutof a LaTeX file  A basic example document can be created with the following code: documentclass{article} begin{document} Hello World! end{document}
  • 13.
    Adding a titlepage  documentclass{article}  title{My first document}  date{2013-09-01}  author{John Doe}  begin{document}  maketitle  newpage  Hello World!  end{document}
  • 14.
    Using LaTeX paragraphsand sections • LaTeX uses the commands section, subsection and subsubsection to define sections in your document • The sections will have successive numbers and appear in the table of contents • Paragraphs are not numbered and thus don’t appear in the table of contents
  • 15.
    Sectioning elements (sections,subsections, paragraphs etc.)  section{}  subsection{}  subsubsection{}  paragraph{}  subparagraph{}
  • 17.
    LaTeX TABLE The tablesin Latex are created with a combination of a tabular environment and the table environment. The tabular environments contain the actual content of the table While others include the caption.
  • 18.
    LATEX TABLE  Thecommands used to create table environment are:  begin{table}{where}  Table  end{table}  The commands used to create tabular environment are:  begin{tabular}{lcr}  end{tabular}
  • 19.
    LATEX TABLE 1. documentclass{article} 2.begin{document} 3. begin{center} 4. TABLE 5. end{center} 6. begin{tabular}{lcr} 7. a&b&c 8. d&e&f 9. g&h&i 10. end{tabular} 11. end{document}
  • 20.
  • 21.
    Using LaTeX packages Use packages in LaTeX to add more functions. Demonstration of amsmath package and basic math typesetting LaTeX offers a lot of functions by default, but in some situations it can become in handy to use so called packages.  To import a package in LaTeX, you simply add the usepackage directive to the preamble of your document:
  • 22.
    Using LaTeX packages documentclass{article}  usepackage{PACKAGENAME}  begin{document}  ...  end{document}
  • 23.
    Purpose of packages There are countless packages.  To typeset math, LaTeX offers (among others) an environment called equation. Everything inside this environment will be printed in math mode, a special typesetting environment for math.  LaTeX also takes care of equation numbers for us:  documentclass{article}  begin{document}  begin{equation}  f(x) = x^2  end{equation}  end{document}
  • 24.
    LaTeX math andequations  There are two major modes of typesetting math in LaTeX  one is embedding the math directly into your text by encapsulating your formula in dollar signs and the  other is using a predefined math environment
  • 25.
    Using inline math– embed formulas in your text To make use of the inline math feature, simply write your text and if you need to typeset a single math symbol or formula, surround it with dollar signs: ... This formula $f(x) = x^2$ is an example. ... Output equation: This formula f(x)=x2 is an example
  • 26.
    The equation andalign environment The most useful math envorinments are the equation environment for typesetting single equations and the align environment for multiple equations and automatic alignment:
  • 27.
    The equation andalign environment documentclass{article} usepackage{amsmath} begin{document} begin{equation*} 1 + 2 = 3 end{equation*} begin{equation*} 1 = 3 - 2 end{equation*} begin{align*} 1 + 2 &= 3 1 &= 3 - 2  end{align*}  end{document}
  • 28.
    The equation andalign environment  Output Equation:  1+2=3  1=3–2  Output Align: 1+2 =3 1=3–2
  • 29.
    The equation andalign environment • LaTeX is a powerful tool to typeset math • Embed formulas in your text by surrounding them with dollar signs $ • The equation environment is used to typeset one formula • The align environment will align formulas at the ampersand & symbol • Single formulas must be separated with two backslashes
  • 30.
    Insert an imagein LaTeX – Adding a figure or picture  Captioned images / figures in LaTeX  From time to time, it’s necessary to add pictures to your documents.  Using LaTeX all pictures will be indexed automatically and tagged with successive numbers when using the figure environment and the graphicx package.
  • 31.
    Insert an imagein LaTeX – Adding a figure or picture • Use the graphicx package and figure environment to embed pictures • Pictures will be numbered automatically • Change the width of your image by using includegraphics[width=linewidth]{} • Refer to pictures in your document by setting a label and using the ref tag • Set the position of your image by adding a float option such as [h!] • If you want to show multiple figures next to each other, use the subcaption package and the subfigure environment
  • 32.
    Insert an imagein LaTeX – Adding a figure or picture LaTex Input documentclass{article} usepackage{graphicx} begin{document} begin{figure} includegraphics[width=linewidth]{boat.jpg} caption{A boat.} label{fig:boat1} end{figure} Figure ref{fig:boat1} shows a boat. end{document}
  • 33.
    OUTPUT  The codeabove will create the following pdf:
  • 34.
    Insert an imagein LaTeX – Adding a figure or picture  The figure environment takes care of the numbering and positioning of the image within the document.  In order to include a figure, you must use the includegraphics command.  It takes the image width as an option in brackets and the path to your image file.  linewidth: will be scale the picture to fit the width of the document.  As a result smaller pictures are upscaled and larger pictures downscaled respectively.  The backets contain the path to the image
  • 35.
    LaTeX Input documentclass{article} usepackage{amsmath} title{LaTeX} date{} begin{document} maketitle LaTeX{}is pronouncedas 'lah-tech' or 'lay-tech.' which is distributed under the LPPL (Latex Project Public License). It is based on TeX, a typesetting language designed for science and math. BothLaTeX{} 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.
  • 36.
    LaTeX Input begin{align} E_0 &=mc^2 E &=frac{mc^2}{sqrt{1-frac{v^2}{c^2}}} end{align} end{document}
  • 37.