- LaTeX_Guide
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{example-image-a.png}
\caption{Image A}
\label{fig:example-image-a} % Bon réflexe de garder le même nom de fichier et de label
\end{figure}
\begin{figure}[H]
\begin{subfigure}[t]{0.475\textwidth}
\includegraphics[width=1\textwidth]{example-image-b}
\caption{Image B}
\label{subfig:example-image-b}
\end{subfigure}%
ATTENTION, le % est très important ici pour éviter les problèmes de vide
\hfill % Remplissage entre les images
\begin{subfigure}[t]{0.475\textwidth}
\includegraphics[width=1\textwidth]{example_image_c}
\caption{Image C}
\label{subfig:example-image-c}
\end{subfigure}
\caption{Exemple d'utilisation des sous-figures}
\label{fig:test_subfigure}
\end{figure}
- h : Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot)
- t : Position at the top of the page.
- b : Position at the bottom of the page.
- p : Put on a special page for floats only.
- ! : Override internal parameters LATEX uses for determining "good" float positions.
- H : Places the float at precisely the location in the LATEX code. Requires the float package (\usepackage{float}). This is somewhat equivalent to h!, though some errors may arise if you have too many consecutive floats with [H].
- https://www.tablesgenerator.com/ : Pour un tableau non évolutif et une interface sympathique.
- https://www.latex-tables.com/ : Pour pouvoir les rééditer facilement.
- https://latex.codecogs.com/eqneditor/editor.php : Pour créer des équations en ligne.
\noteworthy{equation}{légende} pour l'avoir dans la liste des équations
\begin{listing}[htbp]
\begin{minted}{c}
#include <stdio.h>
int main() {
printf("Hello, World!"); /*printf() outputs the quoted string*/
return 0;
}
\end{minted}
\caption{Hello World in C}
\label{listing:2}
\end{listing}
\mint{python}|print("hello")| % Équivalent de \minted mais plus court
\mintinline{python}|print("hello")| % Quand t'as qu'une ligne de code
Remarque : Le séparateur aurait pu être { } ou d'autres ponctuations
\inputminted[firstline=2, lastline=12]{octave}{BitXorMatrix.m}
\title{Titre}
\author{Auteur}
\date{\today}
\maketitle
\begin{abstract}
Blablabla
\end{abstract}