logoalt Hacker News

weinzierlyesterday at 7:28 PM2 repliesview on HN

"LLMs struggle with Typst a bit"

My experience is the opposite. Especially when instructing the LLM to do very fine grained and detailed adjustments. Works like a charm.

Typst is my go-to format if I need more than plain text.


Replies

echoangleyesterday at 7:49 PM

I had the same experience as the root commenter. Sometimes ChatGPT seems to generate invalid typst code that doesn’t even compile. Maybe the syntax changed and it did work at some point but some stuff looked so wrong that I would guess it just doesn’t have enough training data for proper typst generation without feeding examples into the context first.

cageytoday at 12:10 AM

My experience is the same. It was agonizing directing Claude Code (Opus 4.7 at that time) to create a (non-mathematical) preso using LaTex. After banging my head against that wall for too long, I asked why this process (placing entities on the output PDF page according to specific requirements) was so error prone, and received the answer "LaTex is really the wrong tool for this job". I chose Typst from among the offered alternatives, and it has been a MUCH better experience. I switched my resume to Typst too.