Saataa andagii !

This commit is contained in:
Lukian 2025-01-04 18:14:02 +01:00
parent 2e1c79155c
commit 6c32b8e523
6 changed files with 25 additions and 4 deletions

BIN
cr/images/algo_base.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
cr/images/mutation.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cr/images/reproduction.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
cr/images/selection.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -2,6 +2,7 @@
\usepackage{geometry} \usepackage{geometry}
\usepackage[french]{babel} \usepackage[french]{babel}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage{xparse}
\graphicspath{{images/}} \graphicspath{{images/}}
\geometry{ \geometry{
@ -51,10 +52,28 @@
\end{titlepage} \end{titlepage}
} }
\newcommand{\crfigure}[2] { \NewDocumentCommand{\crfigure}{O{0.75\textwidth} m m}{
\begin{figure}[h] \begin{figure}[h]
\centering \centering
\includegraphics[width=0.75\textwidth]{#1} \includegraphics[width=#1]{#2}
\caption{#2} \caption{#3}
\end{figure} \end{figure}
} }
\NewDocumentCommand{\twofigures}{O{0.75\textwidth} m m m m}{
\begin{figure}[h]
\centering
\begin{minipage}[t]{0.45\dimexpr#1}
\centering
\includegraphics[width=\textwidth]{#2}
\caption{#3}
\end{minipage}
\hspace{0.05\textwidth}
\begin{minipage}[t]{0.45\dimexpr#1}
\centering
\includegraphics[width=\textwidth]{#4}
\caption{#5}
\end{minipage}
\end{figure}
}

View file

@ -31,8 +31,10 @@ Afin de résoudre le problème posé nous avons donc dû mettre en place un algo
\section{Algortihme simplifié} \section{Algortihme simplifié}
Voici un algorigramme simplifié de notre programme : Voici des algorigrammes de la boucle principale du programme ainsi que des fonctions principales :
\twofigures[0.8\textwidth]{algo\_base}{Algorigramme de la boucle principale}{selection}{Algorigramme de la fonction de sélection}
\twofigures[0.8\textwidth]{reproduction}{Algorigramme de la fonction de reproduction}{mutation}{Algorigrammes de la fonction de mutation}
\end{document} \end{document}