-
Notifications
You must be signed in to change notification settings - Fork 1k
touying-greyc-ambrosia:0.1.0 #4375
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
07bf939
add touying-greyc-ambrosia 0.1.0
inspiros 289548a
remove GFM boxes and fix code blocks in README
inspiros c30ac89
add Typst universe badge
inspiros a4192e7
add local use instructions and fix info boxes in README
inspiros f1d1e39
fix import error in footcite show rule
inspiros cb2c7ff
fix error when setting footcite-once: false
inspiros 8d48efe
add simple flavor, improve footcite and header behaviours, refractor …
inspiros 6176126
add alt texts and use perma links for images
inspiros 525e37b
fix links
inspiros 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,4 @@ | ||
| assets/samples | ||
| examples/ | ||
| target/ | ||
| template/*.pdf |
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,7 @@ | ||
| Copyright 2026 Hoang-Nhat TRAN | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
121 changes: 121 additions & 0 deletions
121
packages/preview/touying-greyc-ambrosia/0.1.0/README.md
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,121 @@ | ||
| touying-greyc-ambrosia [](https://typst.app/universe/package/touying-greyc-ambrosia) [](https://opensource.org/licenses/MIT) | ||
| ------ | ||
|
|
||
| `touying-greyc-ambrosia` is a [Touying](https://github.com/touying-typ/touying) theme for creating presentation slides in [Typst](https://github.com/typst/typst). | ||
|
|
||
| It is an _unofficial_ template intended for members of the [GREYC](https://www.greyc.fr/en/home/) lab, and is designed (by default) to mimic the official LaTeX & PPT templates provided in https://www.greyc.fr/intranet. | ||
| However, the theme comes with a lot of modifications and a range of different variants. | ||
| You are free to use or modify it for your own academic presentations, regardless of your affiliation. | ||
|
|
||
| > ✨ **Fun Fact** | ||
| > | ||
| > _Ambrosia_ 🍲 is a food or drink of the Greek gods, often described as having every flavor imaginable. | ||
|
|
||
| ## Features | ||
|
|
||
| ### Flavors | ||
|
|
||
| The `greyc-theme` offers six different flavors, inspired by existing touying and beamer themes. | ||
|
|
||
| | flavor | 1 | 2 | 3 | | ||
| |:------:|:---:|:---:|:---:| | ||
| | **`legacy`** | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-legacy-1.webp" alt="Sample title slide with legacy flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-legacy-2.webp" alt="Sample outline slide with legacy flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-legacy-3.webp" alt="Sample content slide with legacy flavor" width="300"> | | ||
| | `simple` | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-simple-1.webp" alt="Sample title slide with simple flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-simple-2.webp" alt="Sample outline slide with simple flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-simple-3.webp" alt="Sample content slide with simple flavor" width="300"> | | ||
| | `cambridge` | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-cambridge-1.webp" alt="Sample title slide with cambridge flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-cambridge-2.webp" alt="Sample outline slide with cambridge flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-cambridge-3.webp" alt="Sample content slide with cambridge flavor" width="300"> | | ||
| | `darmstadt` | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-darmstadt-1.webp" alt="Sample title slide with darmstadt flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-darmstadt-2.webp" alt="Sample outline slide with darmstadt flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-darmstadt-3.webp" alt="Sample content slide with darmstadt flavor" width="300"> | | ||
| | `dewdrop` | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-dewdrop-1.webp" alt="Sample title slide with dewdrop flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-dewdrop-2.webp" alt="Sample outline slide with dewdrop flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-dewdrop-3.webp" alt="Sample content slide with dewdrop flavor" width="300"> | | ||
| | `stargazer` | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-stargazer-1.webp" alt="Sample title slide with stargazer flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-stargazer-2.webp" alt="Sample outline slide with stargazer flavor" width="300"> | <img src="https://raw.githubusercontent.com/inspiros/touying-greyc-ambrosia/v0.1.0/assets/samples/sample-stargazer-3.webp" alt="Sample content slide with stargazer flavor" width="300"> | | ||
|
|
||
| To select a flavor, you pass its name to the show rule of the theme. | ||
|
|
||
| ```typ | ||
| #import "@preview/touying-greyc-ambrosia:0.1.0": * | ||
|
|
||
| #show: greyc-theme.with( | ||
| flavor: "[flavor-name]" | ||
| ) | ||
| ``` | ||
|
|
||
| ### Other Functionalities | ||
|
|
||
| #### Footnote Citation | ||
|
|
||
| - Instead of using the prose citation `@key`, we can use the `#footcite(<key>)` function, which further includes a full citation to the footnote of the same slide. | ||
| - At the end of the presentation, you must add your bibliography either by: | ||
| - A separate bibliography slide. | ||
| ```typ | ||
| #bibliography-slide("bibliography.bib", style: "ieee") | ||
| ``` | ||
| - A hidden bibliography. | ||
| ```typ | ||
| #hidden-bibliography("bibliography.bib", style: "ieee") | ||
| ``` | ||
|
|
||
| > 💡 **Tip** | ||
| > | ||
| > Footnote citation, by default, is inserted only in the first slide an article was cited. To make it appear on all slides they are mentioned, modify the `footcite-once` parameter. | ||
| > ```typ | ||
| > #show: greyc-theme.with( | ||
| > footcite-once: false | ||
| > ) | ||
| > ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| This package is available in the Typst universe. | ||
| To use it, simply add the following code to your document. | ||
|
|
||
| ```typ | ||
| #import "@preview/touying-greyc-ambrosia:0.1.0": * | ||
|
|
||
| #show: greyc-theme.with( | ||
| // legacy | stargazer | dewdrop | cambridge | darmstadt | ||
| flavor: "legacy", | ||
| aspect-ratio: "16-9", | ||
| config-info( | ||
| title: [Title], | ||
| subtitle: [Subtitle], | ||
| author: [Author], | ||
| date: datetime.today(), | ||
| institution: [Institution], | ||
| ), | ||
| ) | ||
|
|
||
| #title-slide() | ||
|
|
||
| = Section Title | ||
|
|
||
| == Slide | ||
|
|
||
| #lorem(30) | ||
| ``` | ||
|
|
||
| > ℹ️ **Note** | ||
| > | ||
| > `touying-greyc-ambrosia` should always be imported after `touying` (which is not necessary and can be removed) in order for the functions and components it overrides to work correctly (e.g. `#alert`, `#show: appendix`, ...). | ||
| > ```typ | ||
| > #import "@preview/touying:0.6.2": * | ||
| > #import "@preview/touying-greyc-ambrosia:0.1.0": * | ||
| > ``` | ||
|
|
||
| Otherwise, you can download it for local use: | ||
|
|
||
| ```bash | ||
| git clone https://github.com/inspiros/touying-greyc-ambrosia | ||
| python scripts/install.py | ||
| ``` | ||
|
|
||
| This Python script stores the package files in the right location following the instructions [here](https://github.com/typst/packages?tab=readme-ov-file#local-packages). | ||
| After that, you can import the package with: | ||
|
|
||
| ```typ | ||
| #import "@local/touying-greyc-ambrosia:0.1.0": * | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| For more sophisticated use cases, please check [`examples/demo.typ`](https://github.com/inspiros/touying-greyc-ambrosia/blob/v0.1.0/examples/demo.typ) and [`examples/demo.pdf`](https://github.com/inspiros/touying-greyc-ambrosia/blob/v0.1.0/examples/demo.pdf). | ||
|
|
||
| ## License | ||
|
|
||
| MIT licensed, see [LICENSE](LICENSE). | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
packages/preview/touying-greyc-ambrosia/0.1.0/assets/logo-cnrs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
What about the various logos you ship with this template? Are you allowed to distribute them, and if so under which terms? Can you please check and make that information more explicit?
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 will ask my directeur de thèse, who happens to be the head of communication in the lab, and return to you :/
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 had a conversation with him, and he confirmed there is no restriction on putting logos associated with the lab in an online template (all are publicly downloadable https://www.greyc.fr/intranet/#1647886250909-16337474-b9c8). I removed one logo that is not used in 8d48efe.
Must I mention anything in the README?
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.
No it's fine, you don't have to. Thank you for the info :)