clean-ut:0.1.0#5221
Conversation
elegaanz
left a comment
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
| } | ||
|
|
||
| // ===========================Template================================ | ||
| #let template = { |
There was a problem hiding this comment.
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.
I am submitting
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
typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile or linked one in myREADME.mdexcluded PDFs or README images, if any, but not the LICENSE