Skip to content

Commit

Permalink
releasing v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
w2ak committed Jan 9, 2017
2 parents b190001 + cd8bf39 commit 858c85c
Show file tree
Hide file tree
Showing 27 changed files with 82 additions and 237 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# 2

## 2.1

### 2.1.0

* Added font support for XeLaTeX and LuaLaTeX. This means you need to install
the fonts (refer to the install section of the wiki) in order to keep it working
with these compilers.
* Install script for unix systems.

## 2.0

### 2.0.2-beta
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all clean cleandist
.PHONY: all clean cleandist linux-install mac-install release

all:
make -C source/ all
Expand All @@ -8,3 +8,12 @@ clean:

cleandist:
make -C source/ cleandist

linux-install:
sudo ./install/unix.sh

mac-install:
sudo ./install/unix.sh

release:
./makerelease ./release/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# polytechnique-beamer

Ce dossier contient la source du package pour les diaporamas à l'École polytechnique.

# Install

To install the package, you can run the corresponding script in `install/` or do a manual package install and put the files from `source/` and `fonts/` in the correct folders.

```sh
sudo ./install/linux.sh
```
Binary file added fonts/DroidSerif/DroidSerif-Bold.ttf
Binary file not shown.
Binary file added fonts/DroidSerif/DroidSerif-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/DroidSerif/DroidSerif-Italic.ttf
Binary file not shown.
Binary file added fonts/DroidSerif/DroidSerif.ttf
Binary file not shown.
Binary file added fonts/Muli/Muli-Bold.ttf
Binary file not shown.
Binary file added fonts/Muli/Muli-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/Muli/Muli-Italic.ttf
Binary file not shown.
Binary file added fonts/Muli/Muli-Regular.ttf
Binary file not shown.
Binary file added fonts/RobotoMono/RobotoMono-Bold.ttf
Binary file not shown.
Binary file added fonts/RobotoMono/RobotoMono-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/RobotoMono/RobotoMono-Italic.ttf
Binary file not shown.
Binary file added fonts/RobotoMono/RobotoMono-Regular.ttf
Binary file not shown.
Empty file removed guide/guide.tex
Empty file.
7 changes: 7 additions & 0 deletions install/.exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
minimal.tex
exemple.tex
maketestfiles
light.jpg
dark.jpg
Makefile
welcome-short.jpg
8 changes: 0 additions & 8 deletions install/notes.txt

This file was deleted.

9 changes: 9 additions & 0 deletions install/unix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
TEXMFLOCAL="$(kpsewhich -var-value TEXMFLOCAL)"
PACKAGE="$TEXMFLOCAL/tex/latex/beamerx/"
FONTS="$TEXMFLOCAL/fonts/truetype/"
PERMS="Dg+s,ug+w,o-w,+X"
mkdir -p "$PACKAGE" "$FONTS"
rsync --recursive --exclude-from=install/.exclude --delete-excluded --chmod=$PERMS source/ $PACKAGE/
rsync --recursive --update --chmod=$PERMS fonts/ $FONTS/
texhash || mktexlsr
8 changes: 4 additions & 4 deletions makerelease
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ make &&
-or -name '*.jpg'\
-or -name '*.md'\
-or -name 'LICENSE*'
find ./install/
find ./fonts/
} | tee >(xargs -d'\n' tar czf "$folder/$tgz") >(xargs -d'\n' zip -q "$folder/$zip") | cat - && {
cd $folder &&
gpg2 --armor --output "$zip.sig" --detach-sign "$zip" &&
gpg2 --armor --output "$tgz.sig" --detach-sign "$tgz" &&
md5sum "$tgz" > "$tgz.md5" &&
md5sum "$zip" > "$zip.md5" &&
sha256sum "$tgz" > "$tgz.sha256" &&
sha256sum "$zip" > "$zip.sha256";
md5sum "$tgz" "$zip" > "$arch.md5" &&
sha256sum "$tgz" "$zip" > "$arch.sha256";
}
3 changes: 3 additions & 0 deletions source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ TEXFILES:=$(shell find . -type f -name '*.tex')

all: minimal.pdf

minimal.pdf: minimal.tex
lualatex -interaction=nonstopmode $<

%.pdf: %.tex
pdflatex -interaction=nonstopmode $<
pdflatex -interaction=nonstopmode $<
Expand Down
29 changes: 28 additions & 1 deletion source/beamerx.sty
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,34 @@
\RequirePackage{xargs}
\RequirePackage{adjustbox}
\RequirePackage{pgf}

\RequirePackage{ifluatex,ifxetex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\else % xelatex or lualatex
\RequirePackage{fontspec}
\AtBeginDocument{
\setsansfont{Muli}[
Extension=.ttf,
UprightFont=*-Regular,
ItalicFont=*-Italic,
BoldFont=*-Bold,
BoldItalicFont=*-BoldItalic
]
\setromanfont{DroidSerif}[
Extension=.ttf,
UprightFont=*,
ItalicFont=*-Italic,
BoldFont=*-Bold,
BoldItalicFont=*-BoldItalic
]
\setmonofont{RobotoMono}[
Extension=.ttf,
UprightFont=*-Regular,
ItalicFont=*-Italic,
BoldFont=*-Bold,
BoldItalicFont=*-BoldItalic
]
}
\fi
%=======================================================================
% Definition des couleurs
%=======================================================================
Expand Down
Binary file removed source/dark.jpg
Binary file not shown.
214 changes: 0 additions & 214 deletions source/exemple.tex

This file was deleted.

12 changes: 3 additions & 9 deletions source/minimal.tex
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
% vim: expandtab tabstop=2 softtabstop=2 shiftwidth=2
\documentclass[aspectratio=169]{beamer}
\usepackage[frenchb,noconfigs]{babel}
\usepackage{ifluatex,ifxetex}
\ifluatex%
\usepackage{fontspec}
\setsansfont{Comfortaa}
\else\ifxetex%
\usepackage{fontspec}
\else%
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\fi\fi%
\usepackage[frenchb,noconfigs]{babel}
\fi

\usepackage{beamerx}
\usepackage{lipsum}
Expand Down Expand Up @@ -44,7 +39,6 @@
\begin{column}{0.25\textwidth}
\begin{block}{Groups}
While not well known, the collective nouns used for cats and kittens are a clowder of cats and a kindle of kittens.
\vspace*{5ex}
\end{block}
\end{column}
\begin{column}{0.5\textwidth-1ex}
Expand Down
Binary file removed source/pei-short.jpg
Binary file not shown.
Binary file removed source/welcome-short.jpg
Binary file not shown.

0 comments on commit 858c85c

Please sign in to comment.