Rendered at 14:34:57 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
hedgehog 19 hours ago [-]
Typst has a bunch of nice features, it seems like I discover another every time I use it for something. Most recently I saw that you can import TOML (or JSON if you really want) data into the template, making it really simple to populate the content from another tool.
sudorm-rf--no-p 18 hours ago [-]
Yeah, quite useful for generating pdfs for invoices from json
PaoloBarbolini 11 hours ago [-]
And unlike browser-based solutions, Typst can produce PDF/A, it can embed files into the PDF and it can produce charts and QR Codes on it's own without having to rely on an external solution.
commandersaki 16 hours ago [-]
I write this in pretty much every Typst thread.
Here are some notes I wrote when I started out with typst when comparing with LaTeX and some recent additions:
1. It doesn't generate 5 bloody files when compiling.
2. Compiling is instant.
3. Diagnostics are way easier to understand (sort of like Rust compiler suggestion style).
4. List items can be either - item1 - item2, etc. or [item1], [item2]. The latter is way better because you can use anchoring to match on the braces (like "%" in vim), which means navigating long item entries is much easier.
5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros close to where you need them. [I've been informed this is actually incorrect and Latex does allow you to specify macros anywhere]
6. It's easier to version control and diff, especially if you use semantic line breaks.
7. Changing page layout, margins, spacing between things, etc., footers with page counters, etc. just seems way easier to do.
8. Compiling with Typst is always one pass.
9. I'm not sure how this would compare with Latex but I'm in law school and needed to cite using AGLC4 which has a CSL (citationstyles.org) template supported by Typst; I have confirmed the CSL XML is correct but doesn't render properly in Typst. The workaround I found was to hand typeset my own citation and bibliography which sucks.
10. Most of what you need is built in to Typst and I've yet to need to import a package or template; even for the most basic documents with Latex you find you'll need to use many packages (such as fancyhdr for customised headers and footers).
11. Latex distributions can be a monstrosity, gigabytes in size like TexLive, and I acknowledge you can get slimmed down on-demand version such as Miktex. There's just one distribution of Typst and its pretty lean, although it might be nice to have multiple implementations in the future.
12. Latex markup looks like an eye-sore, typst reads more naturally as plain-text with a bit of a markdown flavour.
13. Although I loathe discord, I find getting real time support so easy with an almost real time answer to any question I have and the community is heaps friendly; getting support with Latex is not so easy.
film42 18 hours ago [-]
I use typst for all sorts of things in customer apps: conference badges, customer invoices, social media asset generation (like thumbnails for podcasts, customer reviews, etc.), certificates of completion, progress reports, and much more. It's just so robust, efficient and works everywhere. Never again do I need to worry about html formatting to make PDFs.
selfhoster1312 8 hours ago [-]
As someone who makes a professional use of typst, i'm curious how you support the project financially? It seems like they have a Github Sponsors setup, but their only commercial offering is for the web editor which IMO brings little value.
I was looking for a way to donate them a little cash the other day because i found typst super useful for my non-profit activities (and super easy to teach), but i didn't find one.
commandersaki 5 hours ago [-]
They say that the subscription to their web application is a good way to fund them. Unfortunately they don't do bounties because I would like to focus money into HTML export support.
selfhoster1312 5 hours ago [-]
Yeah, i was not looking for a subscription but rather a one-off donation (either cash via post or bank wire).
I'm curious about what's missing for you in the current HTML export? I haven't tried it but i've read about people playing with it and it seems already quite comprehensive from an outsider's look?
ethin 16 hours ago [-]
I love typst. It's about time we have an authoring system like it that also let's you publish HTML versions of things you write with it instead of just PDFs. Papers in Academia for the longest time have been PDFs, which screen readers are terrible with, mainly because the PDF format is an abomination, and makes accessibility (let alone interoperability) unnecessarily painful.
leephillips 15 hours ago [-]
PDF serves an important purpose; it’s not an abomination. It conveys exactly what the author or publisher intended. HTML can not do this. It can serve as a reliable archive and be made (imperfectly) accessible, as described in the article. Of course all this comes with significant tradeoffs, including reduced interoperability, as you say. But there are good reasons for academic publishing, especially in math, CS, and physics (but also in some areas of the humanities) to prefer PDFs—it’s not just obstinacy.
eviks 12 hours ago [-]
> It conveys exactly what the author or publisher intended.
How many authors intended to break copy and paste of their data?
leephillips 11 hours ago [-]
I don’t have the data to answer your question. But I’d like to point out that it has little to do with my assertions. Note in particular the word “conveys”.
eviks 7 hours ago [-]
The word doesn't help without specifying the set of intents you meant.
But in general that would also be a mistaken post-hoc rationalization of the state of an ecosystem.
The "author's intent" could just be "I just want to fit the requirement". And the publisher's intent could just be "I don't want to change". None of which is about the deficiency of alternative formats re. "conveying [supposedly design] intent"
And PDF is an abomination because of the awful way it implements the "intent preservation"
ethin 13 hours ago [-]
I mean, I know why the format is used and what it does. That doesn't make any less of an abomination. Parsing it is an absolute clusterfuck, and accessibility for it is horrifically bad even in Acrobat. By contrast, something like HTML is far better, even if it doesn't necessarily display the document exactly the same way all the time on all devices.
andonvr 20 hours ago [-]
I was able to use Typst for my thesis, it felt sooo smooth. Turned it into a conference paper half a year later, and had to use the IEEE Latex format to hand it in. Oof, that was humbling.
MaxBarraclough 18 hours ago [-]
As someone who hasn't used Typst, how manual was the conversion process?
leephillips 18 hours ago [-]
Not the person you’re asking, but I’ll just mention that pandoc has a Typst reader. I use a pandoc filter to write in markdown with math in Typst and convert to LaTeX:
To paraphrase Churchill, LaTeX is the worst form of typesetting experience except for all those other technologies that we've tried.
Glad that that's no longer the case!
dwrodri 21 hours ago [-]
As someone who used LaTeX heavily in grad school, using Typst in VSCode to create bespoke invites to an event was quite nice! Would highly recommend giving it a spin.
spinningslate 17 hours ago [-]
I find typst a joy to use, either in the online editor or locally. It’s the best combination I’ve yet come across of “write what you mean” - simple markdown-like syntax - with document layout and styling. Happily pay for a subscription even though most of the time I don’t use the online editor. Software worth paying for.
rurban 5 hours ago [-]
But you still cannot compile to LaTex properly. The PDF looks great, and is easier to write than with LaTex, but for eg. arXiv filings you need Latex sources.
ajkjk 17 hours ago [-]
The MathML example here is... Definitely not TeX-quality. At least not in my phone. It looks really janky.
xigoi 5 hours ago [-]
That depends on the font. If you supply the Latin Modern font with your website, MathML equations will look exactly like in LaTeX.
leephillips 2 hours ago [-]
Ah, I (the article author) am at fault here, for not pointing this out. Things looked fine in my testing because I have the LM font installed on my system.
leephillips 17 hours ago [-]
Interesting. What browser? Because in FF or Chrome on Linux desktop, it looks basically identical to LaTeX output. But unlike when creating PDFs, you’re at the mercy of your browser’s MathML implementation (another reason PDF is great).
Not so good. But the problem is not Typst, it’s Chrome on Android, or the way you have that configured.
EDIT: I just checked the article on my phone, and every browser renders the equation as in your screenshot. FF and Chromium on desktop are perfect. Another example of how mobile browsers suck.
leephillips 2 hours ago [-]
I was maybe too hasty here. Another comment made me realize that the difference is due to the presence of the Latin Modern font on my desktop and its absence from my phone. Sorry, mobile browsers. You still suck, but less energetically than I had concluded.
So authors using MathML should supply the LM font for download or advise their readers.
wxw 19 hours ago [-]
I use Typst for formatting my resume, and it’s been great. Models are pretty good at writing it too if you don’t want to learn the syntax.
merb 17 hours ago [-]
I just compared typst with peachpdf (c#) and others to generate big reports, invoices, etc. coming from itext 4 the open source version which was lgpl. And was blown away.
Itext was quite efficient because layouting did not do a full css thingy. Which peachpdf does, which of course produces a better looking pdf. But full css eval, could byte your ass with flow elements and div wrappers. You can be extremely non performant and ram hogging pretty fast, especially since peachpdf is not optimized.
However typst? God , it is so fast that downloading and rendering it inside a pdf viewer is the new bottleneck… it generates 2000 page pdfs in second with maximum of 2 gb , however most of the time it used 250mb memory. Peachpdf used 15-30gb for that, heck even itext used 4 gb. Cpu everything was so fucking fast, even while going through p/invoke.
I just fucking love it. I mean sometimes the syntax is weird, but it’s the best layout+data to pdf renderer.
podviaznikov 17 hours ago [-]
started using typst in the past year.
creating my resume in it felt as magical as it can be.
i loved the tech and ideas behind typst even added native support for it in my WYSIWYG markdown(and typst) editor[1].
1. It doesn't generate 5 bloody files when compiling.
2. Compiling is instant.
3. Diagnostics are way easier to understand (sort of like Rust compiler suggestion style).
4. List items can be either - item1 - item2, etc. or [item1], [item2]. The latter is way better because you can use anchoring to match on the braces (like "%" in vim), which means navigating long item entries is much easier.
5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros close to where you need them. [I've been informed this is actually incorrect and Latex does allow you to specify macros anywhere]
6. It's easier to version control and diff, especially if you use semantic line breaks.
7. Changing page layout, margins, spacing between things, etc., footers with page counters, etc. just seems way easier to do.
8. Compiling with Typst is always one pass.
9. I'm not sure how this would compare with Latex but I'm in law school and needed to cite using AGLC4 which has a CSL (citationstyles.org) template supported by Typst; I have confirmed the CSL XML is correct but doesn't render properly in Typst. The workaround I found was to hand typeset my own citation and bibliography which sucks.
10. Most of what you need is built in to Typst and I've yet to need to import a package or template; even for the most basic documents with Latex you find you'll need to use many packages (such as fancyhdr for customised headers and footers).
11. Latex distributions can be a monstrosity, gigabytes in size like TexLive, and I acknowledge you can get slimmed down on-demand version such as Miktex. There's just one distribution of Typst and its pretty lean, although it might be nice to have multiple implementations in the future.
12. Latex markup looks like an eye-sore, typst reads more naturally as plain-text with a bit of a markdown flavour.
13. Although I loathe discord, I find getting real time support so easy with an almost real time answer to any question I have and the community is heaps friendly; getting support with Latex is not so easy.
I was looking for a way to donate them a little cash the other day because i found typst super useful for my non-profit activities (and super easy to teach), but i didn't find one.
I'm curious about what's missing for you in the current HTML export? I haven't tried it but i've read about people playing with it and it seems already quite comprehensive from an outsider's look?
How many authors intended to break copy and paste of their data?
But in general that would also be a mistaken post-hoc rationalization of the state of an ecosystem.
The "author's intent" could just be "I just want to fit the requirement". And the publisher's intent could just be "I don't want to change". None of which is about the deficiency of alternative formats re. "conveying [supposedly design] intent"
And PDF is an abomination because of the awful way it implements the "intent preservation"
https://lee-phillips.org/typstfilters/
Glad that that's no longer the case!
https://imgur.com/a/0VauWLv
EDIT: I just checked the article on my phone, and every browser renders the equation as in your screenshot. FF and Chromium on desktop are perfect. Another example of how mobile browsers suck.
So authors using MathML should supply the LM font for download or advise their readers.
However typst? God , it is so fast that downloading and rendering it inside a pdf viewer is the new bottleneck… it generates 2000 page pdfs in second with maximum of 2 gb , however most of the time it used 250mb memory. Peachpdf used 15-30gb for that, heck even itext used 4 gb. Cpu everything was so fucking fast, even while going through p/invoke.
I just fucking love it. I mean sometimes the syntax is weird, but it’s the best layout+data to pdf renderer.
creating my resume in it felt as magical as it can be.
i loved the tech and ideas behind typst even added native support for it in my WYSIWYG markdown(and typst) editor[1].
[1] https://wander.md