LaTeX, a high-quality typesetting system, is widely used in academia and publishing due to its ability to create beautiful, professional documents. It's particularly popular for creating mathematical formulas, but its uses extend far beyond that. Let's explore some practical LaTeX examples, from basic document structures to more complex elements like tables and figures.

LaTeX might seem intimidating at first, with its use of tags and commands, but once you get the hang of it, you'll appreciate its power and flexibility. So, let's dive in and look at some common LaTeX examples.

Basic LaTeX Document Structure
Every LaTeX document starts with a preamble, where you load necessary packages, and a body, where you input your content. Here's a simple example:

```latex \documentclass{article} \usepackage{amsmath} % for math environments \usepackage{amsfonts} % for math fonts \begin{document} Hello, World! \end{document} ```
In this example, we're using the `article` document class and loading two packages: `amsmath` for mathematical environments and `amsfonts` for math fonts. The content of our document is simply "Hello, World!".
Now, let's look at some more complex elements.

Mathematical Formulas
LaTeX shines when it comes to typesetting mathematical formulas. Here's how you can write some common formulas:
```latex \begin{equation} E = mc^2 \end{equation} \begin{align} 3x + 2y &= 10 \\ 2x - 5y &= 15 \end{align} ```
The `equation` environment is used for a single, numbered equation, while the `align` environment is used for a system of equations.

Tables
LaTeX provides several ways to create tables. Here's an example using the `tabular` environment:
```latex \begin{tabular}{|c|c|c|} \hline Header 1 & Header 2 & Header 3 \\ \hline Cell 1 & Cell 2 & Cell 3 \\ \hline Cell 4 & Cell 5 & Cell 6 \\ \hline \end{tabular} ```
In this example, we have a 3x3 table with a header row and two data rows. The `|` symbols create vertical lines, and the `\hline` command creates horizontal lines.

Creating Lists in LaTeX
LaTeX offers two types of lists: unordered (bulleted) and ordered (numbered). Here's how you can create them:






![[Latex ]Exemple de Page de garde rapport de PFE Latex 2025](https://i.pinimg.com/originals/21/65/0b/21650b51df6956cd078586c44beb8bbc.png)











Unordered list:
```latex \begin{itemize} \item Item 1 \item Item 2 \item Item 3 \end{itemize} ```
Ordered list:
```latex \begin{enumerate} \item First item \item Second item \item Third item \end{enumerate} ```
In both examples, the `\item` command is used to create a new list item.
Figures and Captions
LaTeX allows you to include figures and captions using the `figure` environment. Here's an example:
```latex \begin{figure}[h] \centering \includegraphics{example-image-a} \caption{An example figure} \label{fig:example} \end{figure} ```
In this example, we're including an image using the `graphicx` package's `\includegraphics` command. The `\caption` command adds a caption to the figure, and the `\label` command allows us to reference the figure later in the document.
LaTeX is a powerful tool with many more features and capabilities. Whether you're writing a thesis, a research paper, or even a book, LaTeX can help you create professional, high-quality documents. So, why not give it a try and explore its many possibilities?