-
Notifications
You must be signed in to change notification settings - Fork 910
sorbonne-presentation:0.1.0 #4089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,152 @@ | ||
| # Sorbonne Presentation Theme | ||
|
|
||
| A non-official structured presentation theme for **Sorbonne University**, built on top of the [presentate](https://typst.app/universe/package/presentate) and [navigator](https://typst.app/universe/package/navigator) packages. | ||
|
|
||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
| The theme provides academic and institutional slide decks that respect the visual identity of Sorbonne University while offering powerful dynamic features. | ||
|
|
||
| - **Faculty Presets**: Built-in colors and logos for Health, Science, Humanities, and University-wide presentations. | ||
| - **Smart Navigation**: Automatic breadcrumbs, transition slides with roadmaps, and flexible hierarchy mapping. | ||
| - **Dynamic Content**: Seamless integration of `pause`, `uncover`, and `only` for step-by-step reveals. | ||
| - **Scientific Ready**: Specialized slides for equations, figures, and algorithms. | ||
|
|
||
| ### 🎨 Faculty Presets | ||
| Switch visual identities instantly using the `faculty` parameter: | ||
|
|
||
| | Univ | Sante | Sciences | Lettres | | ||
| |:---:|:---:|:---:|:---:| | ||
| |  |  |  |  | | ||
|
|
||
| - `univ`: Sorbonne Blue (University-wide) | ||
| - `sante`: Sorbonne Red (Faculty of Health) | ||
| - `sciences`: Sorbonne Light Blue (Faculty of Science & Engineering) | ||
| - `lettres`: Sorbonne Yellow/Ocre (Faculty of Humanities) | ||
|
|
||
| ## Documentation | ||
|
|
||
| For a comprehensive visual tour of all components and features, please refer to the pre-compiled PDF documentation: | ||
|
|
||
| - **[Main Demo Guide](examples/demo.typ)** (⇒ [pdf results](https://github.com/eusebe/typst-sorbonne-presentation/blob/0.1.0/examples/demo.pdf)): All components, boxes, and slide types. | ||
| - **[2-Levels Mapping Guide](examples/demo-mapping-2levels.typ)** (⇒ [pdf results](https://github.com/eusebe/typst-sorbonne-presentation/blob/0.1.0/examples/demo-mapping-2levels.pdf)): Using Section/Subsection hierarchy. | ||
| - **[3-Levels Mapping Guide](examples/demo-mapping-3levels.typ)** (⇒ [pdf results](https://github.com/eusebe/typst-sorbonne-presentation/blob/0.1.0/examples/demo-mapping-3levels.pdf)): Using Part/Section/Subsection hierarchy. | ||
|
|
||
| ## Quick Start | ||
|
|
||
| ```typ | ||
| #import "@preview/sorbonne-presentation:0.1.0": * | ||
|
|
||
| #show: template.with( | ||
| title: [Scientific Discovery], | ||
| author: [John Doe], | ||
| faculty: "sciences", | ||
| show-outline: true, | ||
| ) | ||
|
|
||
| = Introduction | ||
| #slide[ | ||
| - High performance | ||
| - Intuitive syntax | ||
| #show: pause | ||
| - *Dynamic* animations | ||
| ] | ||
|
|
||
| #ending-slide() | ||
| ``` | ||
|
|
||
| ## Configuration Reference | ||
|
|
||
| ### The `template` function | ||
|
|
||
| | Parameter | Type | Default | Description | | ||
| |-----------|------|---------|-------------| | ||
| | `title` | content | `none` | Main presentation title | | ||
| | `short-title` | content | `none` | Short version of title for footer | | ||
| | `subtitle` | content | `none` | Optional subtitle | | ||
| | `author` | content | `none` | Presenter's name | | ||
| | `short-author` | content | `none` | Short version of author for footer | | ||
| | `affiliation` | content | `none` | Department or Laboratory | | ||
| | `date` | content | `datetime...` | Custom date display | | ||
| | `faculty` | string | `"sante"` | Preset: `"sante"`, `"sciences"`, `"lettres"`, `"univ"` | | ||
| | `primary-color` | color | `none` | Manual override for theme color | | ||
| | `alert-color` | color | `none` | Manual override for alert text color | | ||
| | `logo-slide` | string | `none` | Path to custom logo for content slides | | ||
| | `logo-transition` | string | `none` | Path to custom logo for transition slides | | ||
| | `text-font` | string | `"Fira Sans"` | Main font family | | ||
| | `text-size` | length | `20pt` | Base text size | | ||
| | `aspect-ratio` | string | `"16-9"` | `"16-9"` or `"4-3"` | | ||
| | `show-outline` | bool | `false` | Toggle summary slide | | ||
| | `outline-title` | content | `[Sommaire]` | Title of the summary slide | | ||
| | `outline-depth` | int | `2` | Levels shown in summary | | ||
| | `outline-columns` | int | `1` | Number of columns for summary | | ||
| | `mapping` | dict | `(sec: 1, sub: 2)` | Logic mapping for headings | | ||
| | `auto-title` | bool | `true` | Use section name as slide title if none provided | | ||
| | `show-header-numbering` | bool | `true` | Toggle all heading numbers | | ||
| | `numbering-format` | string | `"1.1"` | Format for sections and subsections | | ||
| | `part-numbering-format` | string | `"I"` | Format for parts | | ||
| | `annex-title` | content | `[Annexe]` | Prefix for single appendix | | ||
| | `annex-main-title` | content | `[Annexes]` | Focus slide text for appendix start | | ||
| | `annex-numbering-format` | string | `"I"` | Numbering style for appendices | | ||
| | `bib-style` | string | `"apa"` | Bibliography and citation style | | ||
| | `progress-bar` | string | `"none"` | Position: `"none"`, `"top"`, or `"bottom"` | | ||
| | `slide-break-suffix` | content | `[ (cont.)]` | Suffix appended to titles on broken slides | | ||
| | `footer-author` | bool | `true` | Toggle author display in footer | | ||
| | `footer-title` | bool | `true` | Toggle title display in footer | | ||
| | `max-length` | int \| dict | `none` | Max length for breadcrumb titles before truncation | | ||
|
|
||
| ## Component Reference | ||
|
|
||
| ### Slide Types | ||
| - `#slide(title: none, subtitle: none, allow-slide-breaks: false, background: none, body)`: Standard content slide. | ||
| - `allow-slide-breaks`: If `true`, allows content to overflow onto multiple slides. A suffix (defined by `slide-break-suffix`) is automatically appended to the title from the second page. *Note: This feature is incompatible with dynamic animations like `#pause`.* | ||
| - `background`: Optional content (e.g., an image) to display behind the slide content. | ||
|  | ||
| - `#slide-break()`: Manually forces a page break within a slide. *Note: Only works when `allow-slide-breaks: true` is set on the `#slide()`.* | ||
| - `#focus-slide(body, subtitle: none)`: Highlight slide on solid theme background. | ||
|  | ||
| - `#figure-slide(fig, title: none, subtitle: none, caption: none, ..)`: Centered figure slide. | ||
|  | ||
| - `#equation-slide(equation, title: none, subtitle: none, definitions: none, citation: none, ..)`: Large equation with "signature" citation. | ||
|  | ||
| - `#acknowledgement-slide(title: none, subtitle: none, people: (), institutions: (), ..)`: Thank-you slide. | ||
|  | ||
| - `#ending-slide(title: none, subtitle: none, contact: ())`: Closing slide with contact information. | ||
|  | ||
|
|
||
| ### Text Helpers | ||
| - `#alert[text]`: Highlighted bold text. | ||
| - `#muted[text]`: Gray secondary text. | ||
| - `#subtle[text]`: Light gray tertiary text. | ||
|
|
||
|  | ||
|
|
||
| ### Citations & References | ||
| - Inline and corner citations. | ||
| `#cite-box("smith2023", position: "bottom-right")` | ||
|  | ||
|
|
||
| ### Layout & Boxes | ||
| - `#two-col(left, right, columns: (1fr, 1fr), gutter: 2em)`: Balanced columns. | ||
|  | ||
| - `#three-col(left, center, right, ..)`: Three column layout. | ||
|  | ||
| - `#grid-2x2(tl, tr, bl, br, ..)`: Four-quadrant grid layout. | ||
|  | ||
| - **Boxes**: All boxes support the `fill-mode` parameter (`"outline"`, `"fill"`, `"full"`, or `"transparent"`). | ||
|  | ||
| - `#highlight-box(title, body)`: Blue university-styled box for key points. | ||
| - `#alert-box(title, body)`: Red cautionary box for warnings. | ||
| - `#example-box(title, body)`: Green academic box for examples. | ||
| - `#algorithm-box(title, body)`: Monospace box for algorithmic logic. | ||
| - `#themed-block(title, body)`: Box automatically matching the faculty color. | ||
|
|
||
| ## Credits | ||
|
|
||
| - **Underlying Packages**: Built with [presentate](https://typst.app/universe/package/presentate) and [navigator](https://typst.app/universe/package/navigator). | ||
| - **Inspiration**: Layout features and component designs were inspired by the [calmly-touying](https://typst.app/universe/package/calmly-touying) theme. A special thanks to its author for the high-quality design inspiration. | ||
|
|
||
| ## License | ||
|
|
||
| MIT License. See [LICENSE](LICENSE) for details. | ||
Binary file added
BIN
+120 KB
...iew/sorbonne-presentation/0.1.0/assets/docs/component-acknowledgement-slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+170 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/component-boxes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+173 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/component-citation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+154 KB
...ages/preview/sorbonne-presentation/0.1.0/assets/docs/component-ending-slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
...es/preview/sorbonne-presentation/0.1.0/assets/docs/component-equation-slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+115 KB
...ages/preview/sorbonne-presentation/0.1.0/assets/docs/component-figure-slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+132 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/component-focus-slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/component-slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+82.2 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/faculty-lettres.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.8 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/faculty-sante.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.1 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/faculty-sciences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.2 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/faculty-univ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/helper-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/layout-2col.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+96.5 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/layout-3col.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.6 KB
packages/preview/sorbonne-presentation/0.1.0/assets/docs/layout-grid2x2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.66 KB
...ages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-lettres-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+203 KB
packages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-lettres.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.1 KB
packages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-sante-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.9 KB
packages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-sante.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.5 KB
...ges/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-sciences-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+657 KB
packages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-sciences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.03 KB
packages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-univ-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+96.3 KB
packages/preview/sorbonne-presentation/0.1.0/assets/logo/sorbonne-univ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
packages/preview/sorbonne-presentation/0.1.0/examples/demo-mapping-2levels.typ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #import "@preview/sorbonne-presentation:0.1.0": * | ||
|
|
||
| #show: template.with( | ||
| title: [Standard Mapping Guide], | ||
| subtitle: [Section & Subsection Hierarchy], | ||
| author: [David Hajage], | ||
| // Standard mapping: Level 1 (=) is a Section, Level 2 (==) is a Subsection | ||
| mapping: (section: 1, subsection: 2), | ||
| // Numbering format for sections and subsections | ||
| numbering-format: "1.1", | ||
| show-outline: true, | ||
| ) | ||
|
|
||
| = Introduction | ||
| == Description | ||
| #slide[ | ||
| In this configuration: | ||
| - Heading level 1 (`=`) acts as a *Section*. | ||
| - Heading level 2 (`==`) acts as a *Subsection*. | ||
| ] | ||
|
|
||
| == Roadmap | ||
| #slide[ | ||
| Section transitions will display a "Roadmap" (mini table of contents) listing all the subsections within that section. | ||
|
|
||
| Subsections (Level 2) are displayed in the roadmap of the parent section transition slide. | ||
|
|
||
| They also appear in the breadcrumb at the bottom of the slide. | ||
| ] | ||
|
|
||
| = Technical Details | ||
|
|
||
| == Implementation | ||
| #slide(title: "The numbering-format option")[ | ||
| The `numbering-format` parameter controls how sections and subsections are numbered. | ||
|
|
||
| For example, `numbering-format: "1.1"` will produce: | ||
| - *1.* for the first section. | ||
| - *1.1* for the first subsection. | ||
| ] | ||
| #slide[ | ||
| You can change it to `"1.a"` or `"I.1"` depending on your preferences. | ||
| ] |
46 changes: 46 additions & 0 deletions
46
packages/preview/sorbonne-presentation/0.1.0/examples/demo-mapping-3levels.typ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| #import "@preview/sorbonne-presentation:0.1.0": * | ||
|
|
||
| #show: template.with( | ||
| title: [Complex Mapping Guide], | ||
| subtitle: [Part, Section & Subsection Hierarchy], | ||
| author: [David Hajage], | ||
| // Complex mapping: 3 levels of hierarchy | ||
| mapping: (part: 1, section: 2, subsection: 3), | ||
| // Numbering for the Part (Level 1) | ||
| part-numbering-format: "I", | ||
| // Numbering for Sections (Level 2) and Subsections (Level 3) | ||
| numbering-format: "1.a", | ||
| show-outline: true, | ||
| ) | ||
|
|
||
| #slide[ | ||
| When a level is mapped to `part`: | ||
| - The transition slide is centered and "quiet" (no roadmap). | ||
| - It usually represents a major thematic block. | ||
| - The numbering follows `part-numbering-format` (here: "I"). | ||
| ] | ||
|
|
||
| = First Part | ||
| == Introduction Section | ||
| === Context | ||
| #slide[ | ||
| In this 3-level setup: | ||
| - Level 1 (`=`) is a *Part*. | ||
| - Level 2 (`==`) is a *Section*. | ||
| - Level 3 (`===`) is a *Subsection*. | ||
|
|
||
| The Section transition (Level 2) will show a roadmap of all Subsections (Level 3) within it. | ||
| ] | ||
|
|
||
| === Problem Statement | ||
| #slide[ | ||
| Look at the breadcrumb: it now tracks three levels of depth. | ||
| ] | ||
|
|
||
| = Second Part | ||
| == Results Section | ||
| === Data Analysis | ||
| #slide[ | ||
| The `numbering-format` starts from the Section level. | ||
| Here, `numbering-format: "1.a"` means sections are "1", "2", and subsections are "1.a", "1.b". | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can imagine that the various Sorbonne logos that you ship with this template are not under the MIT license. Can you please specify under which terms/license they can be distributed and used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback! I’ll check whether it’s possible to make this template official. If that’s not feasible, I’ll choose a new name and release the package without the Sorbonne logos. I really appreciate your guidance on this and want to make sure the package can be used smoothly by the community.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @elegaanz,
I'm going to close this PR and create a new one with a new name and fake logos.
Thanks for your advices.