You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In issue #1276@Enivex proposed a very helpful solution for missing references.
However, I noticed that that will happily generate (?) (which I have adapted to ?? without reporting this, which means you may end up with orphan references.
I have not been able to find a way to make typst squeal so I can adapt the #show raw rule's missing condition.
Use Case
There should be other conditions where a warning type message triggered programatically might be helpful.
Reacted by Jonathan, Alex Muirhead, Tim Fischer, Adriano Fantini, Philipp Niedermayer, Leon Müller, Markus Lobedann, Erni, danielFHcode, lordkekz and 21 more
Agreed. I programmatically generate Typst manuals and I strive not to make the generation fail, because this will allow me to see what the output looks like - however I do want to check the logs and see if I missed some keyword in my index files or if there is a typo, or anything for which I built-in a fallback, but it's not as nice as if it worked properly.
I wanted to ask if there's been any behind-the-scenes progress on this front, as I have my own uses for emitting warnings instead of errors. All of the currently linked issues and pull requests are all a bit old. Is this simply on the back burner?
I know the uniwarn package exists, but my preference would be for a built-in solution.
Activity
laurmaedje commentedon May 25, 2023
Related: #600
[-]How to emit a "warning" of sorts when compiling a document?[/-][+]Support for emitting custom warnings[/+]adrfantini commentedon Nov 15, 2024
Agreed. I programmatically generate Typst manuals and I strive not to make the generation fail, because this will allow me to see what the output looks like - however I do want to check the logs and see if I missed some keyword in my index files or if there is a typo, or anything for which I built-in a fallback, but it's not as nice as if it worked properly.
Seilerflation commentedon May 26, 2026
RicardStark commentedon Oct 12, 2026
I wanted to ask if there's been any behind-the-scenes progress on this front, as I have my own uses for emitting warnings instead of errors. All of the currently linked issues and pull requests are all a bit old. Is this simply on the back burner?
I know the uniwarn package exists, but my preference would be for a built-in solution.
laurmaedje commentedon Oct 13, 2026
There hasn't been any progress.