texlive[65698] Master/texmf-dist: beamerthemeamurmaple (31jan23)

commits+karl at tug.org commits+karl at tug.org
Tue Jan 31 21:50:37 CET 2023


Revision: 65698
          http://tug.org/svn/texlive?view=revision&revision=65698
Author:   karl
Date:     2023-01-31 21:50:37 +0100 (Tue, 31 Jan 2023)
Log Message:
-----------
beamerthemeamurmaple (31jan23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md
    trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.pdf
    trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.tex
    trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-leftframetitle.pdf
    trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf
    trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf
    trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md	2023-01-31 20:50:15 UTC (rev 65697)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md	2023-01-31 20:50:37 UTC (rev 65698)
@@ -22,12 +22,12 @@
 
 ## 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".

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.tex	2023-01-31 20:50:15 UTC (rev 65697)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.tex	2023-01-31 20:50:37 UTC (rev 65698)
@@ -22,7 +22,6 @@
 \usepackage{luamesh}
 
 \usepackage{babel}
-\usepackage{pgfpages}
 \usepackage{tcolorbox}
 \usepackage{biblatex}
 \usepackage{cleveref}
@@ -114,10 +113,10 @@
 
 \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 at ceremade.dauphine.fr}
 \webpage{www.ceremade.dauphine.fr/~chupin/}
@@ -179,7 +178,8 @@
   \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,8 +192,8 @@
   \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
@@ -200,13 +200,17 @@
     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 @@
 \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 @@
 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 @@
 \lstinline+Amurmaple at alert+, \lstinline+Amurmaple at info+ and
 \lstinline+Amurmaple at 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 @@
   \tableofcontents
 \end{frame}
 
-\subsection{Classical environnement}
+\subsection{Classical environments}
 
 \begin{frame}[allowframebreaks,fragile]{Classical Beamer environments}
   \framesection{Block environments}
@@ -380,7 +387,7 @@
   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 @@
 
 \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 @@
   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 @@
   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 @@
 \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 @@
 \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 @@
 \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 @@
   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}

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-leftframetitle.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty	2023-01-31 20:50:15 UTC (rev 65697)
+++ trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty	2023-01-31 20:50:37 UTC (rev 65698)
@@ -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 @@
 \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 at structure}{AmurmapleRed}
 \colorlet{Amurmaple at alert}{AmurmapleOrange}
@@ -53,6 +54,9 @@
 \beamer at am@sidebarfalse
 \DeclareOptionBeamer{sidebarwidth}{\def\amurmaple at sidebarwidth{#1}}
 \DeclareOptionBeamer{sidebar}{\beamer at am@sidebartrue}
+\newif\ifbeamer at am@toplogo
+\beamer at am@toplogofalse
+\DeclareOptionBeamer{toplogo}{\beamer at am@toplogotrue}
 \newif\ifbeamer at am@leftframetitle
 \beamer at am@leftframetitlefalse
 \DeclareOptionBeamer{leftframetitle}{\beamer at am@leftframetitletrue}
@@ -68,6 +72,7 @@
 \RequirePackage{xfp}
 \RequirePackage{expl3}
 \RequirePackage{iftex}
+\RequirePackage{pgfpages}
 
 
 
@@ -81,6 +86,40 @@
 %sidebar
 \ifbeamer at am@sidebar
   \useoutertheme[height=0pt,width=\amurmaple at sidebarwidth,hideothersubsections]{sidebar}
+  \setbeamertemplate{sidebar left}{%
+    \ifbeamer at am@toplogo
+      \hskip -0.03cm%
+      \hbox to \beamer at sidebarwidth{
+        \hfil \hbox{\insertlogo} \hfil
+      }
+    \fi
+    \beamer at tempdim=\beamer at sidebarwidth%
+    %\advance\beamer at tempdim by -6pt%
+    {\usebeamerfont{title in sidebar}%
+      \vskip1.5em%
+      \hskip3pt%
+      \usebeamercolor[fg]{title in sidebar}%
+      \insertshorttitle[width=\beamer at tempdim,center,respectlinebreaks]\par%
+      \vskip1.em%
+    }%
+    {%
+      \hskip3pt%
+      \usebeamercolor[fg]{author in sidebar}%
+      \usebeamerfont{author in sidebar}%
+      \insertshortauthor[width=\beamer at tempdim,center,respectlinebreaks]\par%
+      \vskip1.25em%
+    }%
+    \insertverticalnavigation{\beamer at sidebarwidth}%
+    \vfill
+    \ifx\beamer at sidebarside\beamer at 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 @@
 \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 at am@sidebar
   \tl_set:Nx \l_amurmaple_margin_left { \dim_eval:n {\c_amurmaple_margin } }
 \else
@@ -221,9 +260,9 @@
   \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 @@
       ([xshift=\c_amurmaple_barre_dim]current~page.south~west) rectangle ([xshift=\c_amurmaple_barre_dim+1pt]current~%
       page.north~west);%
     \fi
-    \ifbeamer at am@sidebar%
-      \node[anchor=south,color=black!40] at ($(current~page.south)+(0.5\c_amurmaple_barre_dim,0)$)%
-      (title) {\small%
-        \ifbeamer at am@nomail%
+    \ifbeamer at am@nomail%
+    \node[anchor=south,color=black!40,rotate=90] at ($(current~page.east)$)%
+      (title) {\tiny%
           \texttt{\amurmaple at printmail}%
-        \fi%
       };%
+    \fi%
+    \ifbeamer at am@sidebar%
       \ifbeamer at am@nogauge%
         \ifnum\insertframenumber>\insertmainframenumber % gauge only in main part
         \else%
@@ -257,15 +296,15 @@
       \fi%
       \ifx\logo\empty%
       \else%
-        \node [anchor=south~west,inner~sep=0pt] at ($(current~page.south~west)+(0,0.5)$)%
-          (logo) {\insertlogo};%
+        \ifbeamer at 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 at am@nomail%
-          \quad \texttt{\amurmaple at printmail}%
-        \fi%
       };%
       \ifbeamer at am@nogauge%
         \ifnum\insertframenumber>\insertmainframenumber % gauge only in main part%
@@ -356,6 +395,8 @@
   \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 @@
 }
 \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 @@
   {%
     \IfNoValueTF{#1}{%
     }{
-      \begin{flushright}
-        \normalfont #1
-      \end{flushright}
-    \end{tcolorbox}%
-  }%
+      \begin{flushright}%
+        \normalfont #1%
+      \end{flushright}%
+    }
+  \end{tcolorbox}%
+  %
 }
 
 \newcommand\amurmaple at info{\raisebox{-1mm}{\tikz{\node[circle,fill=Amurmaple at info,align=center,text
@@ -703,9 +735,9 @@
 
   \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)}}]}%



More information about the tex-live-commits mailing list.