Skip to content

Commit d68b64c

Browse files
authored
typographix-polytechnique-slides:0.2.0 (#3428)
1 parent bae6c1b commit d68b64c

26 files changed

+1390
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Rémi Germe
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Typst Polytechnique slide template
2+
3+
A Typst template for Polytechnique student oral presentations.
4+
5+
> [!warning]
6+
> The original Polytechnique template uses the **Georgia font**. This is a copyrighted font, so it could not be included directly within the template. For better results, **you are encouraged to [download](https://font.download/font/georgia-2) it** and add it to the project (simply upload the font files on the web app). In case of issue, see [font management in Typst](https://typst.app/docs/reference/text/text#parameters-font).
7+
8+
## Settings overview
9+
10+
The template can by applied while specifying the following settings:
11+
12+
- `frame-theme`: "light" or "dark" (default: "light")
13+
- `h1-theme`: "light", "ligh-dark", "dark-light" or "dark" (default: "dark-light")
14+
- `ratio`: a float (default: 16 / 9)
15+
16+
## Features
17+
18+
### Cover page
19+
20+
You can generate a cover page using the `#template.cover` command. It takes the following arguments:
21+
22+
- `title`
23+
- `speaker`
24+
- `date`
25+
- `background-image`: this should be an image object, with `width: 100%, height: 100%` like `image("path/to/custom/image.png", width: 100%, height: 100%)` (default: a photo of the lake and Grand Boncourt).
26+
27+
Example:
28+
29+
```typ
30+
#cover(title: "Soutenance de stage", speaker: "Big BRother", date: "22/08/2025")
31+
```
32+
33+
![Cover preview](slide-thumbnail.png)
34+
35+
You might also use the light theme:
36+
37+
```typ
38+
#cover(title: "Soutenance de stage", speaker: "Big BRother", date: "22/08/2025", theme: "light")
39+
```
40+
41+
![Cover light preview](gallery/cover-light.png)
42+
43+
### Outline
44+
45+
You can generate a fancy table of contents using the classic `#outline` command:
46+
47+
```typ
48+
#outline(title: "Sommaire")
49+
```
50+
51+
This will generate one of the outline pages below, according to the number of sections you have. Note that if you have less than two sections, or strictly more than six sections, the outline will default on a classic table of contents.
52+
53+
| Two sections | Three sections | Four sections | Five sections | Six sections |
54+
| :---------------------------------------------------------------: | :-------------------------------------------------------------------: | :-----------------------------------------------------------------: | :-----------------------------------------------------------------: | :---------------------------------------------------------------: |
55+
| ![Preview of outline with two sections](gallery/two-sections.png) | ![Preview of outline with three sections](gallery/three-sections.png) | ![Preview of outline with four sections](gallery/four-sections.png) | ![Preview of outline with five sections](gallery/five-sections.png) | ![Preview of outline with six sections](gallery/six-sections.png) |
56+
57+
### Logo in background
58+
59+
If you want to display the "armes" of Polytechnique in the background of a slide, use `#show: template.armes` **right after the slide title**.
60+
61+
```typ
62+
== A slide with armes
63+
#show: template.armes
64+
65+
#lorem(100)
66+
```
67+
68+
![Armes preview](gallery/with-armes.png)
69+
70+
### Section titles
71+
72+
Section title slides come in four flavors: `light`, `light-dark`, `dark-light`, `dark`.
73+
74+
| `light` | `light-dark` | `dark-light` | `dark` |
75+
| :---------------------------------------: | :-------------------------------------------------: | :-------------------------------------------------: | :-------------------------------------: |
76+
| ![Light theme preview](gallery/light.png) | ![Light-dark theme preview](gallery/light-dark.png) | ![Dark-light theme preview](gallery/dark-light.png) | ![Dark theme preview](gallery/dark.png) |
77+
78+
### Frame themes
79+
80+
The fancy frame comes in two flavors: `light` or `dark`.
81+
82+
| `light` | `dark` |
83+
| :---------------------------------------------: | :-------------------------------------------: |
84+
| ![Light frame preview](gallery/light-frame.png) | ![Dark frame preview](gallery/dark-frame.png) |
85+
86+
### Color palette
87+
88+
The template exposes the color palette.
89+
90+
| `PALETTE.blue` | `PALETTE.gold` | `PALETTE.gray` | `PALETTE.lighter-blue` |
91+
| :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: | :------------------------------------------------------------------: |
92+
| ![Blue color preview](https://placehold.co/20/003E5D/003E5D) | ![Gold color preview](https://placehold.co/20/A58B4D/A58B4D) | ![Gray color preview](https://placehold.co/20/E7E6E6/E7E6E6) | ![Lighter blue color preview](https://placehold.co/20/006881/006881) |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Assets
2+
3+
## Licensing
4+
5+
Use the assets accordingly with [École polytechnique corporate identity](https://www.polytechnique.edu/en/press-room).
6+
7+
## Generation
8+
9+
```bash
10+
sed -i 's/ce0037/a58b4d/' filet-long.svg
11+
sed -i 's/ccd8df/ece8dc/' armes.svg
12+
sed -i 's/01426a/ffffff/' logo-x-ip-paris.svg
13+
```
14+
15+
Note : macOS users need to add an empty string `''` after `-i` flag : `sed -i '' 's/.../.../' file.svg'` or install `gnu-sed` and use it instead of macOS provided `sed`.
16+
17+
## Pictures
18+
19+
Pictures are from: [Campus de l'École polytechnique flickr album](https://www.flickr.com/photos/117994717@N06/albums/72157642631154973/).

packages/preview/typographix-polytechnique-slides/0.2.0/assets/armes.svg

Lines changed: 59 additions & 0 deletions
Loading
620 KB
Loading
Lines changed: 49 additions & 0 deletions
Loading
777 KB
Loading

packages/preview/typographix-polytechnique-slides/0.2.0/assets/logo-x-ip-paris-blue.svg

Lines changed: 379 additions & 0 deletions
Loading

packages/preview/typographix-polytechnique-slides/0.2.0/assets/logo-x-ip-paris-white.svg

Lines changed: 379 additions & 0 deletions
Loading
3.46 MB
Loading

0 commit comments

Comments
 (0)