Skip to content

Commit

Permalink
definitely-not-isec-thesis:1.0.0 (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomaikgolf authored Feb 18, 2025
1 parent c3c947c commit 1848dad
Show file tree
Hide file tree
Showing 19 changed files with 1,915 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/preview/definitely-not-isec-thesis/1.0.0/LICENSE
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 packages/preview/definitely-not-isec-thesis/1.0.0/README.md
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

![title](https://github.com/user-attachments/assets/62d3eff1-93db-42c7-ae24-8562eea2948e)
![affidavit](https://github.com/user-attachments/assets/b02843dc-507b-4108-9f9f-00a4be13b92e)
![acknowledgements](https://github.com/user-attachments/assets/8ab9dde7-678b-4b59-8a2c-14dc5b0305e2)
![abstract](https://github.com/user-attachments/assets/ca700eb5-3c88-4fef-a62f-c2c6cb81a6a5)
![kurzfassung](https://github.com/user-attachments/assets/ffde8e2d-d3d5-45bd-a188-b4c6b9b5175d)
![contents](https://github.com/user-attachments/assets/6edf6084-2f88-4b61-966d-eec6af2ae403)
![text-content](https://github.com/user-attachments/assets/95d90667-b203-4004-bb73-5f4ca5dc7cd0)
![dummy-content](https://github.com/user-attachments/assets/25db8ec5-05a5-43b5-b649-0bbe0eca4459)
![listings-content](https://github.com/user-attachments/assets/527f041f-3f85-447e-bf8e-f4e6059a0242)
![notation](https://github.com/user-attachments/assets/030cc805-4745-42f7-b404-6f00a66c8442)
![acronyms](https://github.com/user-attachments/assets/96199ddf-4929-4948-b431-78a0d84d431f)
![bibliography](https://github.com/user-attachments/assets/f5afef77-4897-466b-8f38-1a92fc2f8b26)
![appendix](https://github.com/user-attachments/assets/c6e2b758-bb9d-4808-a0cb-3386e5aba9d2)

## 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
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 packages/preview/definitely-not-isec-thesis/1.0.0/src/helper.typ
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
Loading

0 comments on commit 1848dad

Please sign in to comment.