texlive[74899] Master: beamer-theme-albi (9apr25)
commits+karl at tug.org
commits+karl at tug.org
Wed Apr 9 21:59:10 CEST 2025
Revision: 74899
https://tug.org/svn/texlive?view=revision&revision=74899
Author: karl
Date: 2025-04-09 21:59:10 +0200 (Wed, 09 Apr 2025)
Log Message:
-----------
beamer-theme-albi (9apr25)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/
trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/README.md
trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.pdf
trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.tex
trunk/Master/texmf-dist/tex/latex/beamer-theme-albi/
trunk/Master/texmf-dist/tex/latex/beamer-theme-albi/beamerthemeAlbi.sty
trunk/Master/tlpkg/tlpsrc/beamer-theme-albi.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/README.md 2025-04-09 19:59:10 UTC (rev 74899)
@@ -0,0 +1,5 @@
+# The Albi beamer theme
+
+The Albi beamer theme features a colorful triangular design.
+
+author: Paul Gaborit (paul.gaborit at gamil.com)
Property changes on: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.pdf 2025-04-09 19:58:28 UTC (rev 74898)
+++ trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.pdf 2025-04-09 19:59:10 UTC (rev 74899)
Property changes on: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.tex 2025-04-09 19:59:10 UTC (rev 74899)
@@ -0,0 +1,994 @@
+\documentclass[9pt]{beamer}
+
+\usepackage[T1]{fontenc}
+%\usepackage{sourcesanspro}
+%\usepackage[scaled=.9]{DejaVuSansCondensed}
+%\usepackage[sfdefault,lining,scaled=.95]{FiraSans}
+\usepackage{lmodern}
+\usepackage[scale=.8,lining,type1]{FiraMono}
+
+\usepackage{fontawesome}
+\usepackage{multicol}
+
+
+\usepackage{tikz}
+\usetikzlibrary{shadows,arrows.meta,backgrounds,fit,calc,positioning}
+
+\usepackage{fancyvrb}
+\usepackage{listings}
+
+\usepackage{hologo}
+\hologoFontSetup{general=\normalfont\fontfamily{lmr}\selectfont\mdseries}
+\AtBeginDocument{
+ \def\LaTeX{\hologo{LaTeX}}
+ \def\TeX{\hologo{TeX}}
+}
+
+
+\newenvironment{fragileframe}[1][]
+{\begin{frame}[fragile,environment=fragileframe,#1]}
+{\end{frame}}
+
+\setbeamercolor{code}{parent=normal text,bg=albi blue!5!bg}
+\setbeamercolor{code keyword}{parent=code,fg=albi blue!50!albi cyan!80!fg}
+\setbeamercolor{code comment}{parent=code,fg=albi red!75!fg}
+\setbeamercolor{code string}{parent=code,fg=albi green!50!fg}
+
+\lstdefinestyle{textsmall}{basicstyle=\usebeamercolor[fg]{code}\small\mdseries\ttfamily}
+\lstdefinestyle{textfootnotesize}{basicstyle=\usebeamercolor[fg]{code}\footnotesize\mdseries\ttfamily}
+\lstdefinestyle{textscriptsize}{basicstyle=\usebeamercolor[fg]{code}\scriptsize\mdseries\ttfamily}
+\lstdefinestyle{textsemitiny}{basicstyle=\usebeamercolor[fg]{code}\semitiny\mdseries\ttfamily}
+\lstdefinestyle{texttiny}{basicstyle=\usebeamercolor[fg]{code}\tiny\mdseries\ttfamily}
+
+\lstdefinestyle{LaTeX}{
+ style=textsmall,
+ fancyvrb=true,
+ language=[LaTeX]TeX,
+ keywordstyle=\usebeamercolor[fg]{code keyword}\bfseries,
+ commentstyle=\usebeamercolor[fg]{code comment}\itshape,
+ stringstyle=\usebeamercolor[fg]{code string}\ttfamily,
+ stepnumber=1,
+ numbersep=5pt,
+ showspaces=false,
+ showstringspaces=false,
+ backgroundcolor=\usebeamercolor*{code}\color{bg},
+ fontadjust=true,
+ aboveskip=.3\baselineskip,
+ belowskip=.3\baselineskip,
+ emphstyle=\color{albi red},
+ keepspaces=true,
+ flexiblecolumns=true,
+ upquote,
+ moretexcs={
+ defminesalbilogo,usetheme,institute,maketitle,frametitle,usefonttheme,
+ setbeamercolor,scalebox,insertlogo,titlegraphic,includegraphics,subtitle,
+ Albikeys,rotatebox,node,logo,titlepage,setbeamerfont,setbeamertemplate,
+ Albisetlogofilename,
+ }
+}
+\lstdefinestyle{LaTeXsmall}{style=LaTeX,style=textsmall}
+\lstdefinestyle{LaTeXfootnotesize}{style=LaTeX,style=textfootnotesize}
+\lstdefinestyle{LaTeXscriptsize}{style=LaTeX,style=textscriptsize}
+\lstdefinestyle{LaTeXsemitiny}{style=LaTeX,style=textsemitiny}
+\lstdefinestyle{LaTeXtiny}{style=LaTeX,style=texttiny}
+
+\def\code{\lstinline[basicstyle=\mdseries\ttfamily\color{albi blue!50!albi cyan!80!fg}]}
+
+\usetheme{Albi}
+
+\def\logoone{%
+ \begin{tikzpicture}
+ \node[node font=\Large\bfseries,inner xsep=1em,
+ inner ysep=.5em,fill=cyan!50!green,text=white]
+ {\rotatebox{30}{Logo}};
+ \end{tikzpicture}
+}
+
+\def\bmt{\emph{beamer-template} \code}
+\def\bmf{\emph{beamer-font} \code}
+\def\bmc{\emph{beamer-color} \code}
+\def\bmtf{\emph{beamer-template/-font} \code}
+\def\bmtc{\emph{beamer-template/-color} \code}
+\def\bmfc{\emph{beamer-font/-color} \code}
+\def\bmtfc{\emph{beamer-template/-font/-color} \code}
+\def\ab{\emph{albi-keys} \code}
+
+\def\bmparen#1#2{\hbox{{\footnotesize(#1{#2})}}}
+
+\NewDocumentEnvironment{lwcolumns}{}{
+ \columns[onlytextwidth]
+ \column{\dimexpr\textwidth-\linewidth}
+}{
+ \endcolumns
+}
+
+\newbool{dark theme}
+\setbool{dark theme}{false}
+
+\ifbool{dark theme}{
+ \setbeamercolor{albi title page.title}{fg=white,bg=black!80!white}
+ \setbeamercolor{albi title page.logo}{fg=white,bg=black!70!white}
+ \setbeamercolor{albi title page.author}{fg=white,bg=black!60!white}
+ \setbeamercolor{albi title page.empty}{fg=white,bg=black!90!white}
+
+ \setbeamercolor{frametitle}{bg=albi yellow,fg=albi green}
+
+ \setbeamercolor{albi part page.title}{fg=yellow,bg=black!80!white}
+ \setbeamercolor{albi part page.logo}{fg=orange,bg=black!70!white}
+ \setbeamercolor{albi part page.empty}{fg=white,bg=black!60!white}
+
+ \setbeamercolor{footline}{fg=white,bg=albi black!90!albi blue}
+ \setbeamercolor{date in head/foot}{parent=footline,fg=gray}
+ \setbeamercolor{institute in head/foot}{parent=footline,fg=gray}
+
+ \setbeamercolor{frametitle}{bg=blue!20!black,fg=gray!20!white}
+
+ \setbeamercolor{subsection in head/foot}{bg=cyan!20!black,fg=albi green!30}
+
+ \setbeamercolor{albi section page.toc}{fg=yellow,bg=black!80!white}
+ \setbeamercolor{albi section page.logo}{fg=orange,bg=black!70!white}
+ \setbeamercolor{albi section page.part}{fg=white,bg=black!60!white}
+
+ \setbeamercolor{alerted text}{fg=albi red!50!albi orange!50!fg}
+ \setbeamercolor{example text}{fg=albi green!50!white}
+ \setbeamercolor{normal text}{bg=albi black,fg=albi silver!50!white}
+
+ \setbeamercolor{block title}{bg=albi blue!50!bg,fg=white}
+ \setbeamercolor{block body}{parent=normal text,bg=albi blue!30!bg,fg=albi blue!30!fg}
+
+ \setbeamercolor{background canvas}{bg=albi black,fg=white}
+ \setbeamertemplate{background canvas}[default]
+
+ \setbeamercolor{code}{parent=normal text,bg=albi cyan!20!bg}
+ \setbeamercolor{code keyword}{parent=code,fg=albi cyan!50!fg}
+ \setbeamercolor{code comment}{parent=code,fg=albi red!50!fg}
+ \def\code{\lstinline[basicstyle=\mdseries\ttfamily\color{albi cyan!50!fg}]}
+
+}{}
+
+\title{Albi Beamer Theme}
+\subtitle{Documentation}
+\author{Paul Gaborit}
+\institute{Albi, France}
+\date{\today}
+\logo{\logoone}
+
+
+\begin{document}
+
+\begin{frame}[plain]
+ \titlepage
+\end{frame}
+
+\begin{frame}
+ \frametitle{Contents}
+
+ \partname~\ref{part:one} \nameref{part:one}
+
+ \tableofcontents[part=1]
+
+ \partname~\ref{part:epilogue} \nameref{part:epilogue}
+
+\end{frame}
+
+\part{User manual}
+\label{part:one}
+
+\section{Usage}
+
+% ------------------------------------------------------------
+% activation
+% ------------------------------------------------------------
+\subsection{Albi theme and options}
+
+\def\initialvalue#1{{\footnotesize\mbox{(initially: \code{#1})}}}
+
+\begin{fragileframe}
+ \frametitle{How to use Albi theme}
+
+ \begin{itemize}
+ \item In the preamble of the beamer document:
+
+\begin{lstlisting}[style=LaTeX]
+\usetheme{Albi}
+\end{lstlisting}
+
+ \vfill
+
+ \item Boolean options:
+
+ \begin{description}[\mdseries\texttt{compactfootline}]
+ \item[\mdseries\texttt{compactfootline}] Compact the footline
+ \initialvalue{false}.
+
+ \item[\mdseries\texttt{compacttitle}] Compact the frame title
+ \initialvalue{false}.
+
+ \item[\mdseries\texttt{partpage}] Add a part page at the beginning
+ of every part \initialvalue{true}.
+
+ \item[\mdseries\texttt{sectionpage}] Add a section page at the
+ beginning of every section \initialvalue{true}.
+ \end{description}
+
+ \vfill
+
+\begin{lstlisting}[style=LaTeX]
+% compact
+\usetheme[compactfootline,compacttitle]{Albi}
+\end{lstlisting}
+
+ \vfill
+
+\begin{lstlisting}[style=LaTeX]
+% suppress part pages and section pages
+\usetheme[partpage=false,sectionpage=false]{Albi}
+\end{lstlisting}
+
+
+ \item Change options during the document:
+
+\begin{lstlisting}[style=LaTeX]
+\Albikeys{compactfootline,compacttitle,partpage=false,sectionpage=false}
+\end{lstlisting}
+
+ \end{itemize}
+\end{fragileframe}
+
+
+% ------------------------------------------------------------
+% title page
+% ------------------------------------------------------------
+\subsection{Title page}
+
+\begin{fragileframe}
+
+ \frametitle{How to insert a title page}
+
+ \begin{itemize}
+ \item In the preamble of the beamer document:
+
+\begin{lstlisting}[style=LaTeX]
+\title{A Good Title}
+\subtitle{with a good subtitle} % optional
+\author{My name}
+\institute{Organization name}
+\date{\today}
+\logo{\includegraphics{logo}}
+\end{lstlisting}
+
+ \item To insert a title page:
+
+ \begin{lwcolumns}
+
+ \column{.45\linewidth}
+
+\begin{lstlisting}[style=LaTeX]
+\begin{frame}[plain]
+ \titlepage
+\end{frame}
+\end{lstlisting}
+
+ \column{.1\linewidth}
+
+ {\centering or \par}
+
+ \column{.45\linewidth}
+
+\begin{lstlisting}[style=LaTeX]
+\begin{frame}[plain]
+ \maketitle
+\end{frame}
+\end{lstlisting}
+
+ \end{lwcolumns}
+ \end{itemize}
+
+\end{fragileframe}
+
+% ------------------------------------------------------------
+% main logo
+% ------------------------------------------------------------
+\subsection{Logos}
+
+\begin{fragileframe}
+ \frametitle{How to choose logos}
+
+
+ % --------------------
+ \begin{onlyenv}<+>
+
+ \begin{itemize}
+ \item Via a picture (\code{mylogo.pdf}, \code{mylogo.png} or \code{mylogo.jpg}):
+
+\begin{lstlisting}[style=LaTeX]
+\logo{\includegraphics{mylogo}}
+\end{lstlisting}
+
+ or:
+
+\begin{lstlisting}[style=LaTeX]
+\Albisetlogofilename{mylogo}
+\end{lstlisting}
+
+ or:
+
+\begin{lstlisting}[style=LaTeX]
+\Albikeys{all logos={\includegraphics{mylogo}}}
+\end{lstlisting}
+
+ \begin{itemize}
+ \item[\faHandORight] The logo picture is automatically scaled and
+ inserted in the \emph{footline}, \emph{title page}, \emph{part
+ pages} and \emph{section pages}.
+ \end{itemize}
+ \end{itemize}
+ \end{onlyenv}
+
+ % --------------------
+ \begin{onlyenv}<+>
+
+ \begin{itemize}
+ \item With different logos:
+
+\begin{lstlisting}[style=LaTeX]
+\Albikeys{
+ footline logo={\includegraphics{logo-for-footline}},
+ logo={\includegraphics{logo-for-title-page}},
+ part logo={\includegraphics{logo-for-part-page}},
+ section logo={\includegraphics{logo-for-section-page}},
+}
+\end{lstlisting}
+
+
+ \begin{itemize}
+ \item[\faHandORight] Logos pictures are automatically scaled and
+ inserted in the \emph{footline}, \emph{title page}, \emph{part
+ pages} and \emph{section pages}.
+ \end{itemize}
+ \end{itemize}
+
+ \end{onlyenv}
+
+ % --------------------
+ \begin{onlyenv}<+>
+
+ \begin{itemize}
+ \item Using any \LaTeX{} code (as in this document):
+
+\begin{lstlisting}[style=LaTeX]
+\Albikeys{
+ all logos={%
+ \begin{tikzpicture}
+ \node[node font=\Large\bfseries,inner xsep=1em,
+ inner ysep=.5em,fill=cyan!50!green,text=white]
+ {\rotatebox{30}{Logo}};
+ \end{tikzpicture}%
+ },
+}
+\end{lstlisting}
+
+ \begin{itemize}
+ \item[\faHandORight] Content is automatically scaled and inserted
+ in the \emph{footline}, \emph{title page}, \emph{part pages} and
+ \emph{section pages}.
+ \item[\faGear] Scaling is computed according to the bounding box
+ of the provided code.
+ \item[\faHandORight] A specific code can be provided to each specific
+ key (\code{footline logo}, \code{logo}, \code{part logo}
+ and \code{section logo}).
+ \end{itemize}
+ \end{itemize}
+ \end{onlyenv}
+\end{fragileframe}
+
+
+\section{Colors and texts}
+
+\subsection{Color scheme}
+
+\begin{fragileframe}
+ \frametitle{Color scheme}
+
+ {
+ \centering
+
+ \begin{tikzpicture}[x=5mm,y=5mm,line width=.5pt,remember picture,inner sep=0]
+
+ \path (0,-.3)
+ node[minimum width=30mm,minimum height=6mm,font=\ttfamily\scriptsize]
+ (pure){pure};
+
+ \path (pure.west) ++(.5,0) coordinate (w-pure);
+ \path (pure.east) ++(-.5,0) coordinate (b-pure);
+
+ \foreach \val [count=\nv] in {90,80,60,50,40,20,10}{
+ \path (w-pure) ++(-\nv,0) coordinate (w-\val)
+ node[font=\ttfamily\scriptsize,anchor=base] {\val};
+ \path (b-pure) ++(\nv,0) coordinate (b-\val)
+ node[font=\ttfamily\scriptsize,anchor=base] {\val};
+ }
+
+ \path (b-10) ++(0,.5) node[anchor=base east,font=\ttfamily\scriptsize]
+ {$\rightarrow$ black};
+
+ \path (w-10) ++(0,.5) node[anchor=base west,font=\ttfamily\scriptsize]
+ {white $\leftarrow$};
+
+ \path (b-10) ++(1.5,0) node[anchor=base,font=\ttfamily\scriptsize]
+ {gray};
+
+ \foreach \mycol[count=\nc] in {
+ albi blue,
+ albi dark blue,
+ albi black,
+ albi green,
+ albi red,
+ albi gray,
+ albi cyan,
+ albi orange,
+ albi yellow,
+ albi silver%
+ }{\usebeamercolor{\mycol}%
+ \extractcolorspecs{fg}{\mymodelspec}{\mycolorspec}
+ \node[font=\ttfamily\semitiny,inner sep=0,
+ minimum width=30mm,minimum height=.9*5mm,
+ fill=fg,
+ align=center,text=bg,draw=fg,
+ rounded corners=1mm] (\mycol) at (0,-\nc)
+ {%
+ \textbf{\mycol}\\[-.2em]
+ \semitiny\mymodelspec(\foreach \val[count=\c] in \mycolorspec {%
+ \pgfmathsetmacro\valcent{int(round(\val*255))}\valcent%
+ \ifnum\c=3\relax\else,\fi%
+ })%
+ };
+
+ \foreach \val [count=\nv] in {90,80,60,50,40,20,10}{
+ \path (w-\val |- \mycol) coordinate (\mycol!\val!white);
+ \fill[fill=fg!\val!white,draw=fg,rounded corners=1mm]
+ (\mycol!\val!white) +(-.45,-.45) rectangle +(.45,.45);
+
+ \path (b-\val |- \mycol) coordinate (\mycol!\val!black);
+ \fill[fill=fg!\val!black,draw=fg,rounded corners=1mm]
+ (\mycol!\val!black) +(-.45,-.45) rectangle +(.45,.45);
+ }
+
+ \colorlet{gray color}[gray]{\mycol}
+ \fill[fill=gray color,draw=gray color,rounded corners=1mm]
+ (\mycol!10!black) ++(1.5,0) +(-.45,-.45) rectangle +(.45,.45);
+ }
+
+ \end{tikzpicture}
+
+ \vfill
+
+ \begin{tikzpicture}[remember picture,x=5mm,y=3mm,inner sep=0]
+ \foreach \exa/\out/\in [count=\c] in {
+ albi green/0/0,
+ albi blue!60!white/180/270,
+ albi red!60!black/0/270%
+ }
+ {
+ \node[font=\ttfamily\scriptsize,anchor=base west,text=\exa,text depth=0]
+ (a) at (0,-\c){\rule{.8em}{.8em} \exa};
+ \begin{scope}[overlay]
+ \draw[{Stealth[{fill=fg}]-},draw=bg,double=fg,line cap=round]
+ (a) to[out=\out,in=\in] (\exa);
+ \end{scope}
+ }
+ \end{tikzpicture}
+
+ }
+
+
+ \begin{itemize}
+ \footnotesize
+ \item[\faGear] All colors are also define as \bmc{} (with black or white background color).
+ \end{itemize}
+
+\end{fragileframe}
+
+\begin{frame}
+ \frametitle{Distribution in color space}
+
+ \centering
+ \begin{tikzpicture}
+ \def\myradius{1.5pt}
+
+ \coordinate (red) at (60:3cm);
+ \coordinate (green) at (180:3cm);
+ \coordinate (blue) at (-60:3cm);
+
+ \tikzset{
+ line style/.style={draw=gray!50,line width=1pt,dashed,line join=round,line cap=round},
+ pastille/.style={fill=####1,draw=gray,line width=0.01pt},
+ lab/.style={font=\semitiny,fill=white,fill opacity=.25,text opacity=1,inner sep=.01mm,####1=1.5mm}
+ }
+ \draw[line style] (red) -- (blue) -- (green) -- cycle;
+ \foreach \mycol/\pos in {red/right,green/right,blue/right}{
+ \fill[pastille=\mycol] (\mycol) circle (\myradius) node[text=\mycol,lab=\pos]{\mycol};
+ }
+
+ \foreach \mycol/\pos[count=\nc] in {
+ albi blue/right,
+ albi dark blue/right,
+ albi black/above,
+ albi gray/below,
+ albi silver/right,
+ albi orange/right,
+ albi red/right,
+ albi yellow/below,
+ albi cyan/right,
+ albi green/above%
+ }{
+ \usebeamercolor{\mycol}
+ \extractcolorspecs{\mycol}{\mymodelspec}{\mycolorspec}
+ \pgfmathsetmacro\myred{int(round(array({\mycolorspec},0)*100))}
+ \pgfmathsetmacro\mygreen{int(round(array({\mycolorspec},1)*100))}
+ \pgfmathsetmacro\myblue{int(round(array({\mycolorspec},2)*100))}
+ \fill[\mycol,draw=black]
+ (barycentric cs:red=\myred,green=\mygreen,blue=\myblue)
+ circle (\myradius)
+ node[text=bg,lab=\pos,fill=fg,fill opacity=1,inner sep=.1em]{\mycol};
+ }
+
+ \path (current bounding box.west) ++(-2cm,0) coordinate(grayline);
+ \coordinate (white) at (red -| grayline);
+ \coordinate (black) at (blue -| grayline);
+
+ \draw[line style] (white) -- (black);
+ \foreach \mycol in {white,black}{
+ \fill[pastille=\mycol]
+ (\mycol) circle (\myradius) node[lab=left]{\mycol};
+ }
+
+ \foreach \mycol/\pos[count=\nc] in {
+ albi blue/left,
+ albi dark blue/right,
+ albi black/right,
+ albi gray/left,
+ albi silver/left,
+ albi orange/right,
+ albi red/right,
+ albi yellow/right,
+ albi cyan/right,
+ albi green/below left%
+ }{
+ \usebeamercolor{\mycol}
+ \colorlet{current gray color}[gray]{\mycol}
+ \extractcolorspecs{current gray color}{\mymodelspec}{\mycolorspec}
+ \path (black) -- (white) coordinate[pos=\mycolorspec] (g);
+ \fill[pastille=\mycol] (g) circle (\myradius)
+ node[text=bg,lab=\pos,fill=fg,fill opacity=1,inner sep=.1em]{\mycol};
+ }
+ \end{tikzpicture}
+\end{frame}
+
+\subsection{Text sizes}
+
+\begin{fragileframe}
+ \frametitle{Text sizes}
+
+ \begin{multicols}{2}
+ \def\demotext{Example}
+ \begin{description}[\ttfamily\string\footnotesize]
+ \item[\ttfamily\string\TINY] {\TINY\demotext\par}
+ \item[\ttfamily\string\Tiny] {\Tiny\demotext\par}
+ \item[\ttfamily\string\tiny] {\tiny\demotext\par}
+ \item[\ttfamily\string\semitiny] {\semitiny\demotext\par}
+ \item[\ttfamily\string\scriptsize] {\scriptsize\demotext\par}
+ \item[\ttfamily\string\footnotesize] {\footnotesize\demotext\par}
+ \item[\ttfamily\string\small] {\small\demotext\par}
+ \item[\ttfamily\string\normalsize] {\normalsize\demotext\par}
+ \item[\ttfamily\string\large] {\large\demotext\par}
+ \item[\ttfamily\string\Large] {\Large\demotext\par}
+ \item[\ttfamily\string\LARGE] {\LARGE\demotext\par}
+ \item[\ttfamily\string\huge] {\huge\demotext\par}
+ \item[\ttfamily\string\Huge] {\Huge\demotext\par}
+ \item[\ttfamily\string\HUGE] {\HUGE\demotext\par}
+ \end{description}
+ \end{multicols}
+
+ \begin{itemize}
+ \item[\faHandORight] \code{\HUGE} and \code{\semitiny} don't exist in beamer
+ \end{itemize}
+
+\end{fragileframe}
+
+% ------------------------------------------------------------
+% Blocks
+% ------------------------------------------------------------
+
+\subsection{Blocks}
+
+\begin{filecontents*}[overwrite]{\jobname-example1.vrb}
+\begin{block}{Title}
+ Content of \texttt{block}...
+\end{block}
+\end{filecontents*}
+
+\begin{filecontents*}[overwrite]{\jobname-example2.vrb}
+\begin{alertblock}{Title}
+ Content of \texttt{alertblock}...
+\end{alertblock}
+\end{filecontents*}
+
+\begin{filecontents*}[overwrite]{\jobname-example3.vrb}
+\begin{exampleblock}{Title}
+ Content of \texttt{exampleblock}...
+\end{exampleblock}
+\end{filecontents*}
+
+\begin{fragileframe}
+ \frametitle{Blocks}
+
+ \begin{columns}[onlytextwidth]
+ \column{.425\linewidth}
+ \lstinputlisting[style=LaTeX]{\jobname-example1.vrb}
+ \input{\jobname-example1.vrb}
+
+ \column{.525\linewidth}
+ \lstinputlisting[style=LaTeX]{\jobname-example2.vrb}
+ \input{\jobname-example2.vrb}
+ \end{columns}
+
+ \begin{columns}[onlytextwidth]
+ \column{.425\linewidth}
+ \begin{itemize}
+ \item[\faHandORight] Do not overuse it !
+ \end{itemize}
+
+ \column{.525\linewidth}
+ \lstinputlisting[style=LaTeX]{\jobname-example3.vrb}
+ \input{\jobname-example3.vrb}
+ \end{columns}
+
+\end{fragileframe}
+
+
+
+\section{Customizations}
+
+\subsection{Special pages: title, part, section}
+
+\begin{fragileframe}
+ \frametitle{Customize the title page}
+
+ The predefined option \code{[albi]} \bmparen\bmt{title page} is
+ divided into four areas:
+
+ \begin{enumerate}
+ \item the logo area \bmparen\bmc{albi title page.logo} contains the
+ logo.
+
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi title page.logo}{fg=black,bg=white}
+\end{lstlisting}
+
+ \item the title area \bmparen\bmc{albi title page.title} contains the
+ title \bmparen\bmfc{title} and the subtitle \bmparen\bmfc{subtitle}.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi title page.title}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\setbeamerfont{title}{series=\bfseries,size=\LARGE}
+\end{lstlisting}
+
+ \item the author area \bmparen\bmc{albi title page.author} contains
+ the author \bmparen\bmfc{author}, the institute
+ \bmparen\bmfc{institute}, date \bmparen\bmfc{date} and titlegraphic
+ \bmparen\bmfc{titlegraphic}.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi title page.author}{use=albi cyan,fg=albi cyan.bg,bg=albi cyan.fg}
+\setbeamerfont{author}{series=\bfseries,size=\large}
+\end{lstlisting}
+
+ \item the empty area \bmparen\bmc{albi title page.empty}.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi title page.empty}{use=albi dark blue,fg=albi dark blue.bg,bg=albi dark blue.fg}
+\end{lstlisting}
+
+ \end{enumerate}
+
+\end{fragileframe}
+
+\begin{fragileframe}
+ \frametitle{Customize part pages}
+
+ The predefined option \code{[albi]} \bmparen\bmt{part page} is divided
+ into three areas:
+
+ \begin{enumerate}
+ \item the empty area \bmparen\bmc{albi part page.empty}.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi part page.empty}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\end{lstlisting}
+
+ \item the title area \bmparen\bmc{albi part page.title} contains the
+ part name \bmparen\bmfc{part name} and the part title
+ \bmparen\bmfc{part title}.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi part page.title}{use=albi cyan,fg=albi cyan.bg,bg=albi cyan.fg}
+\setbeamerfont{part name in part page}{parent=part name}
+\setbeamerfont{part title in part page}{parent=part title}
+\end{lstlisting}
+
+ \item the logo area \bmparen\bmc{albi part page.logo} contains the logo.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi part page.logo}{fg=black,bg=white}
+\end{lstlisting}
+
+ \end{enumerate}
+
+\end{fragileframe}
+
+\begin{fragileframe}
+ \frametitle{Customize section pages}
+
+ The predefined option \code{[albi]} \bmparen\bmt{section page} is divided
+ into three areas:
+
+ \begin{enumerate}
+ \item the toc area \bmparen\bmc{albi section page.toc} contains the
+ table of content of the current part with current section details.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi section page.toc}{parent=normal text}
+\end{lstlisting}
+
+ \item the part area \bmparen\bmc{albi section page.part} contains the
+ part name \bmparen\bmfc{part name in section page} and the part title
+ \bmparen\bmfc{part title in section page}.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi section page.part}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\setbeamerfont{part name in section page}{parent=part name,size=\normalsize}
+\setbeamerfont{part title in section page}{parent=part title,size=\normalsize}
+\end{lstlisting}
+
+ \item the logo area \bmparen\bmc{albi section page.logo} contains the logo.
+
+\begin{lstlisting}[style=LaTeXsemitiny]
+\setbeamercolor{albi section page.logo}{use=albi silver,fg=albi silver.bg,bg=albi silver.fg}
+\end{lstlisting}
+
+ \end{enumerate}
+
+\end{fragileframe}
+
+\subsection{Frame title, headline and footline}
+
+\begin{fragileframe}
+ \frametitle{Frame title}
+
+ \begin{itemize}
+ \item The predefined option \code{[albi]} \bmparen\bmt{frametitle}
+ displays the frame title \bmparen\bmfc{frametitle}, the frame
+ subtitle \bmparen\bmfc{framesubtitle} if exists and the frame number
+ \bmparen\bmfc{frame number}.
+
+ \item Predefined options for frame number \bmparen\bmt{frame number}:
+
+ {
+ \footnotesize
+ \begin{description}[\mdseries\texttt{[frame+slide with total]}]
+ \item[\mdseries\texttt{[none]}] no frame number.
+ \item[\mdseries\texttt{[frame]}] frame number.
+ \item[\mdseries\texttt{[frame with total]}] frame number/total.
+ \item[\mdseries\texttt{[frame+slide]}] frame number with slide number if exists.
+ \item[\mdseries\texttt{[frame+slide with total]}] frame number with slide number if exists/total
+ \end{description}
+ }
+
+ \begin{itemize}
+ \item[\faHandORight] The default option is \code{[frame+slide with total]}:
+
+\begin{lstlisting}[style=LaTeXfootnotesize]
+\setbeamertemplate{frame number}[frame+slide with total]
+\end{lstlisting}
+ \end{itemize}
+
+ \end{itemize}
+
+\end{fragileframe}
+
+\begin{fragileframe}
+ \frametitle{Headline (navigation bar)}
+
+ \begin{itemize}
+ \item The predefined option \code{[albi]} \bmparen\bmt{headline} displays on the...
+
+ \begin{description}[...right]
+
+ \item[...left] all sections \bmparen\bmtfc{section in head/foot} with
+ the current section highlighted \bmparen\bmt{section in head/foot
+ shaded}.
+
+ \item[...right] all subsections \bmparen\bmtfc{subsection in
+ head/foot} of the current section with the current
+ subsection highlighted \bmparen\bmt{subsection in head/foot shaded}.
+
+ \end{description}
+
+\begin{lstlisting}[style=LaTeXscriptsize]
+\setbeamercolor{section in head/foot}{use=albi dark blue,fg=albi dark blue.bg,bg=albi dark blue.fg}
+\setbeamercolor{subsection in head/foot}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+
+\setbeamerfont{section in head/foot}{parent={headline},series=\bfseries}
+\setbeamerfont{subsection in head/foot}{parent={headline},series=\bfseries}
+\end{lstlisting}
+
+ \begin{itemize}
+ \item[\faHandORight] The predefined options
+ \code{[albi with number]} \bmparen\bmt{section in head/foot}
+ \bmparen\bmt{subsection in head/foot} displays the number of
+ sections and subsections. The default predefined option is
+ \code{[albi]}.
+ \end{itemize}
+
+ \item[\faHandORight] The headline can be \emph{compressed} (showing
+ only current section and subsection) using the class option or the
+ theme option \code{compress}:
+
+\begin{lstlisting}[style=LaTeXscriptsize]
+\documentclass[compress]{beamer}
+\end{lstlisting}
+
+\begin{lstlisting}[style=LaTeXscriptsize]
+\Albikeys{compress=true}
+\end{lstlisting}
+
+ \end{itemize}
+\end{fragileframe}
+
+\begin{filecontents*}[force]{\jobname-example1.vrb}
+\Albikeys{other logos list={example-image-b/8mm,example-image-c/4mm,example-image-a/7mm}}
+\end{filecontents*}
+
+\input{\jobname-example1.vrb}
+
+\begin{fragileframe}
+ \frametitle{Footline}
+
+ \begin{itemize}
+ \item The predefined option \code{[albi]} \bmparen\bmt{footline} displays:
+
+ \begin{itemize}
+ \item the footline logo if defined \bmparen\ab{footline logo},
+ \item the title \bmparen\bmfc{title in head/foot} and the date \bmparen\bmfc{date in head/foot},
+ \item the author \bmparen\bmfc{author in head/foot} and the
+ institute \bmparen\bmfc{institute in head/foot},
+ \item others logos if defined \bmparen\ab{other logos list}.
+ \end{itemize}
+
+\begin{lstlisting}[style=LaTeXscriptsize]
+\setbeamercolor{footline}{fg=black,bg=albi silver}
+\setbeamercolor{author in head/foot}{parent=footline}
+\setbeamercolor{date in head/foot}{parent=footline}
+\setbeamercolor{title in head/foot}{parent=footline}
+\setbeamercolor{institute in head/foot}{parent=footline}
+
+\setbeamerfont{author in head/foot}{parent={footline}}
+\setbeamerfont{title in head/foot}{parent={footline}}
+\setbeamerfont{institute in head/foot}{parent={footline}}
+\setbeamerfont{date in head/foot}{parent={footline}}
+\end{lstlisting}
+
+
+ \item[\faHandORight] The \code{other logos list} is a list (possibly
+ empty) of pairs \emph{image/width}:
+ \lstinputlisting[style=LaTeXscriptsize]{\jobname-example1.vrb}
+ \end{itemize}
+\end{fragileframe}
+
+\Albikeys{other logos list={}}
+
+\begin{filecontents*}[force]{\jobname-example1.vrb}
+\setbeamercolor{block title}{bg=albi orange,fg=white}
+\setbeamercolor{block body}{bg=albi orange!10!white,fg=albi black}
+
+\setbeamercolor{block title alerted}{bg=albi gray,fg=white}
+\setbeamercolor{block body alerted}{bg=albi black!10!white,fg=albi black}
+
+\setbeamercolor{block title example}{bg=albi blue,fg=white}
+\setbeamercolor{block body example}{bg=albi blue!10!white,fg=albi black}
+\end{filecontents*}
+
+\subsection{Blocks}
+
+\begin{fragileframe}
+ \frametitle{Blocks with custom colors}
+
+ \begin{itemize}
+ \item Default colors :
+
+ \begin{lwcolumns}
+
+ \column{.29\linewidth}
+ \begin{block}{Title (\texttt{block})}
+ Content...
+ \end{block}
+
+ \column{.03333\linewidth}
+
+ \column{.3\linewidth}
+ \begin{alertblock}{Title (\texttt{alertblock})}
+ Content...
+ \end{alertblock}
+
+ \column{.03333\linewidth}
+
+ \column{.31\linewidth}
+ \begin{exampleblock}{Title (\texttt{exampleblock})}
+ Content...
+ \end{exampleblock}
+
+ \end{lwcolumns}
+
+ \item Custom colors :
+
+ \lstinputlisting[style=LaTeXscriptsize]{\jobname-example1.vrb}
+
+ \input{\jobname-example1.vrb}
+
+ \begin{lwcolumns}
+ \column{.29\linewidth}
+ \begin{block}{Title (\texttt{block})}
+ Content...
+ \end{block}
+
+ \column{.03333\linewidth}
+
+ \column{.3\linewidth}
+ \begin{alertblock}{Title (\texttt{alertblock})}
+ Content...
+ \end{alertblock}
+
+ \column{.03333\linewidth}
+
+ \column{.31\linewidth}
+ \begin{exampleblock}{Title (\texttt{exampleblock})}
+ Content...
+ \end{exampleblock}
+
+ \end{lwcolumns}
+ \end{itemize}
+\end{fragileframe}
+
+
+\part{Epilogue}
+\label{part:epilogue}
+
+\begin{frame}[plain]
+
+ \centering
+ \color{albi red}
+
+ \HUGE \textbf{Thank you for your time}
+
+ \vfill
+
+ \huge
+ Questions, comments, suggestions, bugs...\\
+ \href{mailto:paul.gaborit at gmail.com}{\faEnvelopeO~paul.gaborit at gmail.com}
+
+\end{frame}
+
+\end{document}
+
+
+% LocalWords: Albi beamer compactfootline footline compacttitle mylogo
+% LocalWords: partpage sectionpage pdf png jpg alertblock exampleblock
+% LocalWords: albi titlegraphic toc frametitle framesubtitle bg fg
+
+%%% Local Variables:
+%%% mode: LaTeX
+%%% TeX-master: t
+%%% LaTeX-verbatim-macros-with-braces-local: ("code")
+%%% End:
Property changes on: trunk/Master/texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/beamer-theme-albi/beamerthemeAlbi.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamer-theme-albi/beamerthemeAlbi.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/beamer-theme-albi/beamerthemeAlbi.sty 2025-04-09 19:59:10 UTC (rev 74899)
@@ -0,0 +1,946 @@
+% Copyright (C) 2016-2025 by Paul Gaborit
+% -----------------------------------
+%
+% 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>
+%
+% and version 1.3 or later is part of all distributions of LaTeX version
+% 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status “maintained”.
+%
+% The Current Maintainer of this work is Paul Gaborit.
+%
+\def\BTA at version{v1.5}
+\def\BTA at date{2025/04/07}
+\ProvidesPackage{beamerthemeAlbi}[\BTA at date\space\BTA at version\space Albi beamer theme]
+
+% required packages
+\RequirePackage{pgfopts}
+\RequirePackage{etoolbox}
+\RequirePackage{tikz}
+\usetikzlibrary{calc,backgrounds,fit}
+
+% albi keys use /BTA family
+\pgfkeys{/BTA/.is family}
+\NewDocumentCommand\Albikeys{m}{\pgfkeys{/BTA,#1}}
+
+% ------------------------------------------------------------
+% package options
+%------------------------------------------------------------
+
+\newbool{BTA at compact@footline}
+\newbool{BTA at compact@title}
+\newbool{BTA at partpage}
+\newbool{BTA at sectionpage}
+
+\Albikeys{
+ % option to get compact footline
+ compactfootline/.is choice,
+ compactfootline/.default=true,
+ compactfootline/true/.code={%
+ \booltrue{BTA at compact@footline}%
+ \setbeamerfont*{footline}{size=\Tiny}
+ },
+ compactfootline/false/.code={%
+ \boolfalse{BTA at compact@footline}%
+ \setbeamerfont*{footline}{size=\tiny}
+ },
+ % option to get compact title
+ compacttitle/.is choice,
+ compacttitle/.default=true,
+ compacttitle/true/.code={%
+ \booltrue{BTA at compact@title}%
+ \def\frameminheight{1.5em}
+ },
+ compacttitle/false/.code={%
+ \boolfalse{BTA at compact@title}%
+ \def\frameminheight{3em}
+ },
+ % options to add part pages and section pages
+ partpage/.is if={BTA at partpage},
+ sectionpage/.is if={BTA at sectionpage},
+ % compress headline
+ compress/.is if={beamer at compress},
+ % unknown options
+ .unknown/.code={
+ \PackageError{beamer-theme-albi}{Unknown option '\pgfkeyscurrentname'!}
+ },
+}
+
+\Albikeys{
+ % initial values
+ compactfootline=false,
+ compacttitle=false,
+ partpage=true,
+ sectionpage=true,
+}
+
+\ProcessPgfPackageOptions{/BTA}
+
+\Albikeys{
+ .unknown/.code={
+ \PackageError{beamer-theme-albi}{Unknown \string\AlbiKeys\space key '\pgfkeyscurrentname'!}
+ },
+}
+
+% ------------------------------------------------------------
+% useful tikz style
+% ------------------------------------------------------------
+\tikzset{
+ fix node/.style={
+ execute at begin node=\vphantom{Ég},
+ execute at end node=\vphantom{Ég},
+ },
+}
+
+% ------------------------------------------------------------
+% specific colors
+% ------------------------------------------------------------
+
+\mode
+<all>
+
+% specific colors
+\definecolor{albi blue}{RGB}{0,20,137}
+\definecolor{albi dark blue}{RGB}{12,35,64}
+\definecolor{albi black}{RGB}{60,60,60}
+\definecolor{albi gray}{RGB}{92,102,112}
+\definecolor{albi silver}{RGB}{217,225,226}
+\definecolor{albi orange}{RGB}{239,125,0}
+\definecolor{albi red}{RGB}{200,50,50}
+\definecolor{albi yellow}{RGB}{245,219,55}
+\definecolor{albi cyan}{RGB}{0,184,222}
+\definecolor{albi green}{RGB}{46,125,47}
+
+\mode
+<presentation>
+
+% beamer colors from specific colors
+\setbeamercolor{albi blue}{fg=albi blue,bg=white}
+\setbeamercolor{albi dark blue}{fg=albi dark blue,bg=white}
+\setbeamercolor{albi black}{fg=albi black,bg=white}
+\setbeamercolor{albi gray}{fg=albi gray,bg=white}
+\setbeamercolor{albi silver}{fg=albi silver,bg=black}
+\setbeamercolor{albi orange}{fg=albi orange,bg=white}
+\setbeamercolor{albi red}{fg=albi red,bg=white}
+\setbeamercolor{albi yellow}{fg=albi yellow,bg=black}
+\setbeamercolor{albi cyan}{fg=albi cyan,bg=white}
+\setbeamercolor{albi green}{fg=albi green,bg=white}
+
+% beamer colors of elements
+\setbeamercolor{structure}{fg=,bg=}
+\setbeamercolor{normal text}{fg=albi black,bg=white}
+\setbeamercolor{alerted text}{parent=normal text,fg=albi orange,bg=normal text.bg}
+
+\setbeamercolor{section number}{use=alerted text,fg=alerted text.bg,bg=alerted text.fg}
+\setbeamercolor{section number shaded}{use=section number,bg=section number.bg!50!section number.fg,fg=section number.fg}
+
+\setbeamercolor{section in toc shaded}{parent=alerted text,fg=alerted text.fg!50!alerted text.bg}
+\setbeamercolor{section in toc}{parent=alerted text}
+
+\setbeamercolor{frame number}{use=albi orange,fg=albi orange.fg}
+\setbeamercolor{frametitle}{fg=albi black,bg=albi silver}
+
+\setbeamercolor{item projected}{use=alerted text,fg=alerted text.bg,bg=alerted text.fg}
+\setbeamercolor{item}{use=alerted text,fg=alerted text.fg}
+\setbeamercolor{subitem}{use=alerted text,fg=alerted text.fg}
+\setbeamercolor{subsubitem}{use=alerted text,fg=alerted text.fg}
+
+\setbeamercolor{block title alerted}{use={normal text,alerted text},fg=alerted text.fg,bg=alerted text.fg!20!normal text.bg}
+\setbeamercolor{block body alerted}{use={normal text,alerted text},bg=alerted text.fg!10!normal text.bg,fg=alerted text.fg!50!normal text.fg}
+
+\setbeamercolor{block}{parent=normal text,fg=albi blue,bg=albi blue!20!normal text.bg}
+\setbeamercolor{block title}{parent=block}
+\setbeamercolor{block body}{use={normal text,block},fg=block.fg!50!normal text.fg,bg=block.bg!50!normal text.bg}
+
+\setbeamercolor{example}{parent=normal text,fg=albi green,bg=albi green!20!normal text.bg}
+\setbeamercolor{block title example}{parent=example}
+\setbeamercolor{block body example}{use={normal text,example},fg=example.fg!50!normal text.fg,bg=example.bg!50!normal text.bg}
+
+
+\setbeamercolor{button border}{fg=albi blue}
+\setbeamercolor{button}{fg=albi black,bg=albi gray}
+
+% ------------------------------------------------------------
+% inner theme
+% ------------------------------------------------------------
+\useinnertheme{rectangles}
+
+% ------------------------------------------------------------
+% new font size macros
+% ------------------------------------------------------------
+
+\Albikeys{
+ size/.cd,
+ % to define new size command
+ defsize/.code n args={3}{\NewDocumentCommand#1{}{\@setfontsize#1{#2}{#3}}},
+ % define \semitiny and \HUGE
+ size/.is choice,
+ size/size8.clo/.style={defsize={\semitiny}{5}{6},defsize={\HUGE}{22}{25}},
+ size/size9.clo/.style={defsize={\semitiny}{5.5}{6.5},defsize={\HUGE}{22}{25}},
+ size/size10.clo/.style={defsize={\semitiny}{6}{7},defsize={\HUGE}{32}{38}},
+ size/size11.clo/.style={defsize={\semitiny}{7}{8},defsize={\HUGE}{32}{38}},
+ size/size12.clo/.style={defsize={\semitiny}{7}{8},defsize={\HUGE}{32}{38}},
+ size/size14.clo/.style={defsize={\semitiny}{7}{8},defsize={\HUGE}{42}{50}},
+ size/size17.clo/.style={defsize={\semitiny}{9}{10},defsize={\HUGE}{48}{57}},
+ size/size20.clo/.style={defsize={\semitiny}{11}{12.5},defsize={\HUGE}{58}{65}},
+ size/.expanded=\beamer at size,
+ %
+}
+
+
+% ------------------------------------------------------------
+% misc
+% ------------------------------------------------------------
+%\setbeamerfont{alerted text}{series=\bfseries}
+\setbeamerfont{description item}{series=\mdseries}
+
+\defbeamertemplate{background canvas}{albi}{}
+
+% new option for short texts
+\define at key{beamerst}{raggedleft}[true]{\def\beamer at stalign{\raggedleft}}
+
+% ------------------------------------------------------------
+% main logo
+% ------------------------------------------------------------
+\setbeamertemplate{part logo}{}
+\setbeamertemplate{section logo}{}
+\setbeamertemplate{footline logo}{}
+\newbox\BTA at box
+
+\Albikeys{
+ @define generic logo lengths/.code={% logo at beamer@template
+ \ifcslength{BTA@#1 at height}{}{\ExpandArgs{e}\newlength{\csname BTA@#1 at height\endcsname}}
+ \ifcslength{BTA@#1 at depth}{}{\ExpandArgs{e}\newlength{\csname BTA@#1 at depth\endcsname}}
+ \ifcslength{BTA@#1 at width}{}{\ExpandArgs{e}\newlength{\csname BTA@#1 at width\endcsname}}
+ },
+ @set generic logo template/.code n args={3}{% logo beamer template, logo at beamer@template, material
+ \setbeamertemplate{#1}{#3}
+ \ifbeamertemplateempty{#1}{%
+ \setlength{\csname BTA@#2 at height\endcsname}{0pt}%
+ \setlength{\csname BTA@#2 at depth\endcsname}{0pt}%
+ \setlength{\csname BTA@#2 at width\endcsname}{0pt}%
+ }{
+ \savebox\BTA at box{\usebeamertemplate***{#1}}
+ \settoheight{\csname BTA@#2 at height\endcsname}{\usebox\BTA at box}%
+ \settodepth{\csname BTA@#2 at depth\endcsname}{\usebox\BTA at box}%
+ \settowidth{\csname BTA@#2 at width\endcsname}{\usebox\BTA at box}%
+ }%
+ },
+ @generic logo/.style n args={3}{% logo beamer template, logo at beamer@template, material
+ @define generic logo lengths={#2},
+ @set generic logo template={#1}{#2}{#3},
+ },
+ %
+ logo/.style={@generic logo={logo}{logo}{#1}},
+ part logo/.style={@generic logo={part logo}{part at logo}{#1}},
+ section logo/.style={@generic logo={section logo}{section at logo}{#1}},
+ footline logo/.style={@generic logo={footline logo}{footline at logo}{#1}},
+ %
+ all logos/.style={
+ logo={#1},
+ part logo={#1},
+ section logo={#1},
+ footline logo={#1},
+ },
+ % initial value
+ logo={},
+}
+
+\NewDocumentCommand\Albisetlogofilename{m}{\Albikeys{all logos={\includegraphics{#1}}}}
+
+\RenewDocumentCommand\logo{m}{\Albikeys{all logos={#1}}}
+
+% ------------------------------------------------------------
+% Other logos list
+% ------------------------------------------------------------
+\Albikeys{
+ other logos list/.code={%
+ \def\BTA at list@of at logos{#1}%
+ },
+ % initial value
+ other logos list={},
+}
+
+\NewDocumentCommand\Albiotherlogoslist{m}{\Albikeys{other logos list={#1}}}
+
+% ------------------------------------------------------------
+% footline
+% ------------------------------------------------------------
+
+\setbeamercolor{footline}{fg=black,bg=albi silver}
+\setbeamercolor{author in head/foot}{parent=footline}
+\setbeamercolor{date in head/foot}{parent=footline}
+\setbeamercolor{title in head/foot}{parent=footline}
+\setbeamercolor{institute in head/foot}{parent=footline}
+
+
+\setbeamerfont{author in head/foot}{parent={footline}}
+\setbeamerfont{title in head/foot}{parent={footline}}
+\setbeamerfont{institute in head/foot}{parent={footline}}
+\setbeamerfont{date in head/foot}{parent={footline}}
+
+\defbeamertemplate{footline}{albi}
+{%
+ \begin{tikzpicture}[remember picture]
+ \hypersetup{linkcolor=.}
+ \ifbool{BTA at compact@footline}{
+ \def\myheight{3.5mm}
+ \def\mylogosep{.25mm}
+ }{
+ \def\myheight{5mm}
+ \def\mylogosep{1mm}
+ }
+ % logo
+ \coordinate (left) at (\Gm at lmargin,0);
+ \ifbeamertemplateempty{footline logo}{}{
+ \node[inner ysep=\mylogosep,inner xsep=0,anchor=west] at (left) (logo)
+ {\resizebox*{!}{\myheight}{\usebeamertemplate{footline logo}}};
+ \coordinate (left) at ([xshift=1mm]logo.east);
+ }
+ % other logos
+ \coordinate (right) at (\paperwidth-\Gm at rmargin,0);
+ \ifx\BTA at list@of at logos\@empty\else
+ % insert other logos
+ \foreach \image/\wid [count=\logn] in \BTA at list@of at logos {%
+ \node[inner sep=0,anchor=east] at (right) (logosup)
+ {\includegraphics[width=\wid]{\image}};
+ \coordinate (right) at ([xshift=-1mm]logosup.west);
+ }
+ \fi
+ %
+ \path let
+ \p1 = (left),
+ \p2 = (right),
+ \n1 = {(\x2 - \x1)*.5 - 1mm},
+ in
+ % move to
+ (left)
+ node[node font=\usebeamerfont*{title in head/foot},anchor=west,text width=\n1,align=flush left,inner sep=0,fix node]
+ (title and date)
+ {%
+ \usebeamercolor[fg]{title in head/foot}\usebeamerfont*{title in head/foot}\insertshorttitle[width=\n1]\\%
+ \usebeamercolor[fg]{date in head/foot}\usebeamerfont*{date in head/foot}\insertshortdate[width=\n1]%
+ }
+ % move to
+ (right)
+ node[node font=\usebeamerfont*{author in head/foot},anchor=east,text width=\n1,align=flush right,inner sep=0,fix node]
+ (author and institute)
+ {%
+ \usebeamercolor[fg]{author in head/foot}\usebeamerfont*{author in head/foot}\insertshortauthor[raggedleft,width=\n1]\\%
+ \usebeamercolor[fg]{institute in head/foot}\usebeamerfont*{institute in head/foot}\insertshortinstitute[raggedleft,width=\n1]%
+ };
+ \begin{pgfonlayer}{background}
+ \coordinate (a) at (0,0);
+ \coordinate (b) at (\paperwidth,0);
+ \node[fit=(current bounding box)(a)(b),inner sep=0](bb){};
+ \begin{scope}[overlay]
+ \usebeamercolor{footline}%
+ \fill [fill=bg] (bb.south west) rectangle (bb.north east);
+ \draw[line width=.4pt,draw=bg] (bb.north west) -- (bb.north east);
+ \end{scope}
+ \end{pgfonlayer}
+ \end{tikzpicture}%
+}
+
+% ------------------------------------------------------------
+% headline
+% ------------------------------------------------------------
+
+\setbeamercolor{section in head/foot}{use=albi dark blue,fg=albi dark blue.bg,bg=albi dark blue.fg}
+\setbeamercolor{subsection in head/foot}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\setbeamercolor{separator in head/foot}{use={section in head/foot,subsection in head/foot},fg=subsection in head/foot.bg,bg=section in head/foot.bg}
+
+\setbeamerfont{section in head/foot}{parent={headline},series=\bfseries}
+\setbeamerfont{subsection in head/foot}{parent={headline},series=\bfseries}
+
+\defbeamertemplate{section in head/foot}{albi}{\hfill\insertsectionhead}
+\defbeamertemplate{section in head/foot shaded}{albi}{\hfill\color{fg!50!bg}\insertsectionhead}
+
+\defbeamertemplate{section in head/foot}{albi with number}{\hfill\insertsectionheadnumber~\insertsectionhead}
+\defbeamertemplate{section in head/foot shaded}{albi with number}{\hfill\color{fg!50!bg}\insertsectionheadnumber~\insertsectionhead}
+
+\defbeamertemplate{subsection in head/foot}{albi}{\insertsubsectionhead\hfill}
+\defbeamertemplate{subsection in head/foot shaded}{albi}{\color{fg!50!bg}\insertsubsectionhead\hfill}
+
+\defbeamertemplate{subsection in head/foot}{albi with number}{\insertsectionheadnumber.\insertsubsectionheadnumber~\insertsubsectionhead\hfill}
+\defbeamertemplate{subsection in head/foot shaded}{albi with number}{\color{fg!50!bg}\insertsectionheadnumber.\insertsubsectionheadnumber~\insertsubsectionhead\hfill}
+
+\defbeamertemplate{headline}{albi}
+{%
+ \hypersetup{linkcolor=.}
+ \ifbeamer at compress%
+ % compressed headline (one line)
+ \leavevmode%
+ \ifnum\ifnum\beamer at subsectionmax>0 1\else\ifnum\beamer at sectionmax>0 1\else0\fi\fi=1\relax%
+ % current section
+ \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{section in head/foot}%
+ \hfill\bfseries\insertsection\hspace*{1mm}%
+ \end{beamercolorbox}%
+ % current subsection
+ \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{subsection in head/foot}%
+ \hspace*{1mm}\bfseries\insertsubsection\hfill
+ \end{beamercolorbox}%
+ \fi%
+ \else%
+ % default headline
+ \leavevmode%
+ \@tempdimb=2.5375ex%
+ \ifnum\beamer at subsectionmax<\beamer at sectionmax%
+ \multiply\@tempdimb by\beamer at sectionmax%
+ \else%
+ \multiply\@tempdimb by\beamer at subsectionmax%
+ \fi%
+ \ifdim\@tempdimb>0pt%
+ \advance\@tempdimb by 1.825ex%
+ \@tempdimc=\dimexpr.5\paperwidth-.5\@tempdimb\relax
+ % sections
+ \begin{beamercolorbox}[wd=\@tempdimc,ht=\@tempdimb]{section in head/foot}%
+ \vbox to\@tempdimb{\vfil\insertsectionnavigation{\@tempdimc}\vfil}%
+ \end{beamercolorbox}%
+ % separator
+ \begin{beamercolorbox}[wd=\@tempdimb,ht=\@tempdimb]{separator in head/foot}%
+ \usebeamercolor{separator in head/foot}%
+ \tikz[baseline=0,line width=0,line join=bevel]{
+ \path[draw=bg,fill=bg] (0,0) |- (\@tempdimb,\@tempdimb) -- cycle;
+ \path[draw=fg,fill=fg] (0,0) -| (\@tempdimb,\@tempdimb) -- cycle;
+ }%
+ \end{beamercolorbox}%
+ % subsections
+ \begin{beamercolorbox}[wd=\@tempdimc,ht=\@tempdimb]{subsection in head/foot}%
+ \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{\@tempdimc}\vfil}%
+ \end{beamercolorbox}%
+ \fi%
+ \fi
+}
+
+% ------------------------------------------------------------
+% toc
+% ------------------------------------------------------------
+
+\setbeamerfont{section in toc}{size=\normalsize}
+\setbeamerfont{subsection in toc}{size=\footnotesize}
+
+\defbeamertemplate{section in toc}{albi}
+{%
+ \leavevmode%
+ \hypersetup{linkcolor=.}%
+ \leftskip=\dimexpr 4mm + 5mm\relax%
+ \llap{%
+ \usebeamerfont*{section number projected}%
+ \usebeamercolor[bg]{section number}%
+ \vrule width 4mm height 1.85ex depth .4ex%
+ \hskip-4mm%
+ \hbox to 4mm{\hfil\color{fg}\inserttocsectionnumber\hfil}%
+ %\hskip-2mm%
+ \hspace*{3mm}%
+ }%
+ \usebeamerfont*{section in toc}%
+ \usebeamercolor{section in toc}%
+ \vphantom{\rule{0em}{1em}}%
+ \inserttocsection\par%
+}
+
+\defbeamertemplate{section in toc shaded}{albi}
+{%
+ \leavevmode%
+ \hypersetup{linkcolor=.}%
+ \leftskip=\dimexpr 4mm + 5mm\relax%
+ \llap{%
+ \usebeamerfont*{section number projected}%
+ \usebeamercolor[bg]{section number shaded}%
+ \vrule width 4mm height 1.85ex depth .4ex%
+ \hskip-4mm%
+ \hbox to 4mm{\hfil\color{fg}\inserttocsectionnumber\hfil}%
+ %\hskip-2mm%
+ \hspace*{3mm}%
+ }%
+ \usebeamerfont*{section in toc shaded}%
+ \usebeamercolor{section in toc shaded}%
+ \vphantom{\rule{0em}{1em}}%
+ %\smallskip
+ \inserttocsection\par%
+}
+
+\defbeamertemplate{subsection in toc}{albi}
+{%
+ \leavevmode%
+ \hypersetup{linkcolor=.}%
+ \leftskip=\dimexpr 4mm + 5mm\relax%
+ \llap{%
+ \usebeamerfont*{subsection number projected}%
+ \usebeamercolor[bg]{section number}%
+ \hspace*{3mm}%
+ \vrule width 1mm height 1ex depth 0ex%
+ %\hskip-2mm%
+ \hspace*{3mm}%
+ }%
+ \usebeamerfont*{subsection in toc}%
+ \usebeamercolor{subsection in toc}%
+ \vphantom{\rule{0em}{1em}}%
+ \inserttocsubsection\par%
+}
+
+% ------------------------------------------------------------
+% itemize, enumerate
+% ------------------------------------------------------------
+
+\setbeamerfont{item projected}{size=\scriptsize}
+
+\defbeamertemplate{itemize item}{albi}
+{\raisebox{.2ex}{\hbox{\vrule width 1ex height 1ex}}}
+
+\defbeamertemplate{itemize subitem}{albi}
+{\small\raisebox{.2ex}{\hbox{\vrule width 1ex height 1ex}}}
+
+\defbeamertemplate{itemize subsubitem}{albi}
+{\small\raisebox{.2ex}{\hbox{\vrule width 1ex height 1ex}}}
+
+\defbeamertemplate{enumerate item}{albi}
+{%
+ \raisebox{.2ex}{\hbox{%
+ \usebeamerfont*{item projected}%
+ \usebeamercolor[bg]{item projected}%
+ \vrule width2.25ex height1.85ex depth.4ex%
+ \hskip-2.25ex%
+ \hbox to2.25ex{%
+ \hfil%
+ \color{fg}\insertenumlabel%
+ \hfil}%
+ }}%
+}
+
+\defbeamertemplate{enumerate subitem}{albi}
+{%
+ \raisebox{.2ex}{\hbox{%
+ \usebeamerfont*{subitem projected}%
+ \usebeamercolor[bg]{subitem projected}%
+ \vrule width2.25ex height1.85ex depth.4ex%
+ \hskip-2.25ex%
+ \hbox to2.25ex{%
+ \hfil%
+ \color{fg}\insertsubenumlabel%
+ \hfil}%
+ }}%
+}
+
+\defbeamertemplate{enumerate subsubitem}{albi}
+{%
+ \raisebox{.2ex}{\hbox{%
+ \usebeamerfont*{subsubitem projected}%
+ \usebeamercolor[bg]{subsubitem projected}%
+ \vrule width2.25ex height1.85ex depth.4ex%
+ \hskip-2.25ex%
+ \hbox to2.25ex{%
+ \hfil%
+ \color{fg}\insertsubsubenumlabel%
+ \hfil}%
+ }}%
+}
+
+\defbeamertemplate{enumerate mini template}{albi}
+{%
+ \raisebox{.2ex}{\hbox{%
+ \usebeamerfont*{\beameritemnestingprefix item projected}%
+ \usebeamercolor[bg]{\beameritemnestingprefix item projected}%
+ \vrule width2.25ex height1.85ex depth.4ex%
+ \hskip-2.25ex%
+ \hbox to2.25ex{%
+ \hfil%
+ \color{fg}\insertenumlabel%
+ \hfil}%
+ }}%
+}
+
+% ------------------------------------------------------------
+% frame number
+% ------------------------------------------------------------
+\def\insertslidenumberifuseful{\ifnum\insertframestartpage=\insertframeendpage\relax\else\@alph{\insertslidenumber}\fi}
+
+\defbeamertemplate{frame number}{none}{}
+
+\defbeamertemplate{frame number}{frame}{%
+ \usebeamerfont{frame number}\insertframenumber%
+}
+
+\defbeamertemplate{frame number}{frame with total}{%
+ \usebeamerfont{frame number}\insertframenumber%
+ \usebeamerfont{slide number}/\inserttotalframenumber%
+}
+
+\defbeamertemplate{frame number}{frame+slide}{%
+ \usebeamerfont{frame number}\insertframenumber%
+ \usebeamerfont{slide number}\insertslidenumberifuseful%
+}
+
+\defbeamertemplate{frame number}{frame+slide with total}{%
+ \usebeamerfont{frame number}\insertframenumber%
+ \usebeamerfont{slide number}\insertslidenumberifuseful/\inserttotalframenumber%
+}
+
+\setbeamerfont{frame number}{series=\bfseries,size=\large}
+\setbeamerfont{slide number}{series=\bfseries,size=\small}
+
+% ------------------------------------------------------------
+% frame title
+% ------------------------------------------------------------
+
+\setbeamerfont{frametitle}{size=\normalsize,series=\bfseries}
+\setbeamerfont{framesubtitle}{size=\small,series=\bfseries}
+
+\defbeamertemplate{frametitle}{albi}
+{%
+ \hypersetup{linkcolor=.}%
+ \nointerlineskip%
+ \noindent
+ \begin{tikzpicture}[outer sep=0,inner sep=0]
+ \usebeamerfont{frametitle}\usebeamercolor{frametitle}
+ \tikzset{%
+ frame number/.style={
+ minimum height=\frameminheight,fill=bg,align=flush right,anchor=east,line width=0,
+ },
+ frame title/.style={
+ minimum height=\frameminheight,anchor=east,text=fg,line width=0,inner sep=0,inner ysep=.2em,
+ line width=0,text width=\n2,align=flush
+ left,
+ },
+ }
+
+ \node[frame number] (framenumber) at (\paperwidth-\Gm at rmargin,0)
+ {\usebeamercolor[fg]{frame number}\usebeamertemplate{frame number}};
+
+ \path let
+ \p1 = (framenumber.west),
+ \p2 = (framenumber.east),
+ \n1 = {\paperwidth - \Gm at lmargin - \Gm at rmargin - (\x2 - \x1)},
+ \n2 = {\n1 - .5em}
+ in ([xshift=-.5em]\p1) node[frame title]
+ {%
+ \usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}%
+ \vphantom{É}\insertframetitle\vphantom{g}\par%
+ \ifx\insertframesubtitle\@empty%
+ \else%
+ % \vskip-.5em%
+ \usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}%
+ \leavevmode\vphantom{É}\insertframesubtitle\vphantom{g}\par%
+ \fi%
+ };
+ \begin{pgfonlayer}{background}
+ \begin{scope}[overlay]
+ \coordinate (a) at (0,0);
+ \coordinate (b) at (\paperwidth,0);
+ \node[fit=(current bounding box)(a)(b),inner sep=0](bb){};
+ \fill [fill=bg]
+ (bb.south west) rectangle (bb.north east);
+ \end{scope}
+ \end{pgfonlayer}
+ \end{tikzpicture}%
+}
+
+% ------------------------------------------------------------
+% title page
+% ------------------------------------------------------------
+
+\setbeamercolor{albi title page.title}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\setbeamercolor{albi title page.author}{use=albi cyan,fg=albi cyan.bg,bg=albi cyan.fg}
+\setbeamercolor{albi title page.empty}{use=albi dark blue,fg=albi dark blue.bg,bg=albi dark blue.fg}
+\setbeamercolor{albi title page.logo}{fg=black,bg=white}
+
+\setbeamerfont{title}{series=\bfseries,size=\LARGE}
+\setbeamerfont{author}{series=\bfseries,size=\large}
+
+\defbeamertemplate{title page}{albi}
+{%
+ \begin{tikzpicture}[overlay,remember picture,shift={(current
+ page.north west)}]
+
+ \IfPackageLoadedTF{babel}{\ifbabelshorthand{!}{\shorthandoff*{!}}{}}{}
+
+ % coordinates
+ \path
+ coordinate (p1) at ({.8*\paperheight},0)
+ %coordinate (p2) at ({\paperwidth-.4*\paperheight},{-1*\paperheight})
+ coordinate (p2) at ({.9*\paperheight},{-1*\paperheight})
+ coordinate (p3) at (0,{-.8*\paperheight})
+ coordinate (p4) at ($(p1)!(p2)!(p3)$)
+ coordinate (se) at (current page.south east)
+ coordinate (p5) at ($(se)+([rotate=90]$(se)-(p2)$)$)
+ coordinate (p6) at ($(p1)!.6!(p4)$)
+ coordinate (p7) at (p6 |- p4)
+ ;
+
+ % triangles
+ \usebeamercolor{albi title page.title}%
+ \fill[fill=bg,line width=0] (p1) -- (p4) -- (p2) -- (p5) -- (current page.north east) -- cycle;
+ \usebeamercolor{albi title page.author}%
+ \fill[fill=bg,line width=0] (p4) -- (p3) -- (current page.south west) -- (p2) -- cycle;
+ \usebeamercolor{albi title page.empty}%
+ \fill[fill=bg,line width=0] (p2) -- (p5) -- (current page.south east) -- cycle;
+ \usebeamercolor{albi title page.logo}%
+ \fill[fill=bg,line width=0] (p1) -- (p3) -- (current page.north west) -- cycle;
+
+ % logo
+ \hypersetup{linkcolor=.}%
+ \ifbeamertemplateempty{logo}{}{
+ % le logo
+ \edef\BTA at logo@ratio{
+ \fpeval{(0.55 * \paperheight)/(\BTA at logo@width +\BTA at logo@depth + \BTA at logo@height)}}
+ \node[anchor=north west,inner sep=0] at
+ ([shift={(.1*\paperheight,-.1*\paperheight)}] 0,0)
+ (logo)
+ {\scalebox{\BTA at logo@ratio}{\insertlogo}};
+ }
+
+ % title and subtitle
+ \usebeamercolor{albi title page.title}
+ \path let
+ \p6 = (p6),
+ \n1 = {\paperwidth - \x6 - \Gm at rmargin},
+ \n2 = {\n1 - 1em}
+ in
+ (p7) node [anchor=west,inner sep=.5em,text width=\n2,align=flush left,text=albi title page.title.fg]
+ {%
+ \usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par%
+ \ifx\insertsubtitle\@empty%
+ \else%
+ \vskip0.5em%
+ {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
+ \fi%
+ };
+
+ % author, institute, date and titlegraphic
+ \usebeamercolor{albi title page.author}
+ \path let
+ \p7 = ($(p3)!{sqrt(2)*\Gm at lmargin}!(p4)$),
+ \p4 = (p4),
+ \p8 = ({\x4 + (\x4 - \x7)},\y7),
+ \n1 = {(\x8 - \x7)},
+ \n2 = {\n1}
+ in
+ (\Gm at lmargin,{-\paperheight+\Gm at lmargin})
+ node [anchor=south west,inner sep=0,text width=\n2,align=flush left,text=albi title page.author.fg] (author institute)
+ {%
+ \usebeamerfont*{author}\usebeamercolor[fg]{author}\insertauthor\par%
+ \usebeamerfont*{institute}\usebeamercolor[fg]{institute}\insertinstitute\par%
+ \usebeamerfont*{date}\usebeamercolor[fg]{date}\insertdate\par%
+ \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par
+ };
+
+ \end{tikzpicture}%
+}
+
+% ------------------------------------------------------------
+% customize part name and number with babel and french
+% ------------------------------------------------------------
+\newcommand\insertpartnameandnumber{%
+ \IfPackageLoadedTF{babel}{%
+ \iflanguage{french}{\partname}{\partname~\insertromanpartnumber}%
+ }{%
+ \partname~\insertromanpartnumber%
+ }%
+}
+
+% ------------------------------------------------------------
+% part page
+% ------------------------------------------------------------
+
+\setbeamercolor{albi part page.title}{use=albi cyan,fg=albi cyan.bg,bg=albi cyan.fg}
+\setbeamercolor{albi part page.empty}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\setbeamercolor{albi part page.logo}{fg=black,bg=white}
+
+\setbeamerfont{part name in part page}{parent=part name}
+\setbeamerfont{part title in part page}{parent=part title}
+
+\defbeamertemplate{part page}{albi}
+{%
+ \begin{tikzpicture}[overlay,remember picture,shift={(current page.north west)}]
+ \hypersetup{linkcolor=.}%
+ \IfPackageLoadedTF{babel}{\ifbabelshorthand{!}{\shorthandoff*{!}}{}}{}
+
+ % coordinates
+ \path
+ coordinate (p1) at ({.8*\paperheight},{-1*\paperheight})
+ coordinate (p2) at (0,{-1*\paperheight + .8*\paperheight})
+ coordinate (p3) at ({.8*\paperheight},0)
+ coordinate (p4) at ($(p1)!(p3)!(p2)$)
+ coordinate (p5) at ($(p4)!.5!(p3)$)
+ coordinate (p6) at (p5 |- p4)
+ ;
+
+ % triangles
+ \usebeamercolor{albi part page.title}%
+ \fill[fill=bg,line width=0] (current page.south east) -- (p1) -- (p4) -- (p3) -| cycle;
+ \usebeamercolor{albi part page.empty}%
+ \fill[fill=bg,line width=0] (current page.north west) -- (p3) -- (p4) -- (p2) -- cycle;
+ \usebeamercolor{albi part page.logo}%
+ \fill[fill=bg,line width=0] (current page.south west) -- (p2) -- (p1) -- cycle;
+
+ % part title
+ \path let
+ \p6 = (p6),
+ \n1 = {\paperwidth - \x6 - \Gm at rmargin},
+ \n2 = {\n1 - 1em}
+ in (p6)
+ node[anchor=west,text width=\n2,inner sep=.5em,align=flush right] {%
+ \usebeamercolor[fg]{albi part page.title}%
+ %
+ \usebeamerfont*{part name in part page}%
+ \usebeamercolor[fg]{part name in part page}%
+ \insertpartnameandnumber%
+ \par%
+ %
+ \usebeamerfont*{part title in part page}%
+ \usebeamercolor[fg]{part title in part page}%
+ \insertpart%
+ \par%
+ };
+
+ % logo
+ \ifbeamertemplateempty{part logo}{}{
+ \edef\BTA at part@logo at ratio{%
+ \fpeval{(0.55 * \paperheight)/(\BTA at part@logo at width + \BTA at part@logo at depth + \BTA at part@logo at height)}}
+ \node[at={(current page.south west)},shift={(.1*\paperheight,.1*\paperheight)},
+ anchor=south west,inner sep=0]
+ {\scalebox{\BTA at part@logo at ratio}{\usebeamertemplate***{part logo}}};
+ }
+ \end{tikzpicture}
+}
+
+% ------------------------------------------------------------
+% section page
+% ------------------------------------------------------------
+
+\setbeamercolor{albi section page.toc}{parent=normal text}
+\setbeamercolor{albi section page.part}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
+\setbeamercolor{albi section page.logo}{use=albi silver,fg=albi silver.bg,bg=albi silver.fg}
+
+\setbeamerfont{part name in section page}{parent=part name,size=\normalsize}
+\setbeamerfont{part title in section page}{parent=part title,size=\normalsize}
+
+\defbeamertemplate{section page}{albi}
+{%
+ \begin{tikzpicture}[overlay,remember picture,shift={(current page.north west)}]
+ \hypersetup{linkcolor=.}%
+ \IfPackageLoadedTF{babel}{\ifbabelshorthand{!}{\shorthandoff*{!}}{}}{}
+ \path
+ coordinate (p1) at ({.8*\paperheight},{-1*\paperheight})
+ coordinate (p2) at (0,{-1*\paperheight + .8*\paperheight})
+ coordinate (p3) at ({.8*\paperheight},0)
+ coordinate (p4) at ($(p1)!(p3)!(p2)$)
+ coordinate (p5) at (0,{-.8*\paperheight})
+ ;
+
+ % triangles
+ \usebeamercolor{albi section page.logo}
+ \fill[fill=bg,line width=0] (p1) -- (p4) -- (p5) |- cycle;
+ \usebeamercolor{albi section page.part}
+ \fill[fill=bg,line width=0] (p5) -- (p3) -| cycle;
+ \usebeamercolor{albi section page.toc}
+ \fill[fill=bg,line width=0] (current page.north east) -- (p3) -- (p4) -- (p1) -| cycle;
+
+ % logo
+ \ifbeamertemplateempty{section logo}{}{
+ \edef\BTA at section@logo at ratioi{
+ \fpeval{(0.55 * \paperheight)/(\BTA at section@logo at width + \BTA at section@logo at depth + \BTA at section@logo at height)}}
+ \edef\BTA at section@logo at ratioii{
+ \fpeval{(0.15 * \paperheight)/(\BTA at section@logo at depth + \BTA at section@logo at height)}}
+ \edef\BTA at section@logo at ratio{
+ \fpeval{\BTA at section@logo at ratioi < \BTA at section@logo at ratioii
+ ? \BTA at section@logo at ratioi : \BTA at section@logo at ratioii}}
+ \node[at={(current page.south west)},shift={(.1*\paperheight,.1*\paperheight)},anchor=south west,inner sep=0]
+ {\scalebox{\BTA at section@logo at ratio}{\usebeamertemplate***{section logo}}};
+ }
+
+ % part title
+ \ifnum\c at part>0\relax
+ \node[at={(current page.north west)},shift={(.1*\paperheight,-.1*\paperheight)},
+ anchor=north west,inner sep=0,text=white,text width=.3\paperwidth,align=flush left]
+ {%
+ \usebeamercolor[fg]{albi section page.part}
+ \usebeamerfont{part name in section page}%
+ \usebeamercolor[fg]{part name in section page}%
+ \insertpartnameandnumber%
+ \par%
+ \usebeamerfont{part title in section page}%
+ \usebeamercolor[fg]{part title in section page}%
+ \insertpart%
+ \par%
+ };
+ \fi
+ \end{tikzpicture}
+
+ % toc (with current section open)
+ \begin{columns}
+ \usebeamercolor[fg]{albi section page.toc}%
+ \usebeamerfont{albi section page.toc}%
+ \hypersetup{linkcolor=.}%
+ \column{.8\paperheight}
+ \column{\dimexpr\paperwidth-.8\paperheight-\Gm at rmargin}
+ \tableofcontents[currentsection,hideothersubsections,subsubsectionstyle=hide]%
+ \column{\Gm at rmargin}
+ \end{columns}
+}
+
+% ------------------------------------------------------------
+% activate all templates
+% ------------------------------------------------------------
+
+\setbeamertemplate{part page}[albi]
+\setbeamertemplate{section page}[albi]
+
+\setbeamertemplate{section in head/foot}[albi]
+\setbeamertemplate{section in head/foot shaded}[albi]
+\setbeamertemplate{subsection in head/foot}[albi]
+\setbeamertemplate{subsection in head/foot shaded}[albi]
+\setbeamertemplate{headline}[albi]
+
+\setbeamertemplate{footline}[albi]
+
+\setbeamertemplate{section in toc}[albi]
+\setbeamertemplate{section in toc shaded}[albi]
+\setbeamertemplate{subsection in toc}[albi]
+
+\setbeamertemplate{background canvas}[albi]
+
+\setbeamertemplate{title page}[albi]
+
+\setbeamertemplate{frametitle}[albi]
+
+\setbeamertemplate{navigation symbols}{}
+
+\setbeamertemplate{sidebar right}{}
+
+\setbeamertemplate{itemize item}[albi]
+\setbeamertemplate{itemize subitem}[albi]
+\setbeamertemplate{itemize subsubitem}[albi]
+
+\setbeamertemplate{enumerate item}[albi]
+\setbeamertemplate{enumerate subitem}[albi]
+\setbeamertemplate{enumerate subsubitem}[albi]
+
+\setbeamertemplate{enumerate mini template}[albi]
+
+%\setbeamertemplate{frame number}[none]
+%\setbeamertemplate{frame number}[frame]
+%\setbeamertemplate{frame number}[frame with total]
+%\setbeamertemplate{frame number}[frame+slide]
+\setbeamertemplate{frame number}[frame+slide with total]
+
+\setbeamercovered{transparent=10}
+
+\setbeamersize{text margin left=.1\paperheight,text margin right=.1\paperheight}
+
+% ------------------------------------------------------------
+% install part pages and section pages
+% ------------------------------------------------------------
+\AtBeginPart{\ifbool{BTA at partpage}{\frame[plain]{\partpage}}{}}
+\AtBeginSection{\ifbool{BTA at sectionpage}{\frame[plain]{\usebeamertemplate*{section page}}}{}}
+
+\mode
+<all>
+
Property changes on: trunk/Master/texmf-dist/tex/latex/beamer-theme-albi/beamerthemeAlbi.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2025-04-09 19:58:28 UTC (rev 74898)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2025-04-09 19:59:10 UTC (rev 74899)
@@ -94,7 +94,8 @@
baskervaldadf baskervaldx baskervillef
basque-book basque-date bath-bst
bbcard bbding bbm bbm-macros bbold bboldx bbold-type1 bchart bclogo
- beamer beamer2thesis beamer-fuberlin beamer-rl beamer-tut-pt beamer-verona
+ beamer beamer2thesis beamer-fuberlin beamer-rl
+ beamer-theme-albi beamer-tut-pt beamer-verona
beamerappendixnote beameraudience beamerauxtheme
beamercolorthemeowl beamerdarkthemes beamerposter
beamersubframe beamerswitch beamertheme-arguelles beamertheme-cuerna
Added: trunk/Master/tlpkg/tlpsrc/beamer-theme-albi.tlpsrc
===================================================================
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2025-04-09 19:58:28 UTC (rev 74898)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2025-04-09 19:59:10 UTC (rev 74899)
@@ -77,6 +77,7 @@
depend basicarith
depend bchart
depend beamer-rl
+depend beamer-theme-albi
depend beamer2thesis
depend beamerappendixnote
depend beameraudience
More information about the tex-live-commits
mailing list.