|
| 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 | + |
| 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 | + |
| 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 | +|  |  |  |  |  | |
| 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 | + |
| 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 | +|  |  |  |  | |
| 77 | + |
| 78 | +### Frame themes |
| 79 | + |
| 80 | +The fancy frame comes in two flavors: `light` or `dark`. |
| 81 | + |
| 82 | +| `light` | `dark` | |
| 83 | +| :---------------------------------------------: | :-------------------------------------------: | |
| 84 | +|  |  | |
| 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 | +|  |  |  |  | |
0 commit comments