summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer-contrib')
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/README.md4
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.pdfbin655136 -> 631666 bytes
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.tex56
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-leftframetitle.pdfbin314951 -> 318798 bytes
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-sidebar.pdfbin329247 -> 344913 bytes
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-test.pdfbin315595 -> 320313 bytes
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/tex/beamerthemeAmurmaple.sty102
7 files changed, 103 insertions, 59 deletions
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/README.md b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/README.md
index 60a13236aa..76cab58637 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/README.md
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/README.md
@@ -22,12 +22,12 @@ Paste the file `beamerthemeAmurmaple.sty` in your local `~/texmf/tex/latex/contr
## Licence
-Copyright (C) 2022 by Maxime CHUPIN
+Copyright (C) 2023 by Maxime CHUPIN
<chupin at ceremade.dauphine.fr>
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in [http://www.latex-project.org/lppl.txt](http://www.latex-project.org/lppl.txt) and version 1.3 or later is part of all distributions of LaTeXversion 2005/12/01 or later.
%
## Author:
-Maxime CHUPIN chupin at ceremade.dauphine.fr
+Maxime CHUPIN: chupin at ceremade.dauphine.fr
This work has the LPPL maintenance status "author-maintained".
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.pdf b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.pdf
index 4c97107a1f..2a3e760726 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.pdf
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.tex b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.tex
index c389f6479e..9dcd18f6da 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.tex
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-doc.tex
@@ -22,7 +22,6 @@
\usepackage{luamesh}
\usepackage{babel}
-\usepackage{pgfpages}
\usepackage{tcolorbox}
\usepackage{biblatex}
\usepackage{cleveref}
@@ -114,10 +113,10 @@ delaunay,
\title[Amurmaple documentation]{Amurmaple Beamer Theme}
\author[M.~Chupin]{Maxime Chupin}
-\subtitle{documentation\quad v.1.1}
+\subtitle{documentation\quad v.1.2}
\institute[CNRS]{CNRS\\
University of Paris-Dauphine}
-\date{September 10, 2022}
+\date{January 30, 2023}
\titlegraphic{\includegraphics[width=4cm]{logo.png}}
\mail{chupin@ceremade.dauphine.fr}
\webpage{www.ceremade.dauphine.fr/~chupin/}
@@ -179,7 +178,8 @@ theme.
\item \lstinline+xparse+;
\item \lstinline+xfp+;
\item \lstinline+expl3+;
- \item \lstinline+iftex+.
+ \item \lstinline+iftex+;
+ \item \lstinline+tikz+.
\end{itemize}
\end{multicols}
\end{itemize}
@@ -192,21 +192,25 @@ theme.
\begin{description}
\item[nogauge:] that suppresses the gauge at the top of the vertical side bar
of the current slide ;
- \item[nomail:] that suppresses the mail in the vertical side bar of
- the current slide ;
+ \item[nomail:] that suppresses the mail in the right margin of
+ the current slide\footnote{Since the v1.2, the mail is not in the left sidebar but in the right margin.} ;
\item[delaunay:] that produces a Delaunay mesh of random points in
the ``structure'' slides (title, section, etc.). \alert{This option can only be
used with \hologo{LuaLaTeX}} and depends on the
package~\lstinline{luamesh}\footfullcite{Luamesh};
\framebreak
\item[sidebar:] that provides a \emph{sidebar} as shown below\footnote{In
- general, we strongly recommend the use of the \texttt{aspectratio=169} option of
- beamer, but even more strongly with the \texttt{sidebar} option.}.
+ general, we strongly recommend the use of the \texttt{aspectratio=169}
+ option of beamer, but even more strongly with the \texttt{sidebar}
+ option.}.
\begin{center}
\includegraphics[width=0.5\linewidth,page=13]{beamer-amurmaple-sidebar}
\end{center}
- \item[sidebarwidth=\meta{value} (with dimension):] when using the sidebar option, you can
- adjust the sidebar width (default 58pt).
+ \item[sidebarwidth=\meta{value} (with dimension):] when using the sidebar
+ option, you can adjust the sidebar width (default 58pt).
+ \item[toplogo:] that puts the logo at the top of the sidebar (option
+ available if the sidebar option is used). By default, the logo, if sets, is
+ at the bottom of the sidebar.
\framebreak
\item[rule:] that add a rule between the color areas in the different
slides: title (see p.~\cref{title}), section and part (see p.~\ref{sectionpart}),
@@ -248,6 +252,7 @@ theme.
\definecolor{AmurmapleOrange}{RGB}{230,108,17}
\definecolor{AmurmapleBlue}{RGB}{55,119,231}
\definecolor{AmurmapleGreen}{rgb}{0.1,0.4,0.1}
+\definecolor{AmurmapleRemarkColor}{rgb}{0.2,0.2,0.2}
\end{Code}
\textcolor{AmurmapleRed}{\lstinline+AmurmapleRed+} is used to redefine the \lstinline+structure+
@@ -255,9 +260,9 @@ Beamer color\footnote{So if you redefine the \lstinline+structure+ color, the Am
theme should change correctly.}, \textcolor{AmurmapleOrange}{\lstinline+AmurmapleOrange+} is used to redefine
the \lstinline+text alerted+ Beamer color, \textcolor{AmurmapleGreen}{\lstinline+AmurmapleGreen+} is
used for the math definition (see slide~\ref{sl:definition}) and for the
-\lstinline+block title example+ Beamer color, and the
-\textcolor{AmurmapleBlue}{\lstinline+AmurmapleBlue+} for the new environnement
-\lstinline+information+ (see slide~\ref{sl:information}).
+\lstinline+block title example+ Beamer color, the
+\textcolor{AmurmapleBlue}{\lstinline+AmurmapleBlue+} for the new environment
+\lstinline+information+ (see slide~\ref{sl:information}) and \textcolor{AmurmapleRemarkColor}{\lstinline+AmurmapleRemarkColor+} for the \lstinline+remark+ environment (see slide~\pageref{sl:remark}).
\framebreak
\framesection{Color Theme Option}\label{sl:color}
@@ -273,10 +278,12 @@ In fact, internally, four colors are defined: \lstinline+Amurmaple@structure+,
\lstinline+Amurmaple@alert+, \lstinline+Amurmaple@info+ and
\lstinline+Amurmaple@example+.
-The color theme option is used as follow
+The color theme option is used as follows
\begin{Code}
\usetheme[amurmapleblue]{amurmaple}
\end{Code}
+
+Note that the \lstinline+AmurmapleRemarkColor+ is not modified.
\end{frame}
\subsection{Classical commands}
@@ -297,7 +304,7 @@ The color theme option is used as follow
\tableofcontents
\end{frame}
-\subsection{Classical environnement}
+\subsection{Classical environments}
\begin{frame}[allowframebreaks,fragile]{Classical Beamer environments}
\framesection{Block environments}
@@ -380,7 +387,7 @@ can see below
The standard \texttt{section page} and \texttt{part page} have been modified.
The following code produce the next slide (the part slide is not generated
- because this document does not use part sectionning).
+ because this document does not use part sectioning).
\usebox{\codebox}
@@ -392,7 +399,7 @@ can see below
\subsection{Maths}
-\begin{frame}[fragile,allowframebreaks]{Maths environnement}
+\begin{frame}[fragile,allowframebreaks]{Maths environments}
\begin{itemize}
\item \lstinline+\begin{theorem}+\oarg{Title of th. (optional)}\lstinline+...\end{theorem}+
\begin{theorem}[Title of th. (optional)]
@@ -432,7 +439,7 @@ can see below
The new commands are :
\begin{itemize}
\item \lstinline+\mail+\marg{mail}: that is used to provide the mail. Without the theme option
- \lstinline+nomail+, it is also added on the vertical side bar on the current
+ \lstinline+nomail+, it is also added on the vertical sidebar on the current
slide.
\item \lstinline+\webpage+\marg{webpage}: that is used to provide the personal webpage of
the speaker (or the project website).
@@ -443,7 +450,7 @@ can see below
The \lstinline+\logo+ command can be used to add a logo to each slide. In the
standard theme, the logo is put in the bottom right corner of the slide, just
above the page numbering. When the option \lstinline+sidebar+, the logo is put
- a the bottom of the side bar (above the gauge if it is used).
+ at the bottom of the sidebar (above the gauge if it is used).
\framebreak
@@ -470,7 +477,7 @@ University of Paris-Dauphine}
\begin{frame}[fragile]{\texttt{sepframe} command}\label{sepframe}
\bigskip
\begin{docCommand}{sepframe}{\oarg{title=\meta{mytitle},image=\meta{my image}}}
-The newcommand \lstinline+\sepframe+ is provided by the Amurmaple theme. This
+The new command \lstinline+\sepframe+ is provided by the Amurmaple theme. This
command allows you to generate a slide in the manner of a section page but with
a slight improvement. In the red part below is generated the table of contents
(with depth 1).
@@ -500,7 +507,7 @@ The result is the next frame.
\begin{frame}[fragile]{\texttt{thanksframe} command}\label{thanks}
\begin{docCommand}{thanksframe}{\marg{thanking message}}
- The newcommand \lstinline+\thanksframe+ is provided by the Amurmaple
+ The new command \lstinline+\thanksframe+ is provided by the Amurmaple
theme. This command allows you to generate a slide to thank the audience.
The text written to thank is a mandatory argument (e.g. ``\emph{The end}'')
and the optional argument allows to change the default image which is the
@@ -570,6 +577,12 @@ Because this environment is built with a \texttt{tcolorbox}, to use a footnote i
\begin{docEnvironment}{remark}{\oarg{title complement}}
The Amurmaple theme provides a remark environment with an optional
argument to add a comment in the title (as for the theorem environment).
+
+ The colors of \lstinline+colframe+ and and \lstinline+colback+ are respectively \lstinline+AmurmapleRemarkColor+ and \lstinline+AmurmapleRemarkColor!10+.
+\label{sl:remark}
+
+Because this environment is built with a \texttt{tcolorbox}, to use a footnote in it, you have to use \lstinline+\footnote[frame]{...}+.
+
\begin{Code}
\begin{remark}[Some complement]
This is a capital remark.
@@ -579,7 +592,6 @@ The Amurmaple theme provides a remark environment with an optional
This is a capital remark.
\end{remark}
-Because this environment is built with a \texttt{tcolorbox}, to use a footnote in it, you have to use \lstinline+\footnote[frame]{...}+.
\end{docEnvironment}
\end{frame}
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-leftframetitle.pdf b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-leftframetitle.pdf
index edc42d6790..23c39a39bb 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-leftframetitle.pdf
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-leftframetitle.pdf
Binary files differ
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-sidebar.pdf b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-sidebar.pdf
index 0b6905d5d8..3d24e70165 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-sidebar.pdf
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-sidebar.pdf
Binary files differ
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-test.pdf b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-test.pdf
index 4cf71ff44f..77ee04f0e6 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-test.pdf
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/doc/beamer-amurmaple-test.pdf
Binary files differ
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/tex/beamerthemeAmurmaple.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/tex/beamerthemeAmurmaple.sty
index f908d772f1..99f6b58c89 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/tex/beamerthemeAmurmaple.sty
+++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemeamurmaple/tex/beamerthemeAmurmaple.sty
@@ -1,4 +1,4 @@
-% Copyright (C) 2022 by Maxime CHUPIN
+% Copyright (C) 2023 by Maxime CHUPIN
% <chupin at ceremade.dauphine.fr>
% -------------------------------------------------------
%
@@ -16,7 +16,7 @@
% This work has the LPPL maintenance status "author-maintained".
\NeedsTeXFormat{LaTeX2e}[2021-11-15]
-\ProvidesPackage{beamerthemeAmurmaple}[2022/09/10 v.1.1 Theme for the Beamer
+\ProvidesPackage{beamerthemeAmurmaple}[2023/01/30 v.1.2 Theme for the Beamer
class]%
@@ -25,6 +25,7 @@ class]%
\definecolor{AmurmapleOrange}{RGB}{230,108,17}
\definecolor{AmurmapleBlue}{RGB}{55,119,231}
\definecolor{AmurmapleGreen}{rgb}{0.1,0.4,0.1}
+\definecolor{AmurmapleRemarkColor}{rgb}{0.2,0.2,0.2}
\colorlet{Amurmaple@structure}{AmurmapleRed}
\colorlet{Amurmaple@alert}{AmurmapleOrange}
@@ -53,6 +54,9 @@ class]%
\beamer@am@sidebarfalse
\DeclareOptionBeamer{sidebarwidth}{\def\amurmaple@sidebarwidth{#1}}
\DeclareOptionBeamer{sidebar}{\beamer@am@sidebartrue}
+\newif\ifbeamer@am@toplogo
+\beamer@am@toplogofalse
+\DeclareOptionBeamer{toplogo}{\beamer@am@toplogotrue}
\newif\ifbeamer@am@leftframetitle
\beamer@am@leftframetitlefalse
\DeclareOptionBeamer{leftframetitle}{\beamer@am@leftframetitletrue}
@@ -68,6 +72,7 @@ class]%
\RequirePackage{xfp}
\RequirePackage{expl3}
\RequirePackage{iftex}
+\RequirePackage{pgfpages}
@@ -81,6 +86,40 @@ class]%
%sidebar
\ifbeamer@am@sidebar
\useoutertheme[height=0pt,width=\amurmaple@sidebarwidth,hideothersubsections]{sidebar}
+ \setbeamertemplate{sidebar left}{%
+ \ifbeamer@am@toplogo
+ \hskip -0.03cm%
+ \hbox to \beamer@sidebarwidth{
+ \hfil \hbox{\insertlogo} \hfil
+ }
+ \fi
+ \beamer@tempdim=\beamer@sidebarwidth%
+ %\advance\beamer@tempdim by -6pt%
+ {\usebeamerfont{title in sidebar}%
+ \vskip1.5em%
+ \hskip3pt%
+ \usebeamercolor[fg]{title in sidebar}%
+ \insertshorttitle[width=\beamer@tempdim,center,respectlinebreaks]\par%
+ \vskip1.em%
+ }%
+ {%
+ \hskip3pt%
+ \usebeamercolor[fg]{author in sidebar}%
+ \usebeamerfont{author in sidebar}%
+ \insertshortauthor[width=\beamer@tempdim,center,respectlinebreaks]\par%
+ \vskip1.25em%
+ }%
+ \insertverticalnavigation{\beamer@sidebarwidth}%
+ \vfill
+ \ifx\beamer@sidebarside\beamer@lefttext%
+ \else%
+ \usebeamercolor{normal text}%
+ \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
+ \vskip2pt%
+ \fi%
+ }%
+ % Margins
+ \setbeamersize{text margin left=0.5cm,text margin right=0.5cm}
\fi
% dimensions
@@ -90,7 +129,7 @@ class]%
\else
\dim_const:Nn \c_amurmaple_barre_dim { 15pt }
\fi
-\dim_const:Nn \c_amurmaple_margin {10pt}
+\dim_const:Nn \c_amurmaple_margin {15pt}
\ifbeamer@am@sidebar
\tl_set:Nx \l_amurmaple_margin_left { \dim_eval:n {\c_amurmaple_margin } }
\else
@@ -221,9 +260,9 @@ class]%
\setbeamercolor{title in sidebar}{fg=white}
\setbeamercolor{section in sidebar}{bg=black!30!structure,fg=white}
\setbeamercolor{subsection in sidebar}{bg=black!30!structure,fg=white}
- \setbeamerfont{subsection in sidebar}{size=\scriptsize}
- \setbeamerfont{subsection in sidebar}{size=\tiny}
- \setbeamerfont{title in sidebar}{size=\small}
+ \setbeamerfont{section in sidebar}{size=\fontsize{6}{6}\selectfont}
+ \setbeamerfont{subsection in sidebar}{size=\fontsize{4}{6}\selectfont}
+ \setbeamerfont{title in sidebar}{size=\scriptsize}
\setbeamerfont{author in sidebar}{size=\tiny}
\fi
\ExplSyntaxOn
@@ -239,13 +278,13 @@ class]%
([xshift=\c_amurmaple_barre_dim]current~page.south~west) rectangle ([xshift=\c_amurmaple_barre_dim+1pt]current~%
page.north~west);%
\fi
- \ifbeamer@am@sidebar%
- \node[anchor=south,color=black!40] at ($(current~page.south)+(0.5\c_amurmaple_barre_dim,0)$)%
- (title) {\small%
- \ifbeamer@am@nomail%
+ \ifbeamer@am@nomail%
+ \node[anchor=south,color=black!40,rotate=90] at ($(current~page.east)$)%
+ (title) {\tiny%
\texttt{\amurmaple@printmail}%
- \fi%
};%
+ \fi%
+ \ifbeamer@am@sidebar%
\ifbeamer@am@nogauge%
\ifnum\insertframenumber>\insertmainframenumber % gauge only in main part
\else%
@@ -257,15 +296,15 @@ class]%
\fi%
\ifx\logo\empty%
\else%
- \node [anchor=south~west,inner~sep=0pt] at ($(current~page.south~west)+(0,0.5)$)%
- (logo) {\insertlogo};%
+ \ifbeamer@am@toplogo%
+ \else%
+ \node [anchor=south~west,inner~sep=0pt] at ($(current~page.south~west)+(0,0.5)$)%
+ (logo) {\insertlogo};%
+ \fi
\fi%
\else%
\node[anchor=north~west,rotate=90,color=white] at (current~page.south~west)%
(title) {\scriptsize\insertshorttitle\quad---\quad \insertshortauthor%
- \ifbeamer@am@nomail%
- \quad \texttt{\amurmaple@printmail}%
- \fi%
};%
\ifbeamer@am@nogauge%
\ifnum\insertframenumber>\insertmainframenumber % gauge only in main part%
@@ -356,6 +395,8 @@ class]%
\bgroup
\setbeamertemplate{background}%
{}
+ \setbeamertemplate{navigation~symbols}{}
+ \setbeamercolor{background~canvas}{bg=white}
\begin{tikzpicture}[remember~picture,overlay]
\fill[white]
([yshift=15pt]current~page.west) rectangle (current~page.north~
@@ -418,19 +459,9 @@ class]%
}
\ExplSyntaxOff
-\renewcommand{\maketitle}{%
- \begingroup
- \setbeamertemplate{background}%
- {}
- \setbeamertemplate{navigation symbols}{}
- \setbeamercolor{background canvas}{bg=white}
- \begin{frame}[noframenumbering,plain]
- \titlepage
- \end{frame}
- \endgroup
-}
-% section page
+
+ % section page
\setbeamertemplate{section page}{
\hypersetup{linkcolor=structure}
\begin{tikzpicture}[remember picture,overlay]
@@ -671,11 +702,12 @@ class]%
{%
\IfNoValueTF{#1}{%
}{
- \begin{flushright}
- \normalfont #1
- \end{flushright}
- \end{tcolorbox}%
- }%
+ \begin{flushright}%
+ \normalfont #1%
+ \end{flushright}%
+ }
+ \end{tcolorbox}%
+ %
}
\newcommand\amurmaple@info{\raisebox{-1mm}{\tikz{\node[circle,fill=Amurmaple@info,align=center,text
@@ -703,9 +735,9 @@ class]%
\NewDocumentEnvironment{remark}{o}{
\tcbset{%
- arc=0pt,outer arc=0pt,colback=gray!10!white,colframe=gray!60!white,
+ arc=0pt,outer arc=0pt,colback=AmurmapleRemarkColor!10,colframe=AmurmapleRemarkColor,
boxsep=0pt,left=10pt,right=10pt,top=8pt,bottom=10pt, bottomtitle = 3pt, toptitle=3pt,
- boxrule=0pt,bottomrule=0.5pt,toprule=0.5pt
+ boxrule=0pt
}
\smallskip
\begin{tcolorbox}[fonttitle=\bfseries,title={\translate{Remark} \IfNoValueF{#1}{(#1)}}]}%