This commit is contained in:
Debucquoy
2023-10-18 20:27:40 +02:00
parent 4de4dcf2c2
commit b0f02b0d5d
29 changed files with 700 additions and 2 deletions

Submodule bac2/latex/beamer-umons added at 4eda91b637

View File

@ -0,0 +1,49 @@
% Copyright 2009 by C. Troestler <Christophe.Troestler@umons.ac.be>
% This file is under GNU GPL v3 or later.
\mode<presentation>
\definecolor{umons-red}{RGB}{168, 0, 57}
\definecolor{umons-turquoise}{RGB}{0, 171, 204}
\definecolor{umons-gray}{RGB}{150, 150, 150}
\setbeamercolor{alerted text}{fg=umons-red}
\setbeamercolor*{palette primary}{fg=black, bg=umons-turquoise}
\setbeamercolor*{palette secondary}{fg=black, bg=umons-turquoise}
\setbeamercolor*{palette tertiary}{fg=umons-gray!30, bg=umons-red!80!black}
\setbeamercolor*{palette quaternary}{fg=black, bg=umons-gray!15}
\setbeamercolor*{upper separation line head left}{parent=palette tertiary}
\setbeamercolor*{upper separation line head right}{parent=palette primary}
\setbeamercolor{title}{fg=umons-red}
%\setbeamercolor*{titlelike}{fg=umons-red}
\setbeamercolor{frametitle}{fg=umons-red, bg=white}
\setbeamercolor{frametitle right}{bg=yellow!60!orange}
\setbeamercolor{structure}{fg=umons-turquoise}
\setbeamercolor{block title}{fg=umons-turquoise, bg=umons-gray!30}
\setbeamercolor{block body}{fg=black, bg=umons-gray!15}
\setbeamercolor{block title example}{fg=black, bg=umons-gray!30}
\setbeamercolor{block body example}{fg=black, bg=umons-gray!15}
\setbeamercolor{block title alerted}{fg=white, bg=umons-red}
\setbeamercolor{block body alerted}{fg=black, bg=umons-red!10}
\setbeamercolor{itemize subitem}{fg=umons-gray}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
\setbeamercolor*{sidebar}{fg=umons-red,bg=orange!75!white}
\setbeamercolor*{sidebar}{fg=umons-red,bg=orange!75!white}
\setbeamercolor*{palette sidebar primary}{fg=umons-red!10!black}
\setbeamercolor*{palette sidebar secondary}{fg=white}
\setbeamercolor*{palette sidebar tertiary}{fg=umons-red!50!black}
\setbeamercolor*{palette sidebar quaternary}{fg=yellow!10!orange}
\mode
<all>

View File

@ -0,0 +1,91 @@
% Based on the "infolines" outer theme.
\newif\ifbeamer@UMONS@navigation
\beamer@UMONS@navigationfalse
\DeclareOptionBeamer{navigation}[true]{%
\csname beamer@UMONS@navigation#1\endcsname}
\newif\ifbeamer@UMONS@nosubsection
\beamer@UMONS@nosubsectionfalse
\DeclareOptionBeamer{no-subsection}[true]{%
\csname beamer@UMONS@nosubsection#1\endcsname}
\newif\ifbeamer@UMONS@nototalframenumber
\beamer@UMONS@nototalframenumberfalse
\DeclareOptionBeamer{no-totalframenumber}[true]{%
\csname beamer@UMONS@nototalframenumber#1\endcsname}
\ProcessOptionsBeamer
\mode<presentation>
\setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette secondary}
\setbeamercolor*{date in head/foot}{parent=palette primary}
\setbeamercolor*{section in head/foot}{parent=palette quaternary}
\setbeamercolor*{subsection in head/foot}{parent=palette primary}
\defbeamertemplate*{footline}{UMONS theme}
{
\leavevmode%
\hbox{%
% Left box (author and institute)
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{%
author in head/foot}%
\usebeamerfont{author in head/foot}%
\insertshortauthor
\beamer@ifempty{\insertshortinstitute}{}{~~\insertshortinstitute}%
\end{beamercolorbox}%
% Central box (presentation title)
\begin{beamercolorbox}[wd=.52\paperwidth,ht=2.25ex,dp=1ex,center]{%
title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
% Right box (date and pages)
\begin{beamercolorbox}[wd=.23\paperwidth,ht=2.25ex,dp=1ex,right]{%
date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber
\ifbeamer@UMONS@nototalframenumber\else ~/~\inserttotalframenumber\fi
\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\defbeamertemplate*{headline}{UMONS theme}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.25\paperwidth,ht=1ex,dp=0ex]{%
upper separation line head left}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.75\paperwidth,ht=1ex,dp=0ex]{%
upper separation line head right}%
\end{beamercolorbox}}%
\vskip0pt
\ifbeamer@UMONS@navigation
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}%
% Box for section titles and possibly subtitles (for fast navigation)
\begin{beamercolorbox}{section in head/foot}
\ifbeamer@UMONS@nosubsection
\insertsectionnavigationhorizontal{\paperwidth}{%
\vspace*{2pt}}{\vspace*{2pt}}%
\else
\vspace*{2pt}\insertnavigation{\paperwidth}\vspace*{2pt}%
\fi
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}%
\fi
}
\setbeamertemplate{mini frames}[box]
\setbeamersize{text margin left=1em,text margin right=1em}
\mode
<all>

