-
Notifications
You must be signed in to change notification settings - Fork 677
elegant-polimi-thesis:0.1.1 #2859
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
Open
VictuarVi
wants to merge
2
commits into
typst:main
Choose a base branch
from
VictuarVi:elegant-polimi-thesis-0.1.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
29 changes: 29 additions & 0 deletions
29
packages/preview/elegant-polimi-thesis/0.1.1/CONTRIBUTING.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,29 @@ | ||
# Contributing | ||
|
||
If you want to test the package, you must clone the repository in the local packages folder; depending on your operating system it will be: | ||
|
||
- `$XDG_DATA_HOME` or `~/.local/share` on Linux | ||
- `~/Library/Application Support` on macOS | ||
- `%APPDATA%` on Windows | ||
|
||
Then, the structure will be `typst/packages/local/{package.name}/{package.version}` where `name` and `version` are matching the `typst.toml` file. In this project they are `elegant-polimi-thesis` and `0.1.1`. | ||
|
||
Finally, create a new project with: | ||
|
||
```shell | ||
typst init "@local/{package.name}:{package.version}" | ||
``` | ||
|
||
See the [official documentation](https://github.com/typst/packages?tab=readme-ov-file#local-packages). | ||
|
||
> [!TIP] | ||
> Create a symlink to the location Typst needs to the location where the repository is. For instance in a Linux environment it would be: | ||
> | ||
> ```shell | ||
> mkdir ~/.local/share/typst/packages/local/PACKAGE.NAME | ||
> ln -s REPO_FOLDER \ | ||
> ~/.local/share/typst/packages/local/PACKAGE.NAME/PACKAGE.VERSION | ||
> ``` | ||
> | ||
> You could do the same for the `preview` namespace, will be the one used for the template on Typst Universe. There is the `symlink.sh` to account for those operations: make sure to configure the correct paths. | ||
> |
Large diffs are not rendered by default.
Oops, something went wrong.
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,100 @@ | ||
# elegant-polimi-thesis 🎓 | ||
|
||
Elegant and simple thesis template for [Typst](https://typst.app/), a modern typesetting program alternative to LaTeX. I based the design of the document on the following two templates: | ||
|
||
- [PhD Thesis Template](https://www.overleaf.com/latex/templates/phd-thesis-template/nwjkggvhrzmz) | ||
- [DEIB PhD Thesis Template](https://www.overleaf.com/latex/templates/politecnico-di-milano-deib-phd-thesis-template/ydsvtyzwxfdk) | ||
|
||
They are rather similar. The main difference is the PoliBlu colour spread across the headings. I recommend to check them out. | ||
|
||
> [!NOTE] | ||
> See the [manual](https://victuarvi.github.io/PoliMi-PhD-Thesis/docs/manual.pdf) for more information. | ||
|
||
## Preview ✨ | ||
|
||
<p align="center"> | ||
<img alt="Frontspiece" src="thumbnail.png" width="45%"> | ||
</p> | ||
|
||
## Usage 🖋 | ||
|
||
Compile with: | ||
|
||
```shell | ||
typst c main.typ --pdf-standard a-3b | ||
``` | ||
|
||
A very simple document: | ||
|
||
```typ | ||
#import "@preview/elegant-polimi-thesis:0.1.1": * | ||
|
||
#show: polimi_thesis.with( | ||
title: "Thesis Title", | ||
author: "Vittorio Robecchi", | ||
advisor: "Prof. Donatella Sciuto", | ||
coadvisor: "Prof. Antonio Capone", | ||
tutor: "Prof. Marco Bramanti", | ||
colored-headings: true | ||
) | ||
|
||
#show: frontmatter | ||
|
||
// abstract in English | ||
|
||
// sommario in Italian | ||
|
||
#show: acknowledgements | ||
|
||
// acknowledgements | ||
|
||
#toc | ||
#list_of_figures | ||
#list_of_tables | ||
|
||
#let nomenclature_ = ( | ||
"key" : "value" | ||
) | ||
#nomenclature( | ||
nomenclature_, | ||
indented: true | ||
) | ||
|
||
#show: mainmatter | ||
|
||
// main section of the thesis | ||
|
||
#show: backmatter | ||
|
||
// backmatter | ||
|
||
#show: appendix | ||
|
||
// appendix | ||
|
||
#show: backmatter | ||
|
||
// bibliography | ||
|
||
#show: acknowledgements | ||
|
||
// acknowlegments | ||
``` | ||
|
||
The full list of options is as follows: | ||
|
||
- `title`: title of the thesis | ||
- `author`: name and surname of the author | ||
- `advisor`: name and surname of the advisor | ||
- `coadvisor`: name and surname of the coadvisor (can be empty) | ||
- `tutor`: name and surname of the tutor | ||
- `phdcycle`: PhD cycle of the thesis (defaults to current year) | ||
- `language`: language of the thesis | ||
- `colored-headings`: whether to use colored headings or not | ||
- `main-logo`: main logo of the thesis | ||
|
||
See the `docs/` folder for a thorough example on how to style the thesis; also have a look at `docs/docs.pdf` for the full documentation. | ||
|
||
# Contributing 🚀 | ||
|
||
If you happen to have suggestions, ideas or anything else feel free to open issues and pull requests. |
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.
Could you either link the local
manual.pdf
anddocs.pdf
in the readme or remove them from the PR? Otherwise they will be almost impossible to discover on typst universe.Uh oh!
There was an error while loading. Please reload this page.
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 don't understand: if that link is clicked on the Typst universe, everyone can see the already compiled PDF. The
docs.pdf
file is not strictly important: that's why I briefly mentioned it in the last part of the README.