This document provides an introduction to LaTeX, including why it is used, basic programming commands, and how to format text. LaTeX is a document preparation system used for publishing scientific documents and books. It allows easy insertion of mathematical formulas and modifications to large documents. Basic programming in LaTeX involves specifying document options and classes using commands like \documentclass. Text formatting in LaTeX is done using commands for fonts, coloring, sizes, lists, spacing, comments, and special characters.
4. Used for producing professional
looking document.
Pronounced as ‘lay-tech’ or ‘lah-tech’
Document preparation system for
high-quality typesetting
Uses markup commands and a type
setting program TEX
Used for publishing reports, books,
scientific documents, etc.
It is based on the WYSIWYM means
what you see is what you mean
LATEX:
5.
6. WHY USE LATEX ?
It is definitely easy to write any document in word
processor. But, writing mathematical formulas within is a
little troublesome.
This became the main reason for the creation of Tex.
Latex is the extension of the program Tex.
Mathematical formulae can be easily typeset
Modification in big docs is easy
13. FONT EFFECTS
There are latex commands for a variety of font effects:
✓ textit→for italics
✓ textbf→ bold
✓ textsl→slanted
✓ textsc→smallcaps
✓ textrm→roman words
✓ underline→underlined words
15. COLOURING
EFFECT
✓ To put coloured text in your document you need to use package.
✓ Packages are included before the begin{document} command.
✓ Code to produces colored text is:
color {color name}text
- Text: Text you want to coloured
- color name: Red, green, blue etc.
✓ Steps:
▪ Type usepackage{color} on the line before begin{document}
▪ Type color{green}
24. COMMENTS
COMMENTS:
✓ comments are created using %.
✓ When latex encounters a % character while
processing a .tex file, it ignores the rest of line.
26. SPACING
SPACING:
✓ Several empty lines are treated as one empty line.
✓ Two backslashes () can be used to start a new line.
✓ If you want to add blank space in your document use vspace {}
command.
✓ For example, vspace{40pt} will add space equivalent to the height of
a 40pt font.
28. SPECIAL
CHARACTER
✓ [#, $, %, ^, &] etc. are special characters that can be inserted as
characters in your document by adding a prefix backslash.
✓ For backslash use ‘textbackslash’ command
You need to type a pair of curly brackets {} after the hat ^ and
tilde ~, otherwise these will appear as accents over the following
character. For example
“^ E” produce “Ê”.