typst / typst

A new markup-based typesetting system that is powerful and easy to learn.
https://typst.app
Apache License 2.0
32.64k stars 873 forks source link

Add `typst` command similar to `\TeX` and `\LaTeX` macros #4731

Closed flgrubm closed 1 month ago

flgrubm commented 1 month ago

Description

A function that inserts a logo-like stylised version of the string "Typst" or "typst", potentially in all caps or small caps. This would be similar to the (La-)TeX macros \TeX and \LaTeX that produce the following output:

Screenshot_20240811_162331

Use Case

Easily and clearly refer to the Typst compiler in a more beautiful way than just writing "Typst" or "typst". E.g. in the preamble of my document I would like to add a line similar to

This document was typeset using #typst version #sys.version.

xkevio commented 1 month ago

Quoting from https://discord.com/channels/1054443721975922748/1054443722592497796/1107039477714665522 and @laurmaedje himself:

[It is] just "Typst" in whatever font the surrounding text is and capitalized.

Therefore, it would not make any sense to include such a function.

flgrubm commented 1 month ago

Okay, thank you! Then I'll close this as not planned