News for hackers. Stuff that matters.
Re:Typst: An easy to learn alternative for LaTex by 8n4vidtmkvmk on Sunday July 21, 2024 @04:25AM (#41023435)
Can I use this to generate PDF invoices from PHP?

I've been searching for a good solution for the past 15 years. Never been happy with the solutions, and my PDFs are always very ugly.

Re:Typst: An easy to learn alternative for LaTex by tehbeard on Sunday July 21, 2024 @08:16AM (#41024550)
Used it in a recent PHP project, only real caveat/issue I ran into is you can't pipe out to STDOUT on windows:

Wrapper class I wrote to handle it: <https://gist.github.com/tehbeard/a54a2c77b4b8bf1af26920ce7a7...>

Re:Typst: An easy to learn alternative for LaTex by 8n4vidtmkvmk on Sunday July 21, 2024 @05:52PM (#41028500)
That's awesome, thanks!

I need to print big tables of data though, I remember hitting limits before when I've tried to pass too much as shell args.

Re:Typst: An easy to learn alternative for LaTex by flokl on Sunday July 21, 2024 @07:44PM (#41029457)
Then a slower but similar simpel option could be to write your data to a json/csv/xml file and read it directly with Typst.