View File

@ -0,0 +1,30 @@
% Copyright 2009 by C. Troestler <Christophe.Troestler@umons.ac.be>
% This file is under GNU GPL v3 or later.
\mode<presentation>
% Display a navigation bar
\def\beamer@themeUMONS@navigation{false}
\DeclareOptionBeamer{navigation}[true]{%
\def\beamer@themeUMONS@navigation{#1}}
% Do not display "boxes" to go to subsections in the navigation bar.
\def\beamer@themeUMONS@nosubsection{false}
\DeclareOptionBeamer{no-subsection}[true]{%
\def\beamer@themeUMONS@nosubsection{#1}}
% Do not display the total number of pages.
\def\beamer@themeUMONS@nototalframenumber{false}
\DeclareOptionBeamer{no-totalframenumber}[true]{%
\def\beamer@themeUMONS@nototalframenumber{#1}}
\ProcessOptionsBeamer
\useinnertheme{rectangles}
\usecolortheme{UMONS}
\useoutertheme[navigation=\beamer@themeUMONS@navigation,
no-subsection=\beamer@themeUMONS@nosubsection,
no-totalframenumber=\beamer@themeUMONS@nototalframenumber]{UMONS}
\mode<all>

BIN
bac2/latex/lesson3.pdf Normal file

Binary file not shown.

81
bac2/latex/lesson3.tex Normal file
View File

@ -0,0 +1,81 @@
\documentclass{beamer}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{amsmath, amsfonts, amssymb, amsthm}
\usetheme{Umons}
\title{Un petit exemple de Beamer}
\author{Debucquoy Anthony}
\institute{Universit\'e de Mons}
\section{Figure}
\section{Formules math\'ematiques disponibles}
\section{Sur deux colonnes}
\begin{document}
\begin{frame}[t]
\maketitle
\end{frame}
\begin{frame}[t]
\frametitle{Table des mati\'eres}
\tableofcontents
\end{frame}
\begin{frame}[t]
\frametitle{Pentagone}
\framesubtitle{Un pentagone est un polygone \`a cinq sommets et cinq cot\'es.}
\begin{block}{Pentagone r\'egulier}
Un pentagone r\'egulier est un pentagone dont tous les cot\'es sont de m\^eme longeur et dont tous les angles internes valent 108 degr\'es.
\end{block}
\begin{block}{Construction d'un pentagone r\'egulier avec Tikz}
On demande:
\begin{itemize}
\item que les cot\'es du pentagone mesurent 1.5 centim\`etre
\item Que le pentagone soit colori\'e en gris
\begin{center}
\begin{tikzpicture}[scale=1, transform shape]
\fill[gray] (0*360/5:1) -- (1*360/5:1) -- (2*360/5:1) -- (3*360/5:1) -- (4*360/5:1) -- cycle;
\draw (0*360/5:1) -- (1*360/5:1) -- (2*360/5:1) -- (3*360/5:1) -- (4*360/5:1) -- cycle;
\end{tikzpicture}
\end{center}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}[t]
\frametitle{Formules math\'ematiques disponibles dans TikZ}
Les op\'erations
\begin{itemize}
\item Operations de base : $ x + y, x - y, x * y, x / y, x^y$
\item Modulo, maxmum, minimum: $\mod(x,y), \max(x,y) \min(x,y)$
\end{itemize}
Les fonctions
\begin{enumerate}
\item $abs(x), exp(x), ln(x), sqrt(x)$
\item Arrondi, partie enti\'ere, partie enti\'ere sup\'erieure : round(x), floor(x), ceil(x).
\end{enumerate}
\begin{itemize}
\item sin(x), cos(x), tan(x), cot(x), sec(x), cosec(x)
\end{itemize}
\end{frame}
\begin{frame}[t]
\frametitle{Une int\'egrale}
On a que
\[ \int^2_1 \frac{1}{x} dx = \ln2 \]
La valeur $\ln2$ repr\'esente donc l'aire gris\'ee sur le graphe suivant.
\begin{center}
\begin{tikzpicture}[scale=1, transform shape]
\plot{ln x}
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}