-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
definitely-not-isec-thesis:1.0.0 (#1548)
- Loading branch information
1 parent
c3c947c
commit 1848dad
Showing
19 changed files
with
1,915 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2025 Ernesto Martínez García | ||
|
||
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. |
52 changes: 52 additions & 0 deletions
52
packages/preview/definitely-not-isec-thesis/1.0.0/README.md
This file contains 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,52 @@ | ||
# ISEC Master's Thesis Template | ||
|
||
An unofficial ISEC TUGraz Master's Thesis template | ||
|
||
Author: Ernesto Martínez García <[ecomaikgolf.com](https://ecomaikgolf.com)> | ||
|
||
> [!NOTE] | ||
> If you are an ISEC or TUGraz employee and want it renamed to `isec-thesis` or | ||
> `tugraz-thesis` I would need an approval to allocate the name :) | ||
## Design | ||
|
||
Template closely follows [Maria's LaTeX | ||
Template](https://extgit.isec.tugraz.at/castle/student/templates/master-thesis/-/tree/main/thesis) | ||
design from the institute. | ||
|
||
There's a few differences between the original and the Typst version that won't | ||
be changed as I prefer as it is here. Nothing reallty important, just small | ||
typesetting/design choices. Check the reported differences | ||
[here](https://github.com/ecomaikgolf/typst-iaik-master-thesis-template/issues?q=is%3Aissue+is%3Aopen+label%3Adiff) | ||
|
||
## Contributing | ||
|
||
Contribute to the template in the [upstream repository](https://github.com/ecomaikgolf/typst-isec-master-thesis-template) | ||
|
||
Check for [open issues](https://github.com/ecomaikgolf/typst-isec-master-thesis-template/issues) | ||
|
||
## Samples | ||
|
||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
|
||
## License `src/assets/tuglogo.svg` | ||
|
||
According to Wikipedia: | ||
|
||
> This logo image consists only of simple geometric shapes or text. It does not | ||
> meet the threshold of originality needed for copyright protection, and is | ||
> therefore in the public domain. [...] | ||
https://en.m.wikipedia.org/wiki/File:TU_Graz.svg |
47 changes: 47 additions & 0 deletions
47
packages/preview/definitely-not-isec-thesis/1.0.0/src/assets/tuglogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
packages/preview/definitely-not-isec-thesis/1.0.0/src/helper.typ
This file contains 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,34 @@ | ||
// -------------------------------------------------------------------------- | ||
// Extra helper functions | ||
|
||
// Fix for typst #311 "Behavior of first line indentation in paragraphs ..." | ||
// https://github.com/typst/typst/issues/311#issuecomment-2023038611 | ||
#let fix-311 = context { | ||
set par.line(numbering: none) | ||
let a = par(box()) | ||
a | ||
v(-0.8 * measure(2 * a).width) | ||
} | ||
|
||
// Transforms content into string | ||
#let content-to-string(content) = { | ||
if content.has("text") { | ||
content.text | ||
} else if content.has("children") { | ||
content.children.map(content-to-string).join("") | ||
} else if content.has("body") { | ||
content-to-string(content.body) | ||
} else if content == [ ] { | ||
" " | ||
} | ||
} | ||
|
||
// partitle simulates \paragraph{title} (more or less) | ||
#let partitle(title: [Title], body) = context [ | ||
#block(above: 0.8cm)[ | ||
*#title* #h(0.3cm) #body | ||
] | ||
#fix-311 | ||
] | ||
|
||
//vim:tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab colorcolumn=81 |
Oops, something went wrong.