Commit cc55f4dbfa5ca517ef7eb5849d1cbfccf0c66bba
Exists in
main
merged
Showing 5 changed files Inline Diff
README.md
View file @
cc55f4d
| # Thème de présentation FEMTO-ST pour LaTeX Beamer | 1 | 1 | # Thème de présentation FEMTO-ST pour LaTeX Beamer | |
| 2 | 2 | |||
| Ce thème Beamer non officiel est basé sur la [nouvelle charte graphique de FEMTO-ST](https://extranet.femto-st.fr/intranet/comm/Modles%20de%20documents/FEMTO_ST_charte-graphique_2022.pdf). | 3 | 3 | Ce thème Beamer non officiel est basé sur la [nouvelle charte graphique de FEMTO-ST](https://extranet.femto-st.fr/intranet/comm/Modles%20de%20documents/FEMTO_ST_charte-graphique_2022.pdf). | |
| 4 | 4 | |||
| # Téléchargement | 5 | 5 | # Téléchargement | |
| 6 | 6 | |||
| Pour une utilisation rapide du projet, il suffit de [télécharger le projet en | 7 | 7 | Pour une utilisation rapide du projet, il suffit de [télécharger le projet en .zip](https://disc.univ-fcomte.fr/gitlab/paul.breugnot/femtoslides/repository/archive.zip) depuis l'interface GitLab. | |
| .zip](https://disc.univ-fcomte.fr/gitlab/paul.breugnot/femtoslides/repository/archive.zip) depuis l'interface GitLab. | 8 | |||
| 9 | 8 | |||
| Il est également possible de cloner le dépôt avec la commande suivante : | 10 | 9 | Il est également possible de cloner le dépôt avec la commande suivante : | |
| 11 | 10 | |||
| ``` | 12 | 11 | ``` | |
| git clone -b main https://disc.univ-fcomte.fr/gitlab/paul.breugnot/femtoslides.git | 13 | 12 | git clone -b main https://disc.univ-fcomte.fr/gitlab/paul.breugnot/femtoslides.git | |
| ``` | 14 | 13 | ``` | |
| 15 | 14 | |||
| # Utilisation | 16 | 15 | # Utilisation | |
| 17 | 16 | |||
| Pour utiliser le thème, il est nécessaire de placer les fichiers `beamercolorthemefemto.sty`, `beamerfontthemefemto.sty` et `beamerthemefemto.sty` dans le dossier contenant la présentation, ou à tout autre emplacement du système accessible par LaTeX. | 18 | 17 | Pour utiliser le thème, il est nécessaire de placer les fichiers `beamercolorthemefemto.sty`, `beamerfontthemefemto.sty` et `beamerthemefemto.sty` et le dossier `img` dans le dossier contenant la présentation, ou à tout autre emplacement du système accessible par LaTeX. | |
| 19 | 18 | |||
| 20 | ||||
| La commande `\usetheme{femto}` permet de charger le thème FEMTO-ST. | 21 | 19 | La commande `\usetheme{femto}` permet de charger le thème FEMTO-ST. | |
| 22 | 20 | |||
| ```latex | 23 | 21 | ```latex | |
| \documentclass{beamer} | 24 | 22 | \documentclass{beamer} | |
| 25 | 23 | |||
| \usetheme{femto} | 26 | 24 | \usetheme{femto} | |
| 27 | 25 | |||
| \begin{document} | 28 | 26 | \begin{document} | |
| ... | 29 | 27 | ... | |
| \end{document} | 30 | 28 | \end{document} | |
| ``` | 31 | 29 | ``` | |
| 32 | 30 | |||
| Afin d'assurer un rendu correct, la page de titre doit être définie avec la commande suivante : | 33 | 31 | Afin d'assurer un rendu correct, la page de titre doit être définie avec la commande suivante : | |
| 34 | 32 | |||
| ```latex | 35 | 33 | ```latex | |
| \begin{document} | 36 | 34 | \begin{document} | |
| 37 | 35 | |||
| \begin{frame}[plain,c] | 38 | 36 | \begin{frame}[plain,c] | |
| \titlepage | 39 | 37 | \titlepage | |
| \end{frame} | 40 | 38 | \end{frame} |
beamerthemefemto.sty
View file @
cc55f4d
| \mode<presentation> | 1 | 1 | \mode<presentation> | |
| 2 | 2 | |||
| \RequirePackage{tikz} | 3 | 3 | \RequirePackage{tikz} | |
| \RequirePackage{xcolor} | 4 | 4 | \RequirePackage{xcolor} | |
| \RequirePackage{helvet} | 5 | 5 | \RequirePackage{helvet} | |
| \usetikzlibrary{fit,positioning,calc,patterns.meta} | 6 | 6 | \usetikzlibrary{fit,positioning,calc,patterns.meta} | |
| 7 | 7 | |||
| 8 | 8 | |||
| \usecolortheme{femto} | 9 | 9 | \usecolortheme{femto} | |
| \usefonttheme{femto} | 10 | 10 | \usefonttheme{femto} | |
| 11 | 11 | |||
| \setbeamertemplate{title page} | 12 | 12 | \setbeamertemplate{title page} | |
| { | 13 | 13 | { | |
| \begin{tikzpicture}[remember picture, overlay] | 14 | 14 | \begin{tikzpicture}[remember picture, overlay] | |
| \node[fit=(current page),fill=\@femtomaincolor] {}; | 15 | 15 | \node[fit=(current page),fill=\@femtomaincolor] {}; | |
| \node[anchor=north west,inner sep=3mm] at (current page.north west) | 16 | 16 | \node[anchor=north west,inner sep=3mm] at (current page.north west) | |
| {\includegraphics[width=3cm]{img/Femto-logo_blanc-2012-transp.png}}; | 17 | 17 | {\includegraphics[width=3cm]{img/Femto-logo_blanc-2012-transp.png}}; | |
| \node[anchor=south west,inner sep=3mm] (CNRS) at (current page.south | 18 | 18 | \node[anchor=south west,inner sep=3mm] (CNRS) at (current page.south | |
| west) | 19 | 19 | west) | |
| {\includegraphics[height=1cm]{img/CNRS_logo_blanc_sur_alpha.pdf}}; | 20 | 20 | {\includegraphics[height=1cm]{img/CNRS_logo_blanc_sur_alpha.pdf}}; | |
| \node[inner sep=0, right=0 of CNRS] (UBFC) | 21 | 21 | \node[inner sep=0, right=0 of CNRS] (UBFC) | |
| {\includegraphics[height=1cm]{img/ubfc_blanc_sur_alpha.pdf}}; | 22 | 22 | {\includegraphics[height=1cm]{img/ubfc_blanc_sur_alpha.pdf}}; | |
| \node[inner sep=0, right=3mm of UBFC] (UFC) | 23 | 23 | \node[inner sep=0, right=3mm of UBFC] (UFC) | |
| {\includegraphics[height=.5cm]{img/ufc_blanc_sur_alpha.pdf}}; | 24 | 24 | {\includegraphics[height=.5cm]{img/ufc_blanc_sur_alpha.pdf}}; | |
| \node[inner sep=0, right=3mm of UFC] (ENSMM) | 25 | 25 | \node[inner sep=0, right=3mm of UFC] (ENSMM) | |
| {\includegraphics[height=1cm]{img/ENSMM.png}}; | 26 | 26 | {\includegraphics[height=1cm]{img/ENSMM.png}}; | |
| \node[inner sep=0, right=3mm of ENSMM] (UTBM) | 27 | 27 | \node[inner sep=0, right=3mm of ENSMM] (UTBM) | |
| {\includegraphics[height=1cm]{img/UTBM.eps}}; | 28 | 28 | {\includegraphics[height=1cm]{img/UTBM.pdf}}; | |
| 29 | 29 | |||
| % orange arc | 30 | 30 | % orange arc | |
| \node[anchor=center, inner sep=0] at ($(current page.south west) + (0, | 31 | 31 | \node[anchor=center, inner sep=0] at ($(current page.south west) + (0, | |
| 2.5cm)$) { | 32 | 32 | 2.5cm)$) { | |
| \begin{tikzpicture} | 33 | 33 | \begin{tikzpicture} | |
| \path[fill=femtoredstrong, even odd rule] (0, 0) circle[radius=10px] | 34 | 34 | \path[fill=femtoredstrong, even odd rule] (0, 0) circle[radius=10pt] | |
| (0, 0) circle[radius=20px]; | 35 | 35 | (0, 0) circle[radius=20pt]; | |
| \end{tikzpicture} | 36 | 36 | \end{tikzpicture} | |
| }; | 37 | 37 | }; | |
| 38 | 38 | |||
| % yellow arc | 39 | 39 | % yellow arc | |
| \node[anchor=center, inner sep=0] at ($(current page.north east) + (0, | 40 | 40 | \node[anchor=center, inner sep=0] at ($(current page.north east) + (0, | |
| -3cm)$) { | 41 | 41 | -3cm)$) { | |
| \begin{tikzpicture} | 42 | 42 | \begin{tikzpicture} | |
| \path[fill=femtoyellowstrong, even odd rule] (0, 0) circle[radius=10px] | 43 | 43 | \path[fill=femtoyellowstrong, even odd rule] (0, 0) circle[radius=10pt] | |
| (0, 0) circle[radius=20px]; | 44 | 44 | (0, 0) circle[radius=20pt]; | |
| \end{tikzpicture} | 45 | 45 | \end{tikzpicture} | |
| }; | 46 | 46 | }; | |
| % white dot arc | 47 | 47 | % white dot arc | |
| \node[anchor=center, inner sep=0] at ($(current page.north west) + (6cm, 0)$) { | 48 | 48 | \node[anchor=center, inner sep=0] at ($(current page.north west) + (6cm, 0)$) { | |
| \begin{tikzpicture} | 49 | 49 | \begin{tikzpicture} | |
| \path[pattern color=white, pattern={Dots[distance=2px]}, even odd rule] (0, 0) circle[radius=10px] | 50 | 50 | \path[pattern color=white, pattern={Dots[distance=2pt]}, even odd rule] (0, 0) circle[radius=10pt] | |
| (0, 0) circle[radius=20px]; | 51 | 51 | (0, 0) circle[radius=20pt]; | |
| \end{tikzpicture} | 52 | 52 | \end{tikzpicture} | |
| }; | 53 | 53 | }; | |
| 54 | 54 | |||
| % white cross | 55 | 55 | % white cross | |
| \node[anchor=center, inner sep=0] at ($(current page.center) + (3cm, | 56 | 56 | \node[anchor=center, inner sep=0] at ($(current page.center) + (3cm, | |
| -1.5cm)$) { | 57 | 57 | -1.5cm)$) { | |
| % white cross arc | 58 | 58 | % white cross arc | |
| \begin{tikzpicture} | 59 | 59 | \begin{tikzpicture} | |
| \path[fill=white] (0, 0) rectangle (30px, 10px); | 60 | 60 | \path[fill=white] (0, 0) rectangle (30pt, 10pt); | |
| \path[fill=white] (10px, 20px) rectangle (20px, -10px); | 61 | 61 | \path[fill=white] (10pt, 20pt) rectangle (20pt, -10pt); | |
| \end{tikzpicture} | 62 | 62 | \end{tikzpicture} | |
| }; | 63 | 63 | }; | |
| 64 | 64 | |||
| % purple angle | 65 | 65 | % purple angle | |
| \node[anchor=center, inner sep=0] at ($(current page.north west) + (3.7cm, | 66 | 66 | \node[anchor=center, inner sep=0] at ($(current page.north west) + (3.7cm, | |
| -1.9cm)$) { | 67 | 67 | -1.9cm)$) { | |
| % white cross arc | 68 | 68 | % white cross arc | |
| \begin{tikzpicture} | 69 | 69 | \begin{tikzpicture} | |
| \path[fill=femtopurplestrong] (0, 0) rectangle (-20px, 10px); | 70 | 70 | \path[fill=femtopurplestrong] (0, 0) rectangle (-20pt, 10pt); | |
| \path[fill=femtopurplestrong] (0, 0) rectangle (-10px, 20px); | 71 | 71 | \path[fill=femtopurplestrong] (0, 0) rectangle (-10pt, 20pt); | |
| \end{tikzpicture} | 72 | 72 | \end{tikzpicture} | |
| }; | 73 | 73 | }; | |
| \end{tikzpicture} | 74 | 74 | \end{tikzpicture} | |
| 75 | 75 | |||
| {\huge \textbf{\inserttitle}}\\ | 76 | 76 | {\huge \textbf{\inserttitle}}\\ | |
| {\Large \insertsubtitle} | 77 | 77 | {\Large \insertsubtitle} | |
| 78 | 78 | |||
| \hspace{-8mm}\tikz{\draw[color=\@femtolightcolor] (0, 0) -- (8mm, 0);} | 79 | 79 | \hspace{-8mm}\tikz{\draw[color=\@femtolightcolor] (0, 0) -- (8mm, 0);} | |
| 80 | 80 | |||
| {\normalsize \textit{\insertauthor}}\\ | 81 | 81 | {\normalsize \textit{\insertauthor}}\\ | |
| \medskip | 82 | 82 | \medskip | |
| {\small \insertinstitute} | 83 | 83 | {\small \insertinstitute} | |
| } | 84 | 84 | } | |
| 85 | 85 | |||
| \setbeamertemplate{footline} | 86 | 86 | \setbeamertemplate{footline} | |
| { | 87 | 87 | { | |
| 88 | 88 | |||
| \newcommand{\separationwidth}{\paperwidth} | 89 | 89 | \newcommand{\separationwidth}{\paperwidth} | |
| \advance \separationwidth by -7mm | 90 | 90 | \advance \separationwidth by -7mm | |
| \hspace{4mm} | 91 | 91 | \hspace{4mm} | |
| \begin{beamercolorbox}[wd=\separationwidth,ht=.5pt]{top separation line | 92 | 92 | \begin{beamercolorbox}[wd=\separationwidth,ht=.5pt]{top separation line | |
| foot} | 93 | 93 | foot} | |
| \end{beamercolorbox} | 94 | 94 | \end{beamercolorbox} | |
| 95 | 95 | |||
| \hbox{ | 96 | 96 | \hbox{ | |
| \begin{beamercolorbox}[wd=.2\paperwidth,ht=8mm,sep=2mm]{background} | 97 | 97 | \begin{beamercolorbox}[wd=.2\paperwidth,ht=8mm,sep=2mm]{background} | |
| \includegraphics[height=5mm]{img/Femto-logo_gris-2012.png} | 98 | 98 | \includegraphics[height=5mm]{img/Femto-logo_gris-2012.png} | |
| \end{beamercolorbox}% | 99 | 99 | \end{beamercolorbox}% | |
| \begin{beamercolorbox}[wd=.8\paperwidth,ht=8mm]{background} | 100 | 100 | \begin{beamercolorbox}[wd=.8\paperwidth,ht=8mm]{background} | |
| \parbox[b][8mm][c]{.8\paperwidth}{ | 101 | 101 | \parbox[b][8mm][c]{.8\paperwidth}{ | |
| \usebeamerfont{footline} | 102 | 102 | \usebeamerfont{footline} | |
| \hfill \insertshorttitle $\ |$ \insertshortauthor $\ |$ \insertshortdate | 103 | 103 | \hfill \insertshorttitle $\ |$ \insertshortauthor $\ |$ \insertshortdate | |
| \usebeamerfont{page number in head/foot} | 104 | 104 | \usebeamerfont{page number in head/foot} | |
| \hspace{3mm} | 105 | 105 | \hspace{3mm} | |
| \insertframenumber | 106 | 106 | \insertframenumber | |
| } | 107 | 107 | } | |
| \end{beamercolorbox} | 108 | 108 | \end{beamercolorbox} | |
| } | 109 | 109 | } | |
| } | 110 | 110 | } | |
| 111 | 111 | |||
| % Removes navigation | 112 | 112 | % Removes navigation | |
| \setbeamertemplate{navigation symbols} | 113 | 113 | \setbeamertemplate{navigation symbols} | |
| { | 114 | 114 | { | |
| } | 115 | 115 | } | |
| 116 | 116 | |||
| \setbeamertemplate{background} | 117 | 117 | \setbeamertemplate{background} | |
| { | 118 | 118 | { | |
| % Bottom left angle | 119 | 119 | % Bottom left angle | |
| \begin{tikzpicture}[remember picture, overlay] | 120 | 120 | \begin{tikzpicture}[remember picture, overlay] | |
| \node[anchor=south west] at ($(current page.south west) + (1mm, 9mm)$) { | 121 | 121 | \node[anchor=south west] at ($(current page.south west) + (1mm, 9mm)$) { | |
| \begin{tikzpicture} | 122 | 122 | \begin{tikzpicture} | |
| \path[fill=\@femtomaincolor] (0, 0) -- (16px, 0) -- (16px, | 123 | 123 | \path[fill=\@femtomaincolor] (0, 0) -- (16pt, 0) -- (16pt, | |
| 8px) -- (8px, 8px)--(8px, 16px) -- (0, 16px); | 124 | 124 | 8pt) -- (8pt, 8pt)--(8pt, 16pt) -- (0, 16pt); | |
| \end{tikzpicture} | 125 | 125 | \end{tikzpicture} | |
| }; | 126 | 126 | }; | |
| \end{tikzpicture} | 127 | 127 | \end{tikzpicture} | |
| 128 | 128 | |||
| % Mirrored F symbol | 129 | 129 | % Mirrored F symbol | |
| \begin{tikzpicture}[remember picture, overlay] | 130 | 130 | \begin{tikzpicture}[remember picture, overlay] | |
| \node[anchor=north east, inner sep=0] at ($(current page.north east) + (-3mm, -3mm)$) { | 131 | 131 | \node[anchor=north east, inner sep=0] at ($(current page.north east) + (-3mm, -3mm)$) { | |
| \begin{tikzpicture}[] | 132 | 132 | \begin{tikzpicture}[] | |
| \path[fill=\@femtolightcolor] (0, 0) -- (12px, 0) -- (12px, | 133 | 133 | \path[fill=\@femtolightcolor] (0, 0) -- (12pt, 0) -- (12pt, | |
| 20px) | 134 | 134 | 20pt) | |
| -- (24px, 20px) -- (24px, 32px) -- (12px, 32px) -- (12px, | 135 | 135 | -- (24pt, 20pt) -- (24pt, 32pt) -- (12pt, 32pt) -- (12pt, | |
| 44px) | 136 | 136 | 44pt) | |
| --(12px, 44px) arc[start angle=0, end angle=90, | 137 | 137 | --(12pt, 44pt) arc[start angle=0, end angle=90, | |
| radius=28px] (-16px, 72px) | 138 | 138 | radius=28pt] (-16pt, 72pt) | |
| -- (-16px, 72px) -- (-36px, 72px) -- (-36px, 60px) -- | 139 | 139 | -- (-16pt, 72pt) -- (-36pt, 72pt) -- (-36pt, 60pt) -- | |
| (-16px, 60px) | 140 | 140 | (-16pt, 60pt) | |
| -- (-16px, 60px) arc[start angle=90, end angle=0, | 141 | 141 | -- (-16pt, 60pt) arc[start angle=90, end angle=0, | |
| radius=16px] | 142 | 142 | radius=16pt] | |
| -- (0px, 44px) -- (0px, 32px) -- (-12px, 32px) -- | 143 | 143 | -- (0pt, 44pt) -- (0pt, 32pt) -- (-12pt, 32pt) -- | |
| (-12px, 20px) -- (0px, 20px) -- (0px, 0px); | 144 | 144 | (-12pt, 20pt) -- (0pt, 20pt) -- (0pt, 0pt); | |
| \path[fill=\@femtolightcolor] (12px, 60px) rectangle (24px, 72px); | 145 | 145 | \path[fill=\@femtolightcolor] (12pt, 60pt) rectangle (24pt, 72pt); | |
| \end{tikzpicture} | 146 | 146 | \end{tikzpicture} | |
| }; | 147 | 147 | }; | |
| \end{tikzpicture} | 148 | 148 | \end{tikzpicture} | |
| } | 149 | 149 | } | |
| 150 | 150 | |||
example.pdf
View file @
cc55f4d
example.tex
View file @
cc55f4d
| \documentclass{beamer} | 1 | 1 | \documentclass{beamer} | |
| 2 | 2 | |||
| \usetheme{femto} | 3 | 3 | \usetheme{femto} | |
| 4 | 4 | |||
| \title{This Is An Example Presentation} | 5 | 5 | \title{This Is An Example Presentation} | |
| \subtitle{Using the femto template} | 6 | 6 | \subtitle{Using the femto template} | |
| 7 | 7 | |||
| \author{Paul BREUGNOT} | 8 | 8 | \author{Paul BREUGNOT\inst{1}, Vincent LAUDE\inst{2}} | |
| 9 | \institute{ | |||
| 10 | \inst{1} Université de Bourgogne Franche-Comté\\ | |||
| 11 | \inst{2} Centre National de la Recherche Scientifique | |||
| 12 | } | |||
| 9 | 13 | |||
| \begin{document} | 10 | 14 | \begin{document} | |
| 11 | 15 | |||
| \begin{frame}[plain,c] | 12 | 16 | \begin{frame}[plain,c] | |
| \titlepage | 13 | 17 | \titlepage | |
| \end{frame} | 14 | 18 | \end{frame} | |
| 15 | 19 | |||
| \begin{frame} | 16 | 20 | \begin{frame} | |
| \frametitle{Table of Contents} | 17 | 21 | \frametitle{Table of Contents} | |
| \tableofcontents | 18 | 22 | \tableofcontents | |
| \end{frame} | 19 | 23 | \end{frame} | |
| 20 | 24 | |||
| \section{Block} | 21 | 25 | \section{Block} | |
| \subsection{Example Block} | 22 | 26 | \subsection{Example Block} | |
| 23 | 27 | |||
| \begin{frame}[c] | 24 | 28 | \begin{frame}[c] | |
| \frametitle{\secname} | 25 | 29 | \frametitle{\secname} | |
| \framesubtitle{\subsecname} | 26 | 30 | \framesubtitle{\subsecname} | |
| 27 | 31 | |||
| \begin{block}{A Block.} | 28 | 32 | \begin{block}{A Block.} | |
| This is a normal block. | 29 | 33 | This is a normal block. | |
| \end{block} | 30 | 34 | \end{block} | |
| 31 | 35 | |||
| \begin{alertblock}{Ho No!} | 32 | 36 | \begin{alertblock}{Ho No!} | |
| This is an alert block! | 33 | 37 | This is an alert block! | |
| \end{alertblock} | 34 | 38 | \end{alertblock} | |
| 35 | 39 | |||
| \begin{exampleblock}{A Small Example.} | 36 | 40 | \begin{exampleblock}{A Small Example.} | |
| This is an example block. | 37 | 41 | This is an example block. | |
| \end{exampleblock} | 38 | 42 | \end{exampleblock} | |
| 39 | 43 | |||
| \end{frame} | 40 | 44 | \end{frame} | |
| 41 | 45 | |||
| \section{List} | 42 | 46 | \section{List} | |
| \subsection{Example Item} | 43 | 47 | \subsection{Example Item} | |
| 44 | 48 | |||
| \begin{frame}[c] | 45 | 49 | \begin{frame}[c] | |
| \frametitle{List} | 46 | 50 | \frametitle{List} | |
| \framesubtitle{List Example} | 47 | 51 | \framesubtitle{List Example} | |
| 48 | 52 | |||
| \begin{itemize} | 49 | 53 | \begin{itemize} | |
| \item FEMTO-ST | 50 | 54 | \item FEMTO-ST | |
| \begin{itemize} | 51 | 55 | \begin{itemize} | |
| \item Subitem | 52 | 56 | \item Subitem | |
| \end{itemize} | 53 | 57 | \end{itemize} | |
| \item GitLab | 54 | 58 | \item GitLab | |
| \item LaTeX | 55 | 59 | \item LaTeX | |
| \end{itemize} | 56 | 60 | \end{itemize} |
img/UTBM.pdf
View file @
cc55f4d