texlive[64346] Master/texmf-dist: beamerthemeamurmaple (11sep22)

commits+karl at tug.org commits+karl at tug.org
Sun Sep 11 22:45:39 CEST 2022


Revision: 64346
          http://tug.org/svn/texlive?view=revision&revision=64346
Author:   karl
Date:     2022-09-11 22:45:39 +0200 (Sun, 11 Sep 2022)
Log Message:
-----------
beamerthemeamurmaple (11sep22)

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/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty

Added Paths:
-----------
    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

Modified: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md	2022-09-11 20:44:40 UTC (rev 64345)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/README.md	2022-09-11 20:45:39 UTC (rev 64346)
@@ -12,7 +12,10 @@
 
 See the [PDF file](doc/beamer-amurmaple-doc.pdf). 
 
+## CTAN
 
+Package avaliable on the CTAN: [https://ctan.org/pkg/beamerthemeamurmaple](https://ctan.org/pkg/beamerthemeamurmaple).
+
 ## Local installation
 
 Paste the file `beamerthemeAmurmaple.sty` in your local `~/texmf/tex/latex/contrib/beamer-contrib/themes/beamer-amurmaple/`.

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	2022-09-11 20:44:40 UTC (rev 64345)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-doc.tex	2022-09-11 20:45:39 UTC (rev 64346)
@@ -16,7 +16,8 @@
 %  This work has the LPPL maintenance status "author-maintained".
 
 \documentclass[10pt,aspectratio=169,english]{beamer}
-\usepackage[charter]{mathdesign}
+%\usepackage[charter]{mathdesign}
+\usepackage{xcharter-otf}
 \usepackage{hologo}
 \usepackage{luamesh}
 
@@ -24,7 +25,8 @@
 \usepackage{pgfpages}
 \usepackage{tcolorbox}
 \usepackage{biblatex}
-%\hypersetup{colorlinks=true}
+\usepackage{cleveref}
+% \hypersetup{colorlinks=true}
 
 \tcbuselibrary{listings,breakable}
 \tcbuselibrary{documentation}
@@ -54,7 +56,7 @@
   morekeywords={usetheme,definecolor, beamerbutton, beamerskipbutton,
     beamerreturnbutton, structure, alert, sectionpage, mail, webpage,
     collaboration, subtitle, institute, titlegraphic, sepframe, includegraphics,
-    thanksframe, inserttitlegraphic, framesection, boxalert,appendix}
+    thanksframe, inserttitlegraphic, framesection, boxalert,appendix,logo}
   % frame=tb
 }
 
@@ -112,10 +114,10 @@
 
 \title[Amurmaple documentation]{Amurmaple Beamer Theme}
 \author[M.~Chupin]{Maxime Chupin}
-\subtitle{documentation\quad v.1.0}
+\subtitle{documentation\quad v.1.1}
 \institute[CNRS]{CNRS\\
 University of Paris-Dauphine}
-\date{Mai 28, 2022}
+\date{September 10, 2022}
 \titlegraphic{\includegraphics[width=4cm]{logo.png}}
 \mail{chupin at ceremade.dauphine.fr}
 \webpage{www.ceremade.dauphine.fr/~chupin/}
@@ -148,7 +150,8 @@
 will assume in this little documentation that the reader is familiar with the
 Beamer class.
 \end{information}
-
+Thanks to Denis Bitouzé for the tests and recommendations to improve this
+theme.
 \end{frame}
 
 
@@ -184,7 +187,7 @@
 
 \subsection{Theme Options}
 
-\begin{frame}[fragile]{Theme Options}
+\begin{frame}[fragile,allowframebreaks]{Theme Options}
   There are some options available :
   \begin{description}
   \item[nogauge:] that suppresses the gauge at the top of the vertical side bar
@@ -193,15 +196,40 @@
     the current slide ;
   \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};
