Live data from Hacker News

Typst 0.14

typst.app

91–100 of 171 posts

Re: Typst 0.14

#91
One of my biggest grievances with typst is that it still does not natively support locale-aware decimal separator formatting[1], and thus requires various kludges to present decimal numbers properly in non-English languages. Not that LaTeX is any better in that, though.

I think this should be solved quicker, because if it requires some sort of changes to syntax, we will have problems if the "legacy" syntax becomes entrenched, so this sort of decisions are better to be made sooner than later.

However, most my experiences with typst have been highly positive. It is much, much faster than LaTeX, and way easier. I am looking forward to see it to become more common.

1) https://github.com/typst/typst/issues/1093

Re: Typst 0.14

#92

Anyone using this for Literate Programming? A quick search found: https://github.com/litProgTypst/ (which I'm mystified by) and https://github.com/denkspuren/typst_programming (which hasn't been updated in two years) Not seeing anything specific at: https://typst.app/docs/reference/scripting I need to re-write my current project https://github.com/WillAdams/gcodepreview again --- maybe this would be a good fit? The u…

Would https://quarto.org/ fit the bill?

Maybe.

I looked at it a while back and will check it out again.

Re: Typst 0.14

#93
post #41

Earlier quoted context omitted.

I used LaTeX for decades and had convinced myself nothing could ever replace it. Just this month, however, I converted to Typst for a large project. Absolutely no regrets: undying respect to the great Knuth, but the experience with Typst is already simply better on almost every axis. I use TinyMist with vscode and the development experience is terrific. I was modifying templates within a day of picking it up, which—-…

Speaking of skill, learning a new language is always daunting, but I found that LLMs do a pretty good job of generating Typst code. I relied on that a lot for generating snippets of code, and learning about the language, which would've taken me more time otherwise. Although the Typst docs are pretty good, regardless.

What LLMs? In my experience they do a terrible job with Typst. Very frequently ChatGPT and Gemini will produce code that doesnt work. Im not sure if it's using an older syntax or just hallucinating. Additionally, it's rarely able to fix it after I provide the error and even copy-past docs.

Maybe I was just unlucky or you had better luck with another model. But I was very surprised to here this because Typst is my chief example for a language that LLMs are bad at.

Re: Typst 0.14

#94
post #88

It's indexing with imakeidx that's keeping me on LaTeX. Does anyone know offhand the state of indexing with Typst? https://en.wikibooks.org/wiki/LaTeX/Indexing

With a quick search I can see that the `in-dexter` package [1] provides something quite similar, though I'm not sure if it covers all usecases.

If you want to handroll this yourself you can probably have your `index` emit some `metadata` [2] which you can then `query` [3] for in your `printindex`. All of this would work inside the typst compiler and there would be no need for running an external `makeindex` command.

[1]: https://typst.app/universe/package/in-dexter

[2]: https://typst.app/docs/reference/introspection/metadata/

[3]: https://typst.app/docs/reference/introspection/query/

Re: Typst 0.14

#96
post #88

It's indexing with imakeidx that's keeping me on LaTeX. Does anyone know offhand the state of indexing with Typst? https://en.wikibooks.org/wiki/LaTeX/Indexing

With a quick search I can see that the `in-dexter` package [1] provides something quite similar, though I'm not sure if it covers all usecases. If you want to handroll this yourself you can probably have your `index` emit some `metadata` [2] which you can then `query` [3] for in your `printindex`. All of this would work inside the typst compiler and there would be no need for running an external `makeindex` command.…

Thanks. My search found that also, but it didn't appear to have the features I need, at least not at the time. If LaTeX becomes vexing enough, I'll consider the custom workflow you're describing. Thanks for the tips.

Re: Typst 0.14

#97

There's usually some confusion about this, so to clarify in advance: - The Typst online editor is proprietary: https://typst.app - The Typst compiler/CLI is open source: https://github.com/typst/typst I hear that the online editor is quite good, but personally I've only ever used the CLI. I originally picked up Typst as yet another replacement for PowerPoint (replacing my use of Marp), but have since used it for a po…

Speaking of core product and online editor: Over the decades many of the products I worked on developed some form of reporting feature. Not alway, but often they required PDF output. Not always, but often they ended up being LaTeX based, with all the nice and some of the ugly consequences. Especially the security story was never great. Does anyone know how hard it would be to integrate the Typst renderer into an exis…

I embed the typst binary in a go binary deployed to cloud run. I use this to generate pdfs on the fly.

I need to generate a 2 page invoice and i can generate it under 100 ms. IIRC, it's easier to integrate with rust. Since the pdf rendered is written in rust

Re: Typst 0.14

#98

There's usually some confusion about this, so to clarify in advance: - The Typst online editor is proprietary: https://typst.app - The Typst compiler/CLI is open source: https://github.com/typst/typst I hear that the online editor is quite good, but personally I've only ever used the CLI. I originally picked up Typst as yet another replacement for PowerPoint (replacing my use of Marp), but have since used it for a po…

I LOVE Marp! Why do you like Typst more than Marp for presentations?

Re: Typst 0.14

#99

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 be…

When I compile LaTeX files, I use tectonic¹ which automatically download dependencies, compiles in one pass, and hides temporary files. But the regulars users of LaTeX I know all use a web interface — IIRC, it's an instance of Overleaf² installed by their university, with real-time rendering.

So when I read your list, I had these tools in mind, and the only items that made sense to me were:

2. (minor compared to Overleaf) typst compiles faster.

3. Diagnostics are better.

4. (minor and arguable) Lists have 2 simpler syntaxes.

The other points were irrelevant (dependencies), wrong (macros) or really dubious (margins, Git, bibliography). I think Typst has many more interesting features over LaTeX.

¹: https://tectonic-typesetting.github.io/

²: https://docs.overleaf.com/on-premises/installation/using-the...

Re: Typst 0.14

#100
I've been really pleased with Typst so far - fast rendering, less verbose than (La)TeX in many ways (backslashes hurt now!) and unicode/emoji support really seals the deal. (Disclaimer: only using for semi-formal slides and notes, not for papers and important presentations)
Post reply on HN