From b43f223711482edb065f5996a681399e41f13b5f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 19 Apr 2023 11:25:40 +0200 Subject: [PATCH] add pics --- .gitattributes | 1 + .gitignore | 1 + report/document.tex | 36 ++++++++++++++++++++++++++++++++++ report/imgs/from_example.png | 3 +++ report/imgs/output_example.png | 3 +++ 5 files changed, 44 insertions(+) create mode 100644 .gitattributes create mode 100644 report/imgs/from_example.png create mode 100644 report/imgs/output_example.png diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..24a8e87 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore index ca1c062..802c979 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /report/* !/report/*.tex +!/report/imgs diff --git a/report/document.tex b/report/document.tex index ee83724..9fc3692 100644 --- a/report/document.tex +++ b/report/document.tex @@ -50,6 +50,13 @@ Pour la partie scraping, j'ai utilisé le module l'utilisation de \texttt{regex}. J'ai aussi utilisé le module \texttt{chrono} qui m'as permis de traiter les dates. +\begin{figure}[h] + \centering + \includegraphics[width=\textwidth]{imgs/from_example.png} + \caption{Affichage de l'emploi du temps des L3-Y depuis le site web} + \label{fig:l3y-website} +\end{figure} + \subsection{Données récupérées} Deux pages sont scrapées par le programme : \begin{enumerate} @@ -96,10 +103,39 @@ Le fichier en sortie est conforme à la \href{ pour en être sûr j'ai utilisé le validateur mis à disposition sur \url{https://icalendar.org/validator.html}. +\begin{figure}[h] + \begin{minted}[autogobble,fontsize=\footnotesize]{text} + BEGIN:VEVENT + UID:b41164e1-fe45-4f82-83cf-c69f89f25614 + DTSTAMP:20230419T090534Z + CLASS:PUBLIC + TRANSP:OPAQUE + DESCRIPTION:Anna Pappa + DTSTART;TZID=Europe/Paris:20230214T150000 + DTEND;TZID=Europe/Paris:20230214T180000 + LOCATION:B104 + SUMMARY;LANGUAGE=fr:Ingénierie des langues + END:VEVENT + \end{minted} + \caption{Extrait de l'emploi du temps des L3-Y sous forme de fichier + (\small{\texttt{cargo r --release -- l3-y -e file}})} + \label{txt:l3y-file} +\end{figure} + \subsection{Terminal} Par défaut, on affiche le calendrier sous forme de tableau dans la sortie standard du terminal. +Pour avoir un affichage différent que le site web, j'ai décidé de mettre les +jours en colonnes et les heures en lignes. + +\begin{figure}[h] + \hspace{-5em} + \includegraphics[width=1.29\textwidth]{imgs/output_example.png} + \caption{Affichage de l'emploi du temps des L3-Y depuis l'application} + \label{fig:l3y-cli} +\end{figure} + \section{Exemple d'utilisation} diff --git a/report/imgs/from_example.png b/report/imgs/from_example.png new file mode 100644 index 0000000..278e6e9 --- /dev/null +++ b/report/imgs/from_example.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d1f52c7d9b6168bf0c6f76a1652b4ca5f043fc68a7bd83f8d7292608b0b7391 +size 21645 diff --git a/report/imgs/output_example.png b/report/imgs/output_example.png new file mode 100644 index 0000000..ac0653e --- /dev/null +++ b/report/imgs/output_example.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27d6b20032617bc1144a37bcf1c38d47d850e47a12e18aa631a02d536c3d5759 +size 12966