-  \item[amurmapleblue:] that changes the main color (\lstinline+structure+) to a
+      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.}.
+    \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).
+      \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}),
+      \lstinline+sepframe+ frame(see p.~\ref{sepframe}), thanks frame (see p.~\ref{thanks}), as
+      well as classical slides, between the left bar (sidebar or not) and the
+      text area.
+      \begin{center}
+        \includegraphics[width=0.4\linewidth,page=1]{beamer-amurmaple-test}\quad\includegraphics[width=0.4\linewidth,page=4]{beamer-amurmaple-test}
+        \par\itshape Examples using the \lstinline+rule+ option.
+      \end{center}
+    \item[rulecolor=\meta{color}:] that allows to choose the color for the
+      rule of the \lstinline+rule+ option (default black).
+    \item[leftframetitle:] that aligns the \lstinline+frametitle+ to the left of
+      the slide.
+      \framebreak
+    \item[amurmapleblue:] that changes the main color (\lstinline+structure+) to a
     certain blue (see slide~\ref{sl:color}) ;
   \item[amurmaplegreen:] that changes the main color (\lstinline+structure+) to a
     certain green (see slide~\ref{sl:color});
   \end{description}
   For example, these slides are produced with the following call\footnote{We use
-  the \texttt{charter} font family of \texttt{mathdesign}  with the serif Beamer theme.}:
+  the \emph{Bitstream Charter} font family provided by the package
+  \emph{Xcharter-Math}  with the serif Beamer theme. \fullcite{xcharter-math}.}:
   \begin{CodePreambule}
 \usetheme[nomail,delaunay]{Amurmaple}
   \end{CodePreambule}
@@ -348,7 +376,7 @@
 \end{Code}
 \end{lrbox}
 
-\begin{frame}[fragile]{Section and Part Frames}
+\begin{frame}[fragile]{Section and Part Frames}\label{sectionpart}
   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
@@ -396,7 +424,7 @@
 
 \sepframe
 
-\begin{frame}[fragile,allowframebreaks]{Title Page}
+\begin{frame}[fragile,allowframebreaks]{Title Page}\label{title}
   As shown in this document, the title page has been customized.
   In addition to the classic commands for making the title page, the Amurmaple
   theme provides new commands.
@@ -412,6 +440,11 @@
     for the presented work.
   \end{itemize}
 
+  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).
+
   \framebreak
 
   Here the example used to generate this documentation.
@@ -434,7 +467,7 @@
 
 \sepframe
 
-\begin{frame}[fragile]{\texttt{sepframe} command}
+\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
@@ -464,7 +497,7 @@
 
 \sepframe[title={My  title},image={\includegraphics[width=5cm]{logo.png}}]
 
-\begin{frame}[fragile]{\texttt{thanksframe} command}
+\begin{frame}[fragile]{\texttt{thanksframe} command}\label{thanks}
 
   \begin{docCommand}{thanksframe}{\marg{thanking message}}
   The newcommand \lstinline+\thanksframe+ is provided by the Amurmaple

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

Index: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-leftframetitle.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-leftframetitle.pdf	2022-09-11 20:44:40 UTC (rev 64345)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-leftframetitle.pdf	2022-09-11 20:45:39 UTC (rev 64346)

Property changes on: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-leftframetitle.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf	2022-09-11 20:44:40 UTC (rev 64345)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf	2022-09-11 20:45:39 UTC (rev 64346)

Property changes on: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-sidebar.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf	2022-09-11 20:44:40 UTC (rev 64345)
+++ trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf	2022-09-11 20:45:39 UTC (rev 64346)

Property changes on: trunk/Master/texmf-dist/doc/latex/beamerthemeamurmaple/beamer-amurmaple-test.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty	2022-09-11 20:44:40 UTC (rev 64345)
+++ trunk/Master/texmf-dist/tex/latex/beamerthemeamurmaple/beamerthemeAmurmaple.sty	2022-09-11 20:45:39 UTC (rev 64346)
@@ -16,24 +16,50 @@
 %  This work has the LPPL maintenance status "author-maintained".
 
 \NeedsTeXFormat{LaTeX2e}[2021-11-15]
