logoalt Hacker News

Gribouille 0.3.0: A Grammar of Graphics for Typst

186 pointsby mcanouillast Monday at 1:35 PM68 commentsview on HN

Comments

NiloCKtoday at 4:20 PM

Is typst a good tool for something like a flyer (eg, printable respecting fold lines) or more generically one-page posters?

I see PDF as a blessed output, but it seems mostly in context of longer form typesetting-heavy workflows (books, papers), rather than design-heavy.

show 2 replies
matijsvzuijlentoday at 7:56 AM

Why are all the parameters full words except 'labs'? I find it jarring because to me 'lab' is short for laboratory, not label.

show 2 replies
red_admiraltoday at 10:30 AM

Always pleased to see Typst mentioned. TeX made a lot of choices that made sense at the time, but TeX macros and C #defines especially when nested and/or not properly bracketed to allow nesting are a mess when things go wrong.

show 1 reply
KolmogorovComptoday at 5:56 PM

I actually think that with LLM we may very well hit a plateau in innovation here, because now the ugly syntax is not a hurdle anymore, since you don’t write it anymore by hand.

staredtoday at 10:49 AM

Interesting! If I get it right, the API is in the spirit of Observable Plot (https://observablehq.com/plot/), less ggplot2.

In any case, I'm curious whether aes is necessary, or whether it would suffice to drop this function entirely and just use keys in the mapping (similarly for labs). Or, more broadly, whether using patterns from other implementations of the Grammar of Graphics is a conscious decision, or some sort of legacy baggage.

spider-mariotoday at 8:42 AM

What’s with the slanted figures until you hover over them?

jeremyscanvictoday at 2:27 PM

Is ggplot2 considered to be a nice interface to plot things compared to say matplotlib in Python? I'm asking out of curiosity, I haven't touched R much

show 2 replies
elsojatoday at 12:45 PM

It seems to be fully written in native Typst, without any WASM backend. I wonder how is the performance like for complex plots or for documents with a large number of figures.

unrealhoangtoday at 5:40 AM

This is awesome, is there a way to render the graphics/chart in svg so that we can implement something like hover & popup (with data information)?

show 1 reply
adamnemecektoday at 6:24 AM

Typst is the most important open source project of the last 5 years.

I predict a future where markdown and latex are largely replaced by typst. And I couldn't be more excited.

It is such a stepup from markdown and latex. Try it today if you are intrigued.

show 6 replies