4 ms·
I really want to like this because it seems a lot more accessible to folks than latex but I'm getting that "uncanny valley" feeling like when I look at equation
by seanhunter 2y ago
I really want to like this because it seems a lot more accessible to folks than latex but I'm getting that "uncanny valley" feeling like when I look at equations that have been typeset in MS Word. They look almost, but not quite, good.
Like if you look at the equation for Binet's closed form solution for Fibonacci numbers in the link below from their github, it looks to me like there is a bit too much space on either side of the plus sign in the equation for phi on the right hand side. And phi^n on the left-hand side looks too close to the 1/sqrt(5).
https://user-images.githubusercontent.com/17899797/228031796-ced0e452-fcee-4ae9-92da-b9287764ff25.png https://user-images.githubusercontent.com/17899797/228031796...
- cbolton 2y agoI think you're imagining things... This spacing stuff is mostly defined in the font files and typst uses the same math font (or a more recent version, depending on your LaTeX config). I made a small comparison: https://imgur.com/a/0k6dsok https://imgur.com/a/0k6dsok Note that by default, typst uses the book weight from New Computer Modern. This corresponds to the default settings in LaTeX with the "fontsetup" package. The only difference I can see is the spacing after the comma. Not sure why typst does it differently. I think typst might be doing the right thing here actually, but it's easy to adjust if you want. My typst code: $ round(1 / sqrt(5) phi.alt^n), quad phi.alt = (1 + sqrt(5)) / 2 $ My LaTeX code: \[ \left\lfloor\frac{1}{\sqrt{5}} \phi^n\right\rceil,\quad \phi = \frac{1+\sqrt{5}}{2} \]
- seanhunter 2y agoThanks for doing the comparison but that just looks to me like I’m not imagining it. There’s more space around the plus sign with typst.
- cbolton 2y agoCould it be an illusion because the "zoom" is a bit different? (I was screenshotting different applications). Here's a better comparison: 11pt size for both, then importing the LaTeX output in typst (using SVG conversion since typst cannot import PDF): https://imgur.com/a/aZRx6fs https://imgur.com/a/aZRx6fs I removed the "comma" that produced different spacing, and added the missing F_n. It seems there's still some different in spacing due to the quad. If you still think the spacing around '+' is different you'll have to add some highlight/measurements or something to convince me, because they look quite identical to me...
- seec 2y agoYou have a Mac with fractional scaling, your screenshots show the common blurriness render issue more than anything else I believe. Apart from that there is clearly a size difference but I agree that it's quite close. I think it's good to be detailed oriented but I'm not sure the fetish around Latex rendering is warranted.
- cbolton 2y agoI think the size difference was just me being careless with zoom levels in different apps. I thought it was enough to make the point, since you can compare the space sizes to the character sizes. I put another comparison here: https://imgur.com/a/aZRx6fs https://imgur.com/a/aZRx6fs , this time with same font size and zoom level. Anyway I agree that looking exactly the same as Latex is not particularly desirable, but it helps for convincing Latex users to switch. (The screenshots were made on Linux, with scaling but not fractional I think... But I can't check right now)
- seec 2y agoOK that must have been the screenshot software and zoom producing the blurriness. In this new screenshot the rendering is perfect and one can't really tell any difference. As for Latex I think it's a strong desire to belong to a special club that makes people use it and try to stick to the very specific look. It does render math equation nicely, but the rest isn't anything special, especially compared to modern font/techniques.
- seanhunter 2y agoI agree with you entirely fwliw. For me it's not a fetish particularly, the spacing just looks too wide in that one case and the comparisons if anything confirm that. "Too wide" is of course entirely a matter of personal opinion but I can't see myself switching to something I don't prefer the output of. I may well change my mind in future and I'm probably going to give typst a go at some point, because looking at the website there's a lot to like imo. Goodness knows for all that latex produces beautiful output it is a system with a lot of quirks and warts.