-\ProvidesPackage{beamerthemeAmurmaple}[2022/05/28 v.1.0 Theme for the Beamer
+\ProvidesPackage{beamerthemeAmurmaple}[2022/09/10 v.1.1 Theme for the Beamer
 class]%
 
-\newif\ifbeamer at nogauge
-\beamer at nogaugetrue
-\DeclareOptionBeamer{nogauge}{\beamer at nogaugefalse}
-\newif\ifbeamer at nomail
-\beamer at nomailtrue
-\DeclareOptionBeamer{nomail}{\beamer at nomailfalse}
-\newif\ifbeamer at delaunay
-\beamer at delaunayfalse
-\DeclareOptionBeamer{delaunay}{\beamer at delaunaytrue}
-\newif\ifbeamer at amurmapleblue
-\beamer at amurmaplebluefalse
-\DeclareOptionBeamer{amurmapleblue}{\beamer at amurmaplebluetrue}
-\newif\ifbeamer at amurmaplegreen
-\beamer at amurmaplegreenfalse
-\DeclareOptionBeamer{amurmaplegreen}{\beamer at amurmaplegreentrue}
+
+% some colors
+\definecolor{AmurmapleRed}{rgb}{0.6,0.,0.}
+\definecolor{AmurmapleOrange}{RGB}{230,108,17}
+\definecolor{AmurmapleBlue}{RGB}{55,119,231}
+\definecolor{AmurmapleGreen}{rgb}{0.1,0.4,0.1}
+
+\colorlet{Amurmaple at structure}{AmurmapleRed}
+\colorlet{Amurmaple at alert}{AmurmapleOrange}
+\colorlet{Amurmaple at info}{AmurmapleBlue}
+\colorlet{Amurmaple at example}{AmurmapleGreen}
+\colorlet{Amurmaple at rule}{black}
+
+\def\amurmaple at sidebarwidth{58pt}
+
+\newif\ifbeamer at am@nogauge
+\beamer at am@nogaugetrue
+\DeclareOptionBeamer{nogauge}{\beamer at am@nogaugefalse}
+\newif\ifbeamer at am@nomail
+\beamer at am@nomailtrue
+\DeclareOptionBeamer{nomail}{\beamer at am@nomailfalse}
+\newif\ifbeamer at am@delaunay
+\beamer at am@delaunayfalse
+\DeclareOptionBeamer{delaunay}{\beamer at am@delaunaytrue}
+\newif\ifbeamer at am@amurmapleblue
+\beamer at am@amurmaplebluefalse
+\DeclareOptionBeamer{amurmapleblue}{\beamer at am@amurmaplebluetrue}
+\newif\ifbeamer at am@amurmaplegreen
+\beamer at am@amurmaplegreenfalse
+\DeclareOptionBeamer{amurmaplegreen}{\beamer at am@amurmaplegreentrue}
+\newif\ifbeamer at am@sidebar
+\beamer at am@sidebarfalse
+\DeclareOptionBeamer{sidebarwidth}{\def\amurmaple at sidebarwidth{#1}}
+\DeclareOptionBeamer{sidebar}{\beamer at am@sidebartrue}
+\newif\ifbeamer at am@leftframetitle
+\beamer at am@leftframetitlefalse
+\DeclareOptionBeamer{leftframetitle}{\beamer at am@leftframetitletrue}
+\newif\ifbeamer at am@rule
+\beamer at am@rulefalse
+\DeclareOptionBeamer{rule}{\beamer at am@ruletrue}
+\DeclareOptionBeamer{rulecolor}{\colorlet{Amurmaple at rule}{#1}}
 \ProcessOptionsBeamer
 
 \RequirePackage{tcolorbox}
@@ -45,7 +71,7 @@
 
 
 
-\ifbeamer at delaunay
+\ifbeamer at am@delaunay
 \ifLuaTeX
 \else
 \errmessage{Delaunay option only available with luaLaTeX}
@@ -52,13 +78,24 @@
 \fi
 \fi
 
+%sidebar
+\ifbeamer at am@sidebar
+  \useoutertheme[height=0pt,width=\amurmaple at sidebarwidth,hideothersubsections]{sidebar}
+\fi
 
 % dimensions
 \ExplSyntaxOn
-\dim_const:Nn \c_amurmaple_barre_dim  { 15pt }
+\ifbeamer at am@sidebar
+  \dim_const:Nn \c_amurmaple_barre_dim  { \beamer at sidebarwidth }
+\else
+  \dim_const:Nn \c_amurmaple_barre_dim  { 15pt }
+\fi
 \dim_const:Nn \c_amurmaple_margin {10pt}
-\tl_set:Nx \l_amurmaple_margin_left { \dim_eval:n { \c_amurmaple_barre_dim+\c_amurmaple_margin } }
-
+\ifbeamer at am@sidebar
+  \tl_set:Nx \l_amurmaple_margin_left { \dim_eval:n {\c_amurmaple_margin } }
+\else
+  \tl_set:Nx \l_amurmaple_margin_left { \dim_eval:n { \c_amurmaple_barre_dim+\c_amurmaple_margin } }
+\fi
 \setbeamersize
 {
   text~ margin~ left=\l_amurmaple_margin_left,
@@ -122,25 +159,16 @@
 \usetikzlibrary{quotes,angles}
 \usetikzlibrary{automata}
 \usetikzlibrary{arrows}
+\usetikzlibrary{calc}
 
-% some colors
-\definecolor{AmurmapleRed}{rgb}{0.6,0.,0.}
-\definecolor{AmurmapleOrange}{RGB}{230,108,17}
-\definecolor{AmurmapleBlue}{RGB}{55,119,231}
-\definecolor{AmurmapleGreen}{rgb}{0.1,0.4,0.1}
-
-\colorlet{Amurmaple at structure}{AmurmapleRed}
-\colorlet{Amurmaple at alert}{AmurmapleOrange}
-\colorlet{Amurmaple at info}{AmurmapleBlue}
-\colorlet{Amurmaple at example}{AmurmapleGreen}
-%
-\ifbeamer at amurmapleblue
+% colors
+\ifbeamer at am@amurmapleblue
 \colorlet{Amurmaple at structure}{AmurmapleBlue!80!black}
 \colorlet{Amurmaple at alert}{AmurmapleOrange}
 \colorlet{Amurmaple at info}{AmurmapleRed}
 \colorlet{Amurmaple at example}{AmurmapleGreen}
 \fi
-\ifbeamer at amurmaplegreen
+\ifbeamer at am@amurmaplegreen
 \colorlet{Amurmaple at structure}{AmurmapleGreen!80!black}
 \colorlet{Amurmaple at alert}{AmurmapleOrange}
 \colorlet{Amurmaple at info}{AmurmapleRed}
@@ -162,48 +190,93 @@
 \setbeamercolor{mail}{fg=structure!60}
 
 \setbeamertemplate{subsection in toc}
-  {\leavevmode\leftskip=2em\rule{0.6em}{0.6em}\hskip0.5em\inserttocsubsection\par}
+{\leavevmode\leftskip=2em\rule{0.6em}{0.6em}\hskip0.5em\inserttocsubsection\par}
 
-
-\def\amurmaple at gauge{%
+\newlength{\gauge at step}
+\NewDocumentCommand{\amurmaple at gauge}{o}{%
+  \def\amurmaple at gaugewidth{40pt}%
+  \IfNoValueF{#1}{%
+    \def\amurmaple at gaugewidth{#1}%
+  }%
+  % \def\gauge at step{\numexpr\numexpr\amurmaple at gaugewidth-2pt\relax/10\relax}%
+  \setlength{\gauge at step}{(\amurmaple at gaugewidth-2pt)/10}%
   \def\pourc{\numexpr(10*\insertframenumber/\insertmainframenumber)}%
-  \def\xj{\numexpr(4.95*\pourc)}
+  \def\xj{\numexpr(4.95*\pourc)}%
   %\resetcolorseries[9]{PiedDePage}%
-  \begin{tikzpicture}[x=0.7cm,y=0.7cm]
-    \draw[color=white] (-.1,-.1)--(1.6,-.1)--(1.6,.2)--(-.1,.2)--cycle;
+  \begin{tikzpicture}[x=0.7cm,y=0.7cm]%
+    \draw[color=white] (0pt,-2pt)--(\amurmaple at gaugewidth,-2pt)--(\amurmaple at gaugewidth,4pt)--(0pt,4pt)--cycle;%
     \foreach \i in {0,...,10}{%
       \ifnum\i<\pourc%
       \fill[color=white]%PiedDePage!!+]
-      (0+0.15*\i,0)--(0.15+0.15*\i,0)--(0.15+0.15*\i,.1)--(0+0.15*\i,.1)--cycle;
-      \fi
-    }
-  \end{tikzpicture}
+      (\the\gauge at step*\i+1pt,-1pt)--(\the\gauge at step+\the\gauge at step*\i+1pt,-1pt)--(\the\gauge at step+\the\gauge at step*\i+1pt,3pt)--(0+\the\gauge at step*\i+1pt,3pt)--cycle;%
+      \fi%
+    }%
+  \end{tikzpicture}%
 }
 
 % background
+\ifbeamer at am@sidebar
+  \setbeamercolor{sidebar}{fg=white}
+  \setbeamercolor{author in sidebar}{fg=black!20!white}
+  \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{author in sidebar}{size=\tiny}
+\fi
 \ExplSyntaxOn
 \setbeamertemplate{background}%
 {%
-  \hypersetup{linkcolor=white}
-  \begin{tikzpicture}[remember~picture,overlay]
-    \fill[Amurmaple at structure]
-    (current~page.south~west) rectangle ([xshift=\c_amurmaple_barre_dim]current~
-    page.north~west);
-    \node[anchor=north~west,rotate=90,color=white] at (current~page.south~west)
-    (title) {\scriptsize\insertshorttitle\quad---\quad \insertshortauthor
-     \ifbeamer at nomail
-     \quad \texttt{\amurmaple at printmail}
-     \fi
-    };
-    \ifbeamer at nogauge
-    \ifnum\insertframenumber>\insertmainframenumber % gauge only in main part
-    \else
-    \node[anchor=north~east,rotate=90,color=white] at (current~page.north~west)
-    (gauge) {\amurmaple at gauge};
+  \hypersetup{linkcolor=white}%
+  \begin{tikzpicture}[remember~picture,overlay]%
+    \fill[Amurmaple at structure]%
+    (current~page.south~west) rectangle ([xshift=\c_amurmaple_barre_dim]current~%
+    page.north~west);%
+    \ifbeamer at am@rule
+      \fill[Amurmaple at rule]%
+      ([xshift=\c_amurmaple_barre_dim]current~page.south~west) rectangle ([xshift=\c_amurmaple_barre_dim+1pt]current~%
+      page.north~west);%
     \fi
-    \fi
-  \end{tikzpicture}
-}
+    \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%
+          \texttt{\amurmaple at printmail}%
+        \fi%
+      };%
+      \ifbeamer at am@nogauge%
+        \ifnum\insertframenumber>\insertmainframenumber % gauge only in main part
+        \else%
+          %\newlength{\amurmaple at gaugesidebarwidth}
+          %\setlength{\amurmaple at gaugesidebarwidth}{\beamer at sidebarwidth-15pt}
+          \node[anchor=south~west,color=white,inner~sep=0pt] at ([xshift=3pt,yshift=5pt]current~page.south~west)%
+          (gauge) {\amurmaple at gauge[\the\beamer at sidebarwidth-6pt]};%
+        \fi%
+      \fi%
+      \ifx\logo\empty%
+      \else%
+        \node [anchor=south~west,inner~sep=0pt] at ($(current~page.south~west)+(0,0.5)$)%
+          (logo) {\insertlogo};%
+      \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%
+        \else%
+          \node[anchor=north~east,rotate=90,color=white] at (current~page.north~west)%
+          (gauge) {\amurmaple at gauge};%
+        \fi%
+      \fi%
+    \fi%
+  \end{tikzpicture}%
+}%
 \ExplSyntaxOff
 %
 %
@@ -287,7 +360,7 @@
     \fill[white]
     ([yshift=15pt]current~page.west) rectangle (current~page.north~
     east);
-    \ifbeamer at delaunay
+    \ifbeamer at am@delaunay
     \ifLuaTeX
     \amurmaple at buildpoints
     \amurmaple at buildmesh
@@ -296,6 +369,11 @@
     \fill[structure]
     ([yshift=15pt]current~page.west)~rectangle~(current~page.south~
     east);
+    \ifbeamer at am@rule
+      \fill[Amurmaple at rule]
+      ([yshift=15pt]current~page.west)~rectangle~([yshift=10pt]current~page.
+      east);
+    \fi
     \node[anchor=east]~
     at~([yshift=-35pt,xshift=-20pt]current~page.north~east)~(author)~
     {\parbox[t]{.6\paperwidth}{\raggedleft%
@@ -359,7 +437,7 @@
     \fill[white]
     ([yshift=15pt]current page.west) rectangle (current page.north
     east);
-    \ifbeamer at delaunay
+    \ifbeamer at am@delaunay
     \ifLuaTeX
     \amurmaple at buildpoints
     \amurmaple at buildmesh
@@ -368,6 +446,10 @@
     \fill[structure]
     ([yshift=15pt]current page.west) rectangle (current page.south
     east);
+    \ifbeamer at am@rule
+      \fill[Amurmaple at rule]
+      ([yshift=15pt]current page.west) rectangle ([yshift=10pt]current page.east);
+    \fi
     \node[anchor=east, font=\huge, text width=0.95\linewidth,align=right]
     at ([yshift=-50pt,xshift=-20pt]current page.north east) (section)
     { Section \insertsectionnumber: \bfseries\textcolor{structure}{\insertsection}};
@@ -384,7 +466,10 @@
     \fill[structure]
     ([yshift=15pt]current page.west) rectangle (current page.north
     east);
-
+    \ifbeamer at am@rule
+      \fill[Amurmaple at rule]
+      ([yshift=15pt]current page.west) rectangle ([yshift=10pt]current page.east);
+    \fi
     \node[anchor=north]
     at ([yshift=-20pt]current page.north) (section)
     {\Large\textcolor{white}{Part~\insertpartnumber}};
@@ -397,25 +482,42 @@
 
 
 % frame title
+\ExplSyntaxOn
 \setbeamercolor{frametitle}{fg=structure}
 \setbeamerfont{frametitle}{size=\bfseries\Large}
 \setbeamertemplate{frametitle}{%
-  \raggedleft
-  \usebeamerfont{frametitle}\insertframetitle%
-  \vphantom{g}% To avoid fluctuations per frame
-  \par
-  \raggedleft
-  \vspace*{-0.3cm}
-  \rule{0.5\paperwidth}{2pt}\hspace*{-1cm}%%
-  \par
-  \raggedleft
-  \vspace*{-0.3cm}%
-  {\ifx\insertframesubtitle\@empty%
-  \else%
-  \usebeamerfont{framesubtitle}\insertframesubtitle%
-  \fi}%
-  \par
+  \ifbeamer at am@leftframetitle
+    \usebeamerfont{frametitle}\insertframetitle%
+    \vphantom{g}% To avoid fluctuations per frame
+    \par%
+    \vspace*{-0.3cm}%
+    \hspace*{-\c_amurmaple_margin}\rule{0.5\paperwidth}{2pt}%%
+    \par%
+    \vspace*{-0.3cm}%
+    {\ifx\insertframesubtitle\@empty%
+      \else%
+        \usebeamerfont{framesubtitle}\insertframesubtitle%
+      \fi}%
+    \par%
+  \else
+    \raggedleft
+    \usebeamerfont{frametitle}\insertframetitle%
+    \vphantom{g}% To avoid fluctuations per frame
+    \par
+    \raggedleft
+    \vspace*{-0.3cm}
+    \rule{0.5\paperwidth}{2pt}\hspace*{-1cm}%%
+    \par
+    \raggedleft
+    \vspace*{-0.3cm}%
+    {\ifx\insertframesubtitle\@empty%
+      \else%
+        \usebeamerfont{framesubtitle}\insertframesubtitle%
+      \fi}%
+    \par
+  \fi
 }
+\ExplSyntaxOff
 
 %%%%%%%%%%%%%%
 %%% commands
@@ -430,15 +532,15 @@
 }}
 
 % new one a subtitle inside a frame
+\ExplSyntaxOn
 \NewDocumentCommand{\framesection}{m}{
   \medskip
   \noindent{\large\bfseries\textcolor{structure}{#1}}\par\vspace*{-0.2cm}
-  \hspace*{-0.5cm}{\color{structure}\rule{0.4\paperwidth}{2pt}}\par\smallskip%
+  \hspace*{-\c_amurmaple_margin}{\color{structure}\rule{0.4\paperwidth}{2pt}}\par\smallskip%
 }
 % new one  define a separation frame with a title and the TOC
 
 %% key/value
-\ExplSyntaxOn
 \keys_define:nn { amurmaple/sepframe } {
   title .tl_set:N = \l_sepframetitle_tl ,
   image .tl_set:N = \l_sepframeimage_tl
@@ -462,7 +564,7 @@
   \setbeamercolor{background~canvas}{bg=white}
   \begin{frame}[noframenumbering,plain]
     \begin{tikzpicture}[remember~picture,overlay]
-      \ifbeamer at delaunay
+      \ifbeamer at am@delaunay
       \ifLuaTeX
       \amurmaple at buildpoints
       \amurmaple at buildmesh
@@ -471,6 +573,11 @@
       \fill[structure]
       ([yshift=15pt]current~page.west) rectangle (current~page.south~
       east);
+      \ifbeamer at am@rule
+      \fill[Amurmaple at rule]
+      ([yshift=15pt]current~page.west)~rectangle~([yshift=10pt]current~page.
+      east);
+      \fi
       \node[anchor=east,text~width = 0.75\linewidth, font=\huge\bfseries,align=right]
       at ([yshift=-50pt,xshift=-20pt]current~page.north~east) (section)
       {\textcolor{structure}{\amurmaple at septitle}};
@@ -511,7 +618,7 @@
   }
   \begin{frame}[noframenumbering,plain]
     \begin{tikzpicture}[remember picture,overlay]
-      \ifbeamer at delaunay
+      \ifbeamer at am@delaunay
       \ifLuaTeX
       \amurmaple at buildpoints
       \amurmaple at buildmesh
@@ -520,6 +627,10 @@
       \fill[structure]
       ([yshift=15pt]current page.west) rectangle (current page.south
       east);
+      \ifbeamer at am@rule
+      \fill[Amurmaple at rule]
+      ([yshift=15pt]current page.west) rectangle ([yshift=10pt]current page.east);
+      \fi
       \node[anchor=east,text width = 0.95\linewidth, font=\huge\bfseries,align=right]
       at ([yshift=50pt,xshift=-20pt]current page.south east) (section)
       {\textcolor{white}{#2}};
@@ -626,4 +737,4 @@
 
 \setbeamercolor{block title example}{fg=Amurmaple at example}
 \mode
-<all>
\ No newline at end of file
+<all>



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