Skip to content
Snippets Groups Projects
Unverified Commit c71a0d9a authored by w2ak's avatar w2ak
Browse files

releasing v2.3.0

parents 0858f801 8dfa4386
No related branches found
No related tags found
No related merge requests found
# 2 # 2
## 2.3
### 2.3.0
* Aspect ratio 4:3 now available (default is still 16:9 and advised)
* Section title in the header
## 2.2 ## 2.2
### 2.2.1 ### 2.2.1
......
...@@ -4,8 +4,12 @@ cd "$(readlink -m "$0/../../")" # chdir to the root directory of the package arc ...@@ -4,8 +4,12 @@ cd "$(readlink -m "$0/../../")" # chdir to the root directory of the package arc
TEXMFLOCAL="$(kpsewhich -var-value TEXMFLOCAL)" TEXMFLOCAL="$(kpsewhich -var-value TEXMFLOCAL)"
PACKAGE="$TEXMFLOCAL/tex/latex/beamerx/" PACKAGE="$TEXMFLOCAL/tex/latex/beamerx/"
FONTS="$TEXMFLOCAL/fonts/truetype/" FONTS="$TEXMFLOCAL/fonts/truetype/"
PERMS="Dg+s,ug+w,o-w,+X" PERMS="Dg+s,ug+w,o-w,+X,+r"
mkdir -p "$PACKAGE" "$FONTS" mkdir -p "$PACKAGE" "$FONTS"
printf "%s> Installing source files...%s\n" "$(tput setaf 2)" "$(tput sgr0)"
rsync --recursive --exclude-from=install/.exclude --delete-excluded --chmod=$PERMS source/ $PACKAGE/ rsync --recursive --exclude-from=install/.exclude --delete-excluded --chmod=$PERMS source/ $PACKAGE/
printf "%s> Installing font files...%s\n" "$(tput setaf 2)" "$(tput sgr0)"
rsync --recursive --update --chmod=$PERMS fonts/ $FONTS/ rsync --recursive --update --chmod=$PERMS fonts/ $FONTS/
texhash || mktexlsr printf "%s> Updating database...%s\n" "$(tput setaf 2)" "$(tput sgr0)"
{ texhash || mktexlsr; } >/dev/null
printf "%sDONE !%s\n" "$(tput setaf 2)" "$(tput sgr0)"
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerx}[2017/01/26 v2.2.1, standard scientific slideshows layout for Ecole polytechnique (Palaiseau,France).] \ProvidesPackage{beamerx}[2017/01/31 v2.3.0, standard scientific slideshows layout for Ecole polytechnique (Palaiseau,France).]
%======================================================================= %=======================================================================
% Declaration des options % Declaration des options
...@@ -11,9 +11,12 @@ ...@@ -11,9 +11,12 @@
} }
\DeclareOption{simplehead}{% \DeclareOption{simplehead}{%
\AtEndOfPackage{% \AtEndOfPackage{%
\renewcommand{\resetbackgroundcanvas}{% \renewcommand{\includebeamerxarmes}{}%
\setbeamertemplate{background canvas}{} }
} }
\DeclareOption{notochead}{%
\AtEndOfPackage{%
\renewcommand{\includebeamerxsection}{}%
} }
} }
\DeclareOption{simplebloc}{% \DeclareOption{simplebloc}{%
...@@ -21,6 +24,11 @@ ...@@ -21,6 +24,11 @@
\renewcommand{\beamerxblockheader}{} \renewcommand{\beamerxblockheader}{}
} }
} }
\DeclareOption{oldscreen}{%
\AtEndOfPackage{%
\oldscreen{}\applyscreen{}%
}
}
\ProcessOptions* \ProcessOptions*
%======================================================================= %=======================================================================
% Package requis % Package requis
...@@ -62,6 +70,31 @@ ...@@ -62,6 +70,31 @@
} }
\fi \fi
%======================================================================= %=======================================================================
% Definition des longueurs
%=======================================================================
\newcounter{bmrX}\newcounter{bmrY}
\newcounter{bmrW}\newcounter{bmrH}
\setcounter{bmrW}{320}
\newcounter{bmrXmargin}
\setcounter{bmrXmargin}{12}
\newlength\beamerxmargin%
\setlength\beamerxmargin{\thebmrXmargin\paperwidth/\thebmrW} % 6 units
\newcounter{bmrTPmargin}
\setcounter{bmrTPmargin}{6}
\newcommand\oldscreen{% 4:3 ratio
\setcounter{bmrH}{240}
}
\newcommand\newscreen{% 16:9 ratio
\setcounter{bmrH}{180}
}
\newcommand\applyscreen{%
}
\newscreen{}\applyscreen{}
%=======================================================================
% Definition des couleurs % Definition des couleurs
%======================================================================= %=======================================================================
\definecolor{bleu303}{RGB}{0,62,92} \definecolor{bleu303}{RGB}{0,62,92}
...@@ -236,6 +269,10 @@ ...@@ -236,6 +269,10 @@
% Definition du theme beamer % Definition du theme beamer
%======================================================================= %=======================================================================
%---------- Parametres generaux %---------- Parametres generaux
\newcommand\defaultheadcolor{%
\colorlet{xhdcolor}{bleu303}%
}
\defaultheadcolor%
\newcommand\resetcolors{% \newcommand\resetcolors{%
\colorlet{xfgcolor}{black}% \colorlet{xfgcolor}{black}%
\colorlet{xbgcolor}{white}% \colorlet{xbgcolor}{white}%
...@@ -247,8 +284,6 @@ ...@@ -247,8 +284,6 @@
} }
\resetcolors% \resetcolors%
\newlength\beamerxmargin%
\setlength\beamerxmargin{\textheight/15} % 6 units
\setbeamercovered{transparent=40} \setbeamercovered{transparent=40}
\setlength\fboxsep{1ex} \setlength\fboxsep{1ex}
...@@ -287,13 +322,33 @@ ...@@ -287,13 +322,33 @@
} }
} }
\newcommand\includebeamerxarmes{\color{gris428}\includegraphics[height=\paperheight/6,keepaspectratio]{beamerxarmes}}
\newcommand\insertsectionHEAD{\expandafter\insertsectionHEADaux\insertsectionhead}
\newcommand\insertsectionHEADaux[3]{#1{#2}{\MakeUppercase{#3}}}
\newcommand\includebeamerxsection{%
\ifnum \thesection>0
{%
\renewcommand\baselinestretch{.5}\color{xhdcolor}\rule{.8\textwidth}{.5ex}\\[-2ex]
\raisebox{-\height}{%
\begin{minipage}{\textwidth}\tiny\flushright%
\hspace*{0mm}\insertsectionHEAD%
\end{minipage}%
}%
}\\[.2ex]%
\else%
\fi%
}
\newcommand\resetbackgroundcanvas{% \newcommand\resetbackgroundcanvas{%
\setbeamertemplate{background canvas}{% \setbeamertemplate{background canvas}{%
\setlength{\unitlength}{0.00625\paperwidth}% \setlength{\unitlength}{\paperwidth/\thebmrW}%
\begin{picture}(160,90)% \begin{picture}(\thebmrW,\thebmrH)%
\put(154,84){% \setcounter{bmrX}{\thebmrW-\thebmrXmargin}\setcounter{bmrY}{\thebmrH-\thebmrXmargin}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[rt]{% \makebox(0,0)[rt]{%
\color{gris428}\includegraphics[height=\paperheight/7,keepaspectratio]{beamerxarmes}% \begin{minipage}{\paperheight/5}\flushright%
\includebeamerxsection{}
\includebeamerxarmes{}
\end{minipage}
}% }%
}% }%
\end{picture}% \end{picture}%
...@@ -398,35 +453,39 @@ ...@@ -398,35 +453,39 @@
} }
\AtBeginDocument{% \AtBeginDocument{%
\renewcommand\maketitle{% \renewcommand\maketitle{%
\setlength{\unitlength}{0.00625\paperwidth}% \setlength{\unitlength}{\paperwidth/\thebmrW}%
\setbeamertemplate{background canvas}{% \setbeamertemplate{background canvas}{%
\color{white}% \color{white}%
\begin{picture}(160,90)% \begin{picture}(\thebmrW,\thebmrH)%
\put(80,45){% \setcounter{bmrX}{\thebmrW/2}\setcounter{bmrY}{\thebmrH/2}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[c]{% \makebox(0,0)[c]{%
\includegraphics[width=\paperwidth,keepaspectratio]{beamerxbackground}% \includegraphics[height=\paperheight,keepaspectratio]{beamerxbackground}%
}% }%
}% }%
\put(6,45){% \setcounter{bmrX}{2*\thebmrTPmargin}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[l]{% \makebox(0,0)[l]{%
\includebeamerxlogo{}% \includebeamerxlogo{}%
}% }%
}% }%
\put(3,3){% \put(\thebmrTPmargin,\thebmrTPmargin){%
\makebox(0,0)[lb]{% \makebox(0,0)[lb]{%
\begin{minipage}{0.5\paperwidth}\noindent% \begin{minipage}{.5\paperwidth}\noindent%
\sffamily\footnotesize\polyauteursave\hspace*{0pt}% \sffamily\footnotesize\polyauteursave\hspace*{0pt}%
\end{minipage}% \end{minipage}%
}% }%
}% }%
\put(157,3){% \setcounter{bmrX}{\thebmrW-\thebmrTPmargin}%
\put(\thebmrX,\thebmrTPmargin){%
\makebox(0,0)[rb]{% \makebox(0,0)[rb]{%
\begin{minipage}{0.5\paperwidth}\noindent\flushright% \begin{minipage}{.5\paperwidth}\noindent\flushright%
\sffamily\footnotesize\polydatesave\hspace*{0pt}% \sffamily\footnotesize\polydatesave\hspace*{0pt}%
\end{minipage}% \end{minipage}%
}% }%
}% }%
\put(157,46){% \setcounter{bmrY}{\thebmrY+1}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[rb]{% \makebox(0,0)[rb]{%
\begin{minipage}{0.75\paperwidth}\noindent\flushright% \begin{minipage}{0.75\paperwidth}\noindent\flushright%
\Large\setlength{\baselineskip}{0.7\baselineskip}% \Large\setlength{\baselineskip}{0.7\baselineskip}%
...@@ -434,7 +493,8 @@ ...@@ -434,7 +493,8 @@
\end{minipage}% \end{minipage}%
}% }%
}% }%
\put(157,47){% \setcounter{bmrY}{\thebmrY+1}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[rt]{% \makebox(0,0)[rt]{%
\begin{minipage}{0.75\paperwidth}\noindent\flushright% \begin{minipage}{0.75\paperwidth}\noindent\flushright%
\setlength{\baselineskip}{0.7\baselineskip}% \setlength{\baselineskip}{0.7\baselineskip}%
...@@ -483,19 +543,23 @@ ...@@ -483,19 +543,23 @@
% {number} % {number}
% {title} % {title}
\newcommand{\xsectionframe}[5]{% \newcommand{\xsectionframe}[5]{%
\colorlet{xhdcolor}{#1}%
\setbeamertemplate{background canvas}{% \setbeamertemplate{background canvas}{%
\setlength{\unitlength}{0.00625\paperwidth}% \setlength{\unitlength}{\paperwidth/\thebmrW}%
\begin{picture}(160,90)% \begin{picture}(\thebmrW,\thebmrH)%
\put(80,0){% \setcounter{bmrX}{\thebmrW/2}%
\put(\thebmrX,0){%
\makebox(0,0)[cb]{% \makebox(0,0)[cb]{%
\includegraphics[width=\paperwidth,keepaspectratio]{#3}% \includegraphics[width=\paperwidth,keepaspectratio]{#3}%
}% }%
}% }%
\put(0,60){% \setcounter{bmrY}{2*\thebmrH/3}%
\put(0,\thebmrY){%
\color{#1}\rule{\paperwidth}{\paperheight/3}% \color{#1}\rule{\paperwidth}{\paperheight/3}%
}% }%
\setcounter{bmrY}{5*\thebmrH/6}%
\ifthenelse{\equal{#4}{}}{% \ifthenelse{\equal{#4}{}}{%
\put(80,75){% \put(\thebmrX,\thebmrY){%
\makebox(0,0)[c]{% \makebox(0,0)[c]{%
\begin{minipage}{140\unitlength}\centering% \begin{minipage}{140\unitlength}\centering%
\Large\sffamily\color{#2}\MakeUppercaseWithNewline{#5}% \Large\sffamily\color{#2}\MakeUppercaseWithNewline{#5}%
...@@ -503,14 +567,15 @@ ...@@ -503,14 +567,15 @@
}% }%
}% }%
}{% }{%
\put(80,75){% \put(\thebmrX,\thebmrY){%
\makebox(0,0)[cb]{% \makebox(0,0)[cb]{%
\begin{minipage}{140\unitlength}\centering% \begin{minipage}{140\unitlength}\centering%
\Huge\sffamily\color{#2}#4% \Huge\sffamily\color{#2}#4%
\end{minipage}% \end{minipage}%
}% }%
}% }%
\put(80,70){% \setcounter{bmrY}{\thebmrY-5}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[ct]{% \makebox(0,0)[ct]{%
\begin{minipage}{140\unitlength}\centering% \begin{minipage}{140\unitlength}\centering%
\Large\sffamily\color{#2}\MakeUppercaseWithNewline{#5}% \Large\sffamily\color{#2}\MakeUppercaseWithNewline{#5}%
...@@ -561,50 +626,56 @@ ...@@ -561,50 +626,56 @@
% {subtitle} % {subtitle}
\newcommand{\xsubsectionframe}[6]{% \newcommand{\xsubsectionframe}[6]{%
\setbeamertemplate{background canvas}{% \setbeamertemplate{background canvas}{%
\setlength{\unitlength}{0.00625\paperwidth}% \setlength{\unitlength}{\paperwidth/\thebmrW}%
\begin{picture}(160,90)% \begin{picture}(\thebmrW,\thebmrH)%
\put(80,90){% \setcounter{bmrX}{\thebmrW/2}%
\put(\thebmrX,\thebmrH){%
\makebox(0,0)[ct]{% \makebox(0,0)[ct]{%
\includegraphics[width=\paperwidth,keepaspectratio]{#4}% \includegraphics[width=\paperwidth,keepaspectratio]{#4}%
}% }%
}% }%
\put(0,0){% \put(0,0){%
\color{#1}\rule{\paperwidth}{0.5\paperheight}% \color{#1}\rule{\paperwidth}{.5\paperheight}%
}% }%
\put(160,22.5){% \setcounter{bmrY}{\thebmrH/4}%
\put(\thebmrW,\thebmrY){% TODO
\makebox(0,0)[c]{% \makebox(0,0)[c]{%
\color{#2}\includegraphics[height=3\paperheight/7,keepaspectratio]{beamerxarmes}% \color{#2}\includegraphics[height=3\paperheight/7,keepaspectratio]{beamerxarmes}%
}% }%
}% }%
\ifthenelse{\equal{#6}{}}{% \ifthenelse{\equal{#6}{}}{%
\put(80,21){% \setcounter{bmrY}{\thebmrY-3}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[ct]{% \makebox(0,0)[ct]{%
\color{#3}\includegraphics[height=\paperheight/22,keepaspectratio]{beamerxx}% \color{#3}\includegraphics[height=\paperheight/22,keepaspectratio]{beamerxx}%
}% }%
}% }%
\put(80,24){% \setcounter{bmrY}{\thebmrY+6}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[cb]{% \makebox(0,0)[cb]{%
\begin{minipage}{120\unitlength}\centering% \begin{minipage}{.75\paperwidth}\centering%
\large\rmfamily\bfseries\color{#3}\MakeUppercaseWithNewline{#5}% \large\rmfamily\bfseries\color{#3}\MakeUppercaseWithNewline{#5}%
\end{minipage}% \end{minipage}%
}% }%
}% }%
}{% }{%
\put(80,22.5){% \put(\thebmrX,\thebmrY){%
\makebox(0,0)[c]{% \makebox(0,0)[c]{%
\color{#3}\includegraphics[height=\paperheight/22,keepaspectratio]{beamerxx}% \color{#3}\includegraphics[height=\paperheight/22,keepaspectratio]{beamerxx}%
}% }%
}% }%
\put(80,28){% \setcounter{bmrY}{\thebmrY+11}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[cb]{% \makebox(0,0)[cb]{%
\begin{minipage}{120\unitlength}\centering% \begin{minipage}{.75\paperwidth}\centering%
\large\rmfamily\bfseries\color{#3}\MakeUppercaseWithNewline{#5}% \large\rmfamily\bfseries\color{#3}\MakeUppercaseWithNewline{#5}%
\end{minipage}% \end{minipage}%
}% }%
}% }%
\put(80,18){% \setcounter{bmrY}{\thebmrY-22}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[ct]{% \makebox(0,0)[ct]{%
\begin{minipage}{120\unitlength}\centering% \begin{minipage}{.75\paperwidth}\centering%
\large\rmfamily\color{#3}#6% \large\rmfamily\color{#3}#6%
\end{minipage}% \end{minipage}%
}% }%
...@@ -624,9 +695,10 @@ ...@@ -624,9 +695,10 @@
% {picture} % {picture}
\newenvironment{xpic}[2][hw]{% \newenvironment{xpic}[2][hw]{%
\setbeamertemplate{background canvas}{% \setbeamertemplate{background canvas}{%
\setlength{\unitlength}{0.00625\paperwidth}% \setlength{\unitlength}{\paperwidth/\thebmrW}%
\begin{picture}(160,90)% \begin{picture}(\thebmrW,\thebmrH)%
\put(80,45){% \setcounter{bmrX}{\thebmrW/2}\setcounter{bmrY}{\thebmrH/2}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[c]{% \makebox(0,0)[c]{%
\ifthenelse{\equal{#1}{w}}{% \ifthenelse{\equal{#1}{w}}{%
\includegraphics[width=\paperwidth]{#2}% \includegraphics[width=\paperwidth]{#2}%
...@@ -653,9 +725,15 @@ ...@@ -653,9 +725,15 @@
% [frame parameters] % [frame parameters]
% {title} % {title}
\newsavebox\beamerxpicturebox% \newsavebox\beamerxpicturebox%
\newlength\beamerxpictureboxH%
\newlength\beamerxpictureboxW%
\newcommand\includefullpic[1]{% \newcommand\includefullpic[1]{%
\sbox\beamerxpicturebox{\includegraphics{#1}}% \sbox\beamerxpicturebox{\includegraphics[width=1cm]{#1}}%
\ifdim\ht\beamerxpicturebox<.5625\wd\beamerxpicturebox% \setlength\beamerxpictureboxH{\ht\beamerxpicturebox}%
\setlength\beamerxpictureboxW{\wd\beamerxpicturebox}%
\setlength\beamerxpictureboxW{\beamerxpictureboxW/\thebmrW}%
\setlength\beamerxpictureboxW{\thebmrH\beamerxpictureboxW}%
\ifdim\beamerxpictureboxH<\beamerxpictureboxW%
\includegraphics[height=\paperheight]{#1}% \includegraphics[height=\paperheight]{#1}%
\else% \else%
\includegraphics[width=\paperwidth]{#1}% \includegraphics[width=\paperwidth]{#1}%
...@@ -689,9 +767,10 @@ ...@@ -689,9 +767,10 @@
}}}% }}}%
\colorlet{xfootcolor}{xtextcolor}% \colorlet{xfootcolor}{xtextcolor}%
\setbeamertemplate{background canvas}{% \setbeamertemplate{background canvas}{%
\setlength{\unitlength}{0.00625\paperwidth}% \setlength{\unitlength}{\paperwidth/\thebmrW}%
\begin{picture}(160,90)% \begin{picture}(\thebmrW,\thebmrH)%
\put(80,45){% \setcounter{bmrX}{\thebmrW/2}\setcounter{bmrY}{\thebmrH/2}%
\put(\thebmrX,\thebmrY){%
\makebox(0,0)[c]{% \makebox(0,0)[c]{%
\includefullpic{#2}% \includefullpic{#2}%
}% }%
......
source/beamerxbackground.jpg

191 KiB | W: | H:

source/beamerxbackground.jpg

194 KiB | W: | H:

source/beamerxbackground.jpg
source/beamerxbackground.jpg
source/beamerxbackground.jpg
source/beamerxbackground.jpg
  • 2-up
  • Swipe
  • Onion skin
% vim: expandtab tabstop=2 softtabstop=2 shiftwidth=2
%\documentclass[aspectratio=169]{beamer}
\documentclass[aspectratio=43]{beamer}
\usepackage[frenchb,noconfigs]{babel}
\usepackage{ifluatex,ifxetex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\fi
%\usepackage[]{beamerx}
\usepackage[oldscreen]{beamerx}
\usepackage{lipsum}
\title[\hrulefill{}This will probably be a way too long subtitle, but is wanted, actually]
{\hrulefill{}What do you think of my exageratedly long title?}
[Wizzilab]
\author{Clément Durand}
\begin{document}
\maketitle
\begin{frame}{Title}
\lipsum[1]
\end{frame}
\xsection{blue}{Test}
\xsubsection{blue}{Test}{Subtest}
\xsubsection{blue}{Test}{}
\begin{picframe}[lightbw]{light}{Test}
\end{picframe}
\end{document}
...@@ -35,7 +35,7 @@ x integration of another logo : stack with horizontal logo of the school ...@@ -35,7 +35,7 @@ x integration of another logo : stack with horizontal logo of the school
\____________________________________________________ \____________________________________________________
x integration of a company name : with ÉCOLE POLYTECHNIQUE - COMPANY - ... x integration of a company name : with ÉCOLE POLYTECHNIQUE - COMPANY - ...
o aspectratio=43 version x aspectratio=43 version
o thank you frame ? o thank you frame ?
o study more the colors in picframes o study more the colors in picframes
o switch to beamer theme ? o switch to beamer theme ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment