Hacker Newsnew | past | comments | ask | show | jobs | submit | raybb's commentslogin

I'm currently working on my fourth book produced using Typst, and it has been nothing but amazing. LLMs struggle with Typst a bit but other than that it has been an absolute joy to work with.

I have a pretty good workflow set up for publishing these books, which are mostly collections of student essays. I use Pandoc to convert the students' Word documents into Typst, then unify the formatting, styles, and headers (mostly via LLMs). From there, I generate both a nice digital PDF and a print-ready PDF using Typst, and then use Pandoc again to convert the Typst into what ultimately becomes an EPUB.

It all works quite beautifully. Most of the challenges I've run into are related to Typst features that don't map cleanly to Pandoc, so I end up adding a few funky conditionals so those features aren't hit when converting via Pandoc. sys.inputs makes that very easy https://github.com/jgm/pandoc/issues/11588

The books in question: https://thelabofthought.co/shop


"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.


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.

I have the same experience with ChatGPT, but Gemini works very well and produces valid code and good results even using plugins (i.e., diagramming)

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.

Using skills can help a lot. They can guide agents to not use LaTeX syntax (a common problem) and provide access to the full documentation.

https://github.com/apcamargo/typst-skills/


Frontier LLMs work great with Typst. (Have published multiple books using it).

I’ve been using Typst pretty heavily for the past few months after a few years of LaTeX, and I’ve had a similar experience. I do really love Typst though. It feels nimble, pleasant to work with and like a huge improvement over LaTeX in a lot of ways.

That said, LLMs have been noticeably better with LaTeX than with Typst for me. Typst works fine for the basics: loops, functions, small layout tweaks and that kind of thing. The problems mostly show up with more niche features.

What helped me was pointing the LLM to the current Typst docs, either the website or as they mention in their blog about the new update they also have a PDF export of the docs now (https://github.com/typst/typst/releases/download/v0.15.0/typ...). The docs are very good, and I suspect older training data plus Typst’s breaking changes are part of the problem.

One downside is that because I started using Typst with LLMs right away, I got a big head start but never became fully fluent in the language. I still find myself going back to the docs, the internet or an LLM more often than I’d like.


And yet you probably understand Typst better than you ever understood LaTeX...

A jobs board for urbanists. I run the newsletter https://urbanismnow.com and our jobs links are some of the most popular and we also get more jobs than we can put each week in the newsletter. So thought I'd spin it out into something a little separate. I've been noodling on it for a while but I think we're about ready to launch.

I've also recently setup Hermes to be a bit of a project manager for my side projects and it's worked quite well. Gave it a little CLI to see my todos, projects, and "areas" (ongoing long term things). Then it bugs me once in a while when a project is going stale. One of the nicest things is being able to add stuff to the past so if I did work on something but it wasn't associated with a todo I just let it know and then it'll backdate that.


Cool! There don't appear to be any jobs listed though?

Right now they're towards the middle of each newsletter. If you ctrl+f for "Delft" you'll see the first job here. https://urbanismnow.substack.com/p/73-bart-prom-boda-boda-tr...

It's far from ideal and that's why I'm splitting it out soon.

Do you work on urbanism related things?


No, but I have a very strong interest in it. I also built a real estate search platform that put public transit and biking first and it achieved a little bit of success in Ireland (not a place with great transit or biking) before I finally had to stop investing time into it.

How'd you come up with your pricing?

Happy to chat about it with you. Email me at aaron@onebusaway.org

I've been making ebooks for a nonprofit using typst and pandoc for a few years and it works quite well.

We generate a pdf ebook, a print version, and a epub. They each have little tweeks but are all defined conditionally using sys.input.

It was rough at first and I've had to open around a dozen or so issues for pandoc to improve things. Now it's pretty seamless.


I saw typst in my explorations but LaTeX had a few more of the controls I was looking for in print, and I really wanted a Standard Ebooks compliant EPUB. I might revisit at some time though. Thanks for bringing it up.


What kind of controls for print? I'm pretty amature all things considered so don't use any advanced features.

Also, I doubt if pandoc produces a highly compliant epub but it is always improving so who knows.


Last I checked, typst doesn't have baseline grid support (i.e., assures vertical lines of text across spreads are aligned, thus text doesn't bleed through recto to verso).


Seems you're right and there is an open issue https://github.com/typst/typst/issues/5225


How to do connect deepseek to Claude code?



I am not the author of the article. Just keeping the title the same.

Being mostly in the software world it is very fun to see how something like this can be put together relatively easily.


At least they seem happy with their MicroMasters program which may or may not be helping get more student in to the full grad programs:

https://news.ycombinator.com/item?id=48138590


Yeah... Kinda like how Paris used the Olympics to get the political willpower to cleanup the river.

City's trying to brand themselves and look good on a global stage does funny things.


Hmm I also tend to clean house thoroughly only when guests come over. Perhaps an effect that should be applied.


Or like how San Francisco got rid of all the homeless people when Xi Jinping came to visit in 2023.

https://finance.yahoo.com/news/san-francisco-mocked-china-mo...


This is freaking great! How are you involved? Where does it get this cool image from? Dog Eared Books https://cartes.app/?allez=Dog+Eared+Books%7Cn6780338385%7C-1...

Also, I noticed the map is at least a few days behind in my area, how long does it take for you to get updates?

Do you plan to offer any way to sync data between devices?


I'm the founder and main developer.

> Where does it get this cool image from? Dog Eared Books https://cartes.app/?allez=Dog+Eared+Books%7Cn6780338385%7C-1...

We extract the og image from the website. https://codeberg.org/cartes/web/src/branch/master/app/getOgI...

> Also, I noticed the map is at least a few days behind in my area, how long does it take for you to get updates?

Yes, we have a double problem : first, the planet dump is not available every day. Then, our tilemaker script runs every week.

https://cartes.app/maj

> Do you plan to offer any way to sync data between devices?

Hopefully ! Without any account though, that's too much work. Except maybe for the future paid offers.


California high speed rail isn't running now but it is improving lots of things along the way. For example one of the most dangerous crossings in the state is now grade separated with the Rosecrans/Marquardt Grade Separation Project.

https://www.metro.net/about/media-relations/156-million-new-...


Certainly worth $100 billion


It was $156 million? About half of that was funded by the high speed rail budget


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: