Lecture 7
Lecture 7
Christina Gamal
Lecture 7
An Introduction to LATEX
what is LATEX?
Why LATEX?
HOW does LATEX Work?
Required Software.
Writing your first LATEX on TexStudio
Typesetting text
Typesetting mathematics
Using packages
Latex is a document preparation system for high-quality
typesetting. It is most often used for medium-to-large
technical or scientific documents, but it can be used for
almost any form of publishing.
Editor: TeXStudio
Latex file begin with \documentclass{class}
Write the type of class such as: article, report, book
Type your text between \begin{document} and
\end{document}.
Commands start with a backslash \.
Every document starts with a \documentclass{class}
command
The argument in curly braces {} indicates the type of
document such as: article, report, book
A percent sign % starts a comment
Type your text between \begin{document} and
\end{document}.
Words in latex are separated by one or more spaces.
Spaces, more than one space, in the source file is collapsed
in the output.
Paragraphs are separated by one or more blank lines.
Two backslash \\ to enter a new line.
Use symbol ~ to make spaces between words
Bold
Italic
Underline
The dollar signs $ are use them to mark mathematics in the
text.
Always use dollar signs in pairs $ $ one to begin the
mathematics, and one to end it.
Be careful: LATEX mostly ignores your spaces in mathematics, but it can’t handle blank lines in
equations — don’t put blank lines in your mathematics.