(no title)
mr-karan | 5 months ago
Our previous pipeline was LaTeX-based (first pdflatex, then lualatex), but we were constantly fighting cryptic memory errors on large documents and huge Docker image sizes that slowed down boot times of our ephemeral workers.
Switching to Typst was a massive win for us. The single static binary resulted in tiny images and faster boot times. More importantly, the performance gains were huge. Overall compile times were ~3–4× faster than LaTeX. On really large documents (2000+ pages, mostly tables), Typst compiles in ~1 minute vs. ~18 minutes with lualatex.
Beyond performance, the better developer experience and good error messages was a nice bonus too.
We wrote a detailed post about the entire architecture - from the job orchestration with Nomad to the S3 optimizations and the Typst migration in particular. If you're curious, you can read it here: https://zerodha.tech/blog/1-5-million-pdfs-in-25-minutes
Archelaos|5 months ago
Here are my most important requirements: Multiple columns configurable for meaningful column and page breaks (minimum number of lines in a new column or page). Reliable automatic hyphenation for multiple languages (at least English and German, perhaps French, Italian and Spanish in the future). Pictures in columns with dynamic placing according to the available space. Complex tables and forms with sensible automatic page breaks. Background images. Different areas on the page which are treated like mini-pages. -- Is Typst capable of all that?
jijijijij|5 months ago
__mharrison__|5 months ago
I've migrated my invoicing (and all my other publishing/slides) to typst from latex and couldn't be more happy.
patrickkidger|5 months ago
I've not tried a couple of things you mention (e.g. background images) but e.g. for dynamic placing there are libraries like https://typst.app/universe/package/meander
The core of Typst is a pretty featureful well-thought-out FP language. This makes expressing libraries for any piece of functionality very pleasant.
lloydatkinson|5 months ago
It’s always been some combination of MJML, inline DIY HTML, or PDFs generated with Puppeteer etc.
Do you think Typst would be a good fit there too?
tempest_|5 months ago
I suppose it depends on how much web dev experience is on hand.
lupire|5 months ago
Etheryte|5 months ago
smartmic|5 months ago
Some people might say that writing in XML is annoying, but it isn't if you have a decent XML editor. In my case, it is Emacs nXML mode. Customisation is possible with DITA-OT [1] and plugins, and yes, it is also based on XSLT. Overall, I think DITA is an industry-proven XML powerhouse. It may be boring, but it has huge potential for anyone with advanced documentation requirements.
[0] https://dita-lang.org/dita/archspec/base/introduction-to-dit...
[1] https://www.dita-ot.org/
sixtyj|5 months ago
LaTeX notation works well for this and can be easily converted to both web and PDF formats.
But compilation speed definitely needs improvement.
On the other hand, how often do you actually need to compile thousands of pages into a single document? That’s really an edge case.
xigoi|5 months ago
commandersaki|5 months ago