je réussi à peu près à m'en sortir avec LATEX lorsqu'il s'agit de rédiger un rapport. Je rédige généralement sous Overleaf car c'est collaboratif. Je m'essaie maintenant aux présentations avec beamer.
J'ai une trame, que je souhaite renseigner. Le problème vient lorsque je souhaite intégrer des images. Je réalise cela avec ce code :
Code : Tout sélectionner
\begin{figure}
\centering
\includegraphics[scale=0.12]{figures/Double_iteration/Calcul_vs_cordic.png}
\end{figure}
Code beamertheme :
Code : Tout sélectionner
\mode<presentation>
% Requirement
\RequirePackage{tikz}
% Settings
\useinnertheme{l2ep}
\useoutertheme{l2ep}
\usecolortheme{l2ep}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=2ex]{palette quaternary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
\mode<all>
Code : Tout sélectionner
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{l2ep}[1][]
{
\vskip1cm%
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}[remember picture,overlay]
\useasboundingbox[fill=white,fill opacity=0](0,0) rectangle(\the\paperwidth,\the\paperheight);
%\fill[gris] (0,2.2625) rectangle(9.75,2.7625);
\fill[gris] (0,1.6) rectangle(9.75,2.25);
%\fill[orange] (10,2.2625) rectangle(\the\paperwidth,2.7625);
\fill[orange] (10,1.6) rectangle(\the\paperwidth,2.25);
\ifx\insertframesubtitle\@empty%
{\node[anchor= west,white,font=\large] at (.5,1.875){\textbf{\insertframetitle}};}
\node[anchor= north west,white,font=\normalsize] at (10.125,2.25){\textbf{\insertframenumber}};%
\else%
{\node[anchor= west,white,font=\large] at (.5,1.875){\textbf{\insertframetitle}};%
\node[anchor= west,black,font=\small] at (.5,1.25){\insertframesubtitle};}%
\node[anchor= north west,white,font=\normalsize] at (10.125,2.25){\textbf{\insertframenumber}};%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
\mode<all>
Code : Tout sélectionner
\mode<presentation>
\graphicspath{{figures/}}
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\node[anchor=north west, inner sep=0pt] (header) at (current page.north west)
{\includegraphics[width=\the\paperwidth]{l2ephead}};
\fill[color=gris] (0, 7) rectangle (\the\paperwidth,7.5);
\fill[color=orange] (10,7) rectangle(15, 7.5);
\fill[color=orange] (3,1) rectangle(10,1.0675);
\fill[color=white] (9.75,7) rectangle(10, 7.5);
\ifnum\thepage>1\relax%
\fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{l2ep}[1][]
{
\vskip2cm%
\begin{beamercolorbox}[wd=\paperwidth,center,sep=4pt,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\vskip0.5cm%
\begin{beamercolorbox}[wd=\paperwidth,center,#1]{author}
\usebeamerfont{author}\textbf{\insertauthor}%
\end{beamercolorbox}
\vskip0.25cm%
\begin{beamercolorbox}[wd=\paperwidth,center,#1]{date}
\usebeamerfont{author}\insertdate%
\end{beamercolorbox}
\vfill
}
% Items
\setbeamertemplate{items}[square]
\setbeamertemplate{sections/subsections in toc}[square]
\mode
<all>
Code : Tout sélectionner
\mode<presentation>
\definecolor{violet}{RGB}{128, 39, 108}
\definecolor{orange}{RGB}{240, 126, 28}
\definecolor{gris} {RGB}{133,137,143}
\setbeamercolor{palette primary} {bg=white, fg=violet}
\setbeamercolor{palette secondary} {bg=white, fg=gris}
\setbeamercolor{palette tertiary} {bg=white, fg=orange}
\setbeamercolor{palette quaternary} {bg=white, fg=black}
\setbeamercolor{structure} {fg=gris} % itemize, enumerate, etc
\setbeamercolor{section in toc} {fg=gris} % TOC sections
% Settings
\setbeamercolor*{section in head/foot}{fg=gris, bg=white}
\setbeamercolor*{title page header}{fg=black}
\setbeamercolor*{author}{fg=orange}
\setbeamercolor*{date}{fg=gris}
\setbeamercolor*{item}{fg=orange}
\mode
<all>
Code : Tout sélectionner
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\usepackage{listings}
\usepackage{mathabx}
\usepackage{mathpazo}
\usepackage{amsmath}
\usepackage{eulervm}
\usepackage{multicol}
\usepackage{ragged2e}
\usepackage{changepage}
\usepackage[export]{adjustbox}
\usepackage{harpoon}
\newcommand*{\vect}[1]{\overrightharp{\ensuremath{#1}}}
\usepackage[sorting=none]{biblatex}
\addbibresource{bibliography.bib}
\renewcommand*{\bibfont}{\normalfont\small}
\usepackage[export]{adjustbox}
\usetheme{l2ep} %load the custom theme only when in the same folder
\title{\LARGE{\textbf{CORDIC-Based Computation of Arcsine}}}
\date[ISPN ’80]{2021/2024}
\author[Euclid]{xxxxx XXXXXXX}
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
%frame numbering starts after title frame
\addtobeamertemplate{navigation symbols}{}{%
\usebeamerfont{headline
}%
\usebeamercolor[black]{headline}%
\hspace{2mm}%
\vspace{105mm}%
\insertframenumber
}
\section{Introduction}
\begin{frame}
\frametitle{Le CORDIC : Explication de l'algorithme}
\framesubtitle{L2EP 2023}
\begin{theorem}
There is no largest prime number.
\end{theorem}
\begin{enumerate}
\item<1-| alert@1> Suppose $p$ were the largest prime number.
\item<2-> Let $q$ be the product of the first $p$ numbers.
\item<3-> Then $q+1$ is not divisible by any of them.
\item<1-> But $q + 1$ is greater than $1$, thus divisible by some prime number not in the first $p$ numbers.
\end{enumerate}
\end{frame}
\section{Direct CORDIC}
\begin{frame}
\frametitle{Calcul du Arcsin : Méthode du Direct CORDIC}
\framesubtitle{Frame subtitle}
\begin{itemize}
\item one
\item two
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% DOUBLE ITERATION %%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%% DEBUT %%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{CORDIC Double iteration}
\begin{frame}
\frametitle{Calcul du Arcsin : Méthode double itération}
\framesubtitle{\underline{Objectif :} Eviter l'erreur d'approximation}
\vspace{-3}
La méthode la plus répandue consiste à réaliser 2 itérations par calcul d'angle.
Nous avons alors le système d'équations suivant :
$$
\delta_i = \left\{
\begin{array}{ll}
\ 1 & \mbox{si } Y_i\leq T_i, \\
\\-1 & \mbox{sinon.}
\end{array}
\right.
$$
\begin{itemize}
\item $X_{i+1}=x_i(1-2^{-2i})-y_i\delta_i\times2^{-k+1}$
\item $Y_{i+1}=y_i(1-2^{-2i})+x_i\delta_i\times2^{-k+1}$
\item $Z_{i+1}=Z_i+2\delta_i\times atan(2^{-i})$
\item $T_{i+1}=T_i + T_i\times2^{-2i}$
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Calcul du Arcsin : Méthode double itération}
\framesubtitle{Comparatif des résultats}
\begin{figure}
\centering
\includegraphics[scale=0.12]{figures/Double_iteration/Calcul_vs_cordic.png}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Calcul du Arcsin : Méthode double itération}
\framesubtitle{Visualisation des écarts}
\begin{figure}
\centering
\includegraphics[scale=0.12]{figures/Double_iteration/Ecart double_ite - réel.png}
\end{figure}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% DOUBLE ITERATION %%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%% FIN %%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Proposition}
\begin{frame}
\frametitle{Notre proposition}
\cite{JA,GB,Steinmetz}
\end{frame}
\section{Comparatifs}
\begin{frame}
\frametitle{Comparatifs}
\cite{JA,GB,Steinmetz}
\end{frame}
\section{Conclusion}
\begin{frame}
\frametitle{Conclusion}
\cite{JA,GB,Steinmetz}
\end{frame}
\printbibliography
\end{document}
Merci d'avance !!!