Skip to content

clean-ut:0.1.0#5221

Open
Lai-es wants to merge 6 commits into
typst:mainfrom
Lai-es:main
Open

clean-ut:0.1.0#5221
Lai-es wants to merge 6 commits into
typst:mainfrom
Lai-es:main

Conversation

@Lai-es

@Lai-es Lai-es commented Jul 1, 2026

Copy link
Copy Markdown

I am submitting

  • a new package
  • an update for a package

Description: This is a thesis template with the benefits of being able to do numbered subfigures, having a two-column bibliography and a caption function that allows to omit part of a figure description in the outline

I have read and followed the submission guidelines and, in particular, I

  • selected a name that isn't the most obvious or canonical name for what the package does
    • Explanation: "clean" reflects the template's minimal, uncluttered visual style, and "ut" stands for Universität Tübingen, where the thesis this template was built for was written. This is however a independent/unofficial template, not affiliated with the university itself.
  • added a typst.toml file with all required keys
  • added a README.md with documentation for my package
  • have chosen a license and added a LICENSE file or linked one in my README.md
  • tested my package locally on my system and it worked
  • excluded PDFs or README images, if any, but not the LICENSE
  • ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

@Lai-es
Lai-es temporarily deployed to Package Check July 1, 2026 19:25 — with GitHub Actions Inactive
@typst-package-check typst-package-check Bot added the new A new package submission. label Jul 1, 2026

@elegaanz elegaanz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting this template. I have some remarks regarding its structure and advice to make it more idiomatic. If you need more guidance, feel free to ask me, or the community via the Forum or Discord.

[package]
name = "clean-ut"
version = "0.1.0"
entrypoint = "template/lib.typ"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib.typ should be outside of the template directory. Most functions you define should also be part of the package and not the template: they should only define styling and apply it to the given content. If users really need to, they can chose to not use them and bring their own implementation instead, given how modular your package seems to be. If needed, you can also let them customize the defaults you provide further by letting them pass more arguments to your functions.

The template should mostly contain pure contents, and have sub-chapters #include-ed rather than imported as functions.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, you are of course right. I changed the structure accordingly. The only thing troubling me is that main.typ compiled successful locally, but is a blank page. I couldn't pinpoint what the problem was, could you give me a hint maybe? Anyhow, i will look into this further in the next week

Comment thread packages/preview/clean-ut/0.1.0/typst.toml Outdated
@Lai-es
Lai-es temporarily deployed to Package Check July 6, 2026 16:32 — with GitHub Actions Inactive
@Lai-es
Lai-es temporarily deployed to Package Check July 6, 2026 16:42 — with GitHub Actions Inactive
}

// ===========================Template================================
#let template = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a function that takes a body parameter and returns it after having configured the styles. Otherwise, #show: template will just replace the whole document with the value of this variable, which is just a bunch of styles and no content to apply it too.

@elegaanz elegaanz added the waiting-on-author Pull request waits on author label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new A new package submission. waiting-on-author Pull request waits on author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants