Complete LaTeX Learning Guide
Introduction
LaTeX is a powerful typesetting system used for creating professional documents,
especially in scientific and academic writing. This guide will take you from beginner to pro level.
Step 1: Setting Up LaTeX
To use LaTeX, you can either:
1. Use Overleaf (Online) - No installation required.
2. Install TeX Live (Windows/Linux) or MiKTeX (Windows) for offline use.
3. Use a LaTeX editor like TeXworks or TeXmaker.
Basic Document Structure:
\documentclass{article}
\begin{document}
Hello, LaTeX!
\end{document}
Step 2: Formatting Text
You can format text in LaTeX as follows:
- Bold: \textbf{Bold}
- Italic: \textit{Italic}
- Underline: \underline{Text}
Step 3: Sections & Lists
\section{Introduction}
\subsection{Subsection}
\begin{itemize}
\item Bullet List Item
\end{itemize}
Step 4: Mathematical Equations
Inline: $E = mc^2$
Display Mode:
\begin{equation}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\end{equation}
Step 5: Creating Tables
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|}
\hline
Name & Age & Country \\
\hline
Alice & 25 & USA \\
Bob & 30 & UK \\
\hline
\end{tabular}
\caption{Sample Table}
\end{table}
Step 6: Inserting Images
\usepackage{graphicx}
\begin{figure}[h]
\centering
\includegraphics[width=0.5\textwidth]{example-image}
\caption{Sample Image}
\end{figure}
Step 7: Citations & Bibliography
\begin{thebibliography}{9}
\bibitem{einstein1905}
A. Einstein, "On the Electrodynamics of Moving Bodies," Annalen der Physik, 1905.
\end{thebibliography}
Step 8: Complete LaTeX Report Structure
\documentclass{article}
\usepackage{graphicx, amsmath, cite}
\begin{document}
\title{LaTeX Report}
\author{Your Name}
\date{\today}
\maketitle
\section{Introduction}
This is a sample report.
\end{document}
Next Steps
Now that you understand LaTeX, here are some advanced topics to explore:
- **Beamer** (for presentations)
- **TikZ** (for diagrams and drawings)
- **Custom LaTeX templates for books and reports)