Skip to content

Commit 29a9d38

Browse files
committed
releasing v2.2.0-beta
2 parents 45f741c + d1bd012 commit 29a9d38

File tree

6 files changed

+38
-6
lines changed

6 files changed

+38
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# 2
22

3+
## 2.2
4+
5+
### 2.2.0-beta
6+
7+
* Possibility to add the image (logo and name) of another company
8+
* A few corrections of the way the package has to be installed
9+
310
## 2.1
411

512
### 2.1.1

install/unix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
2+
cd "$(readlink -m "$0/../../")" # chdir to the root directory of the package archive
3+
24
TEXMFLOCAL="$(kpsewhich -var-value TEXMFLOCAL)"
35
PACKAGE="$TEXMFLOCAL/tex/latex/beamerx/"
46
FONTS="$TEXMFLOCAL/fonts/truetype/"

install/windows.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@ECHO OFF
2+
CD ..
23
FOR /F %%i IN ('kpsewhich -var-value TEXMFLOCAL') DO SET TEXMFLOCAL=%%i
34
SET PACKAGEFOLDER=%TEXMFLOCAL%/tex/latex/beamerx
45
SET FONTSFOLDER=%TEXMFLOCAL%/fonts

makeversion

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ else
137137
fi;
138138
makechangelog;
139139

140+
find . -type f -name '*.sty' | xargs -n1 -d'\n' sed -i '/\\ProvidesPackage/ s/\[[^,]*,/\['"$(date +%Y\\/%m\\/%d)"' '"$newv"',/'
141+
find . -type f -name '*.sty' | xargs -n1 -d'\n' git add
142+
140143
git add CHANGELOG.md && {
141144
nparents=$(git cat-file -p HEAD | sed -n '/^parent/ p' | wc -l)
142145
if [ $nparents -gt 1 ]; then

source/beamerx.sty

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
\NeedsTeXFormat{LaTeX2e}
2-
\ProvidesPackage{beamerx}[2016/12/11 v2.0.0beta, standard scientific slideshows layout for Ecole polytechnique (Palaiseau,France).]
2+
\ProvidesPackage{beamerx}[2017/01/19 v2.2.0-beta, standard scientific slideshows layout for Ecole polytechnique (Palaiseau,France).]
33

44
%=======================================================================
55
% Declaration des options
@@ -260,12 +260,17 @@
260260
\setbeamersize{text margin right=\beamerxmargin}
261261

262262
\newcommand{\beamerxshorttitle}{-- \insertshorttitle}
263+
\newcommand{\beamerxcompany}{}
264+
\newcommand{\company}[1]{%
265+
\renewcommand{\beamerxcompany}{-- \textbf{#1} }%
266+
}
267+
\newcommand{\beamerxfootleft}{\textbf{ÉCOLE POLYTECHNIQUE} \beamerxcompany}
263268
\newcommand\resetfootline{%
264269
\setbeamertemplate{footline}{%
265270
\color{xfootcolor}%
266271
\hspace*{\beamerxmargin}%
267272
\raisebox{\beamerxmargin}{%
268-
\textbf{ÉCOLE POLYTECHNIQUE} %
273+
\beamerxfootleft%
269274
\beamerxshorttitle%
270275
}%
271276
\hspace*{\fill}
@@ -373,6 +378,20 @@
373378
% Diapos conforme charte graphique
374379
%=======================================================================
375380
%--- Maketitle
381+
\def\includebeamerxlogo{}
382+
\newcommand{\nologo}[1]{%
383+
\renewcommand{\includebeamerxlogo}{\color{white}\includegraphics[height=0.25\paperheight,keepaspectratio]{beamerxlogo}}
384+
}
385+
\nologo{}
386+
\def\logo{}
387+
\renewcommand{\logo}[1]{%
388+
\renewcommand{\includebeamerxlogo}{%
389+
\begin{minipage}{0.18377693\paperheight}\color{white}\centering%
390+
\includegraphics[width=\textwidth,keepaspectratio]{beamerxlogo}\\[0.01250\paperwidth]
391+
\includegraphics[width=\textwidth,keepaspectratio]{#1}
392+
\end{minipage}
393+
}%
394+
}
376395
\AtBeginDocument{%
377396
\renewcommand\maketitle{%
378397
\setlength{\unitlength}{0.00625\paperwidth}%
@@ -386,7 +405,7 @@
386405
}%
387406
\put(6,45){%
388407
\makebox(0,0)[l]{%
389-
\color{white}\includegraphics[height=0.25\paperheight,keepaspectratio]{beamerxlogo}%
408+
\includebeamerxlogo{}%
390409
}%
391410
}%
392411
\put(3,3){%

todo.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ x makerelease script
2121
x lighter release archive (remove exemple.tex and unnecessary pictures)
2222
x install scripts (step by step)
2323
x add font support for lualatex/linux first (we'll see then for other distribs)
24-
- default color theme
24+
o default color theme
2525
the user can choose a default color theme, and it defines the \section and
2626
\subsection commands
2727
if the user doesn't choose, the \section and \subsection commands remain unchanged
2828
x install script for windows
2929
- test font support on windows
30-
- integration of another logo : stack with horizontal logo of the school
31-
- integration of a company name : with ÉCOLE POLYTECHNIQUE - COMPANY - ...
30+
x integration of another logo : stack with horizontal logo of the school
31+
x integration of a company name : with ÉCOLE POLYTECHNIQUE - COMPANY - ...

0 commit comments

Comments
 (0)