Lecture 3
Lecture 3
Kaushik Roy
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures
\begin{environmentname}
content
\end{environmentname}
\begin{environmentname}
content
\end{environmentname}
\documentclass{report}
\begin{document}
\end{document}
Output
So we are able to generate the equivalent text document.
• Vertical Space
• \addvspace
• \smallskip
• \medskip
• \bigskip
• \vfill
• \vspace
\pagenumbering{num style}
Specifies the style of page numbers. Possible values of num style are:
• arabic Arabic numerals
• roman Lowercase roman numerals
• Roman Uppercase roman numerals
• alph Lowercase letters
• Alph Uppercase letters
Output
H2 O is the formula for water
Output
$J { \rm Roman}$ will produce JRoman not JRoman
Output
x3 is the third power of x
Output
an2 and an2
Code
\begin{itemize}
\item I am using itemize environment to create an unordered list here.
\item Items are started using the \item command.
\end{itemize}
Output
• I am using itemize environment to create an unordered list here.
• Items are started using the \item command.
Output
1 I am using enumerate environment to create an ordered
(numbered) list.
2 Items are started using the \item command.
Kaushik Roy (WBSU) LaTeX May 28, 2024 20 / 30
Nested list
• We can change the number or bullets as desired
• the enumitem package can be used
output
code code
\begin{enumerate} \item 3rd item 1 1st item
\item 1st item \begin{itemize} 1 1st sub item
2 2nd sub item
\begin{enumerate} \item 1st sub item
\item 1st sub item \item 2nd sub item 2 2nd item
\item 2nd sub item \end{itemize} (i) 1st sub item
(ii) 2nd sub item
\end{enumerate} \item 4th item
\item 2nd item \begin{itemize} 3 3rd item
• 1st sub item
\begin{enumerate}[(i)] \item[\ast] sub item
• 2nd sub item
\item 1st sub item \item[\ast] sub item
\item 2nd sub item \end{itemize} 4 4th item
\end{enumerate} \end{enumerate} ∗ sub item
∗ sub item
Kaushik Roy (WBSU) LaTeX May 28, 2024 21 / 30
Alignment
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures
1 Introduction to LATEX
2 Text formatting
Font, List, Comments & Spacing, Special Characters
8 Drawing Figures