Live data from Hacker News

Exploring Typst, a new typesetting system similar to LaTeX

blog.jreyesr.com

21–30 of 243 posts

Re: Exploring Typst, a new typesetting system similar to LaTeX

#21
post #10

Love to hear some informed opinions on typst versus quarto.

There is overlap, with creating whole documents, but I can imagine at some point one could use Typst inside Quatro. (Like using Typst inside Obsidian.)

https://quarto.org/docs/output-formats/typst.html#raw-typst

Re: Exploring Typst, a new typesetting system similar to LaTeX

#22
post #10

Love to hear some informed opinions on typst versus quarto.

There is overlap, with creating whole documents, but I can imagine at some point one could use Typst inside Quatro. (Like using Typst inside Obsidian.)

Yes, Typst is fully supported as an output language of Quarto.

Exceptions: you’ll need extensions for slides, some layouts. No books support, yet.

[I work on this.]

Re: Exploring Typst, a new typesetting system similar to LaTeX

#23
post #14

This is neat. I've used Latex before, and it definitely suffers from poor ergonomics. Both the language and tooling contribute to this. The selling point seems to be that this is more similar to Markdown. That makes sense, Markdown is objectively more common and has more users than Latex. I've used both, but Markdown way more often. Here's something I don't understand: it would be trivial to make Typst even more simi…

> The selling point seems to be that this is more similar to Markdown. The problem is that extending Markdown syntax gets messy. #figure( image("image.jpg", width: 70%), caption: [ Observe the image in the picture ], ) This is kind of a strange blend of Markdown, CSS, JSON, and HTML. TeX at least has a consistent syntax.

It may be similar to Markdown if you squint your eyes real hard, but it's not Markdown.

Furthermore, quoting a random snippet without any elaboration is unhelpful and only serves to confuse people (as it already did for the other comment!)

# means "evaluate". figure(...) is the function being evaluated.

The syntax inside figure(...) is fairly regular, not too different from what you'd see in typical programming languages (but with a document-oriented twist like the %).

may seem to be related syntatically to #figure(...), but it's not. It's just a label. Like an HTML div tag with id="figure". It can very well be changed to in your example and it'd still work.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#24
post #14

Earlier quoted context omitted.

> The selling point seems to be that this is more similar to Markdown. The problem is that extending Markdown syntax gets messy. #figure( image("image.jpg", width: 70%), caption: [ Observe the image in the picture ], ) This is kind of a strange blend of Markdown, CSS, JSON, and HTML. TeX at least has a consistent syntax.

Strange to the untrained eye, perhaps. To me that just looks like a function. In a long document I recently wrote, I defined a custom function #let img(filepath, inset: 0.5em, caption: none) = { figure( box(inset: inset, stroke: 0.5pt + gray, image(filepath)), caption: caption ); } and just used it like: #img("images/excel-5.0.png", caption: "Microsoft Excel 5.0 was released in 1993.") edit: fixed unused inset param

Looks like it has a bug, the inset parameter is unused

Re: Exploring Typst, a new typesetting system similar to LaTeX

#25
I've been looking into it. It's `blazingly fast` (aside from the rust joke, it really is way faster than latex), the syntax is more "modern", consistent, etc.

The main problem is the popularity. It just does not have enough packages, at least for my use case.

I mainly do a lot of equations (simple math), and a loooot of tikz (forest, circuitikz, pgfplots, etc.) [https://gitlab.com/vslavkin/escuela/-/tree/main/5to?ref_type...] I'm not a fan of tikz, but it's the only way to mantain the graphics homogeneous, clean, easily editable, compiled with the document and with links/references. Cetz (the typst alternative) is years behind. I've been thinking of contributing, but tikz is really complex, and I don't have enough time ATM.

Besides the typst packages, it also lacks the editor packages. I am an emacs user insert joke here, and I use AucTeX, which is a really great, and gigant package to edit latex (+cdlatex). AFAIK there's nothing like it for typst, which makes me way slower.

Another thing is that they changed the math syntax. While the latex one wasn't perfect it was insanely popular, because of its use on markdown and a lot of pages (and this was thanks to mathjax iirc).

The good thing is that something like latex or typst will always be needed, so there'll always people that want to have something like it; latex/tex isn't really great, and it has a really low entry bar.

Maybe I'll switch when I have more time to study it and make packages. (It could be as soon as next year or a late as... never)

Re: Exploring Typst, a new typesetting system similar to LaTeX

#26

I was hoping that the syntax for equations would be borrowed from LaTeX but it is not the case unfortunately. I would like to switch away from LaTeX, but i think the syntax for equations in LaTeX is pretty sensible actually.

Have you tried with ConTeXt? As LaTeX, it's built atop TeX - though it's not as modular (and popular) it's more powerful.

I'd like to like Typst, but (as mentioned the other day) it follows the same model as LaTeX - great for some predefined styles, but the moment you want or need something different you'd need to get third party plugins, and with that all the perks and cons they may have.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#27
post #24

Earlier quoted context omitted.

Strange to the untrained eye, perhaps. To me that just looks like a function. In a long document I recently wrote, I defined a custom function #let img(filepath, inset: 0.5em, caption: none) = { figure( box(inset: inset, stroke: 0.5pt + gray, image(filepath)), caption: caption ); } and just used it like: #img("images/excel-5.0.png", caption: "Microsoft Excel 5.0 was released in 1993.") edit: fixed unused inset param

Looks like it has a bug, the inset parameter is unused

[deleted]

Re: Exploring Typst, a new typesetting system similar to LaTeX

#28
post #24

Earlier quoted context omitted.

Strange to the untrained eye, perhaps. To me that just looks like a function. In a long document I recently wrote, I defined a custom function #let img(filepath, inset: 0.5em, caption: none) = { figure( box(inset: inset, stroke: 0.5pt + gray, image(filepath)), caption: caption ); } and just used it like: #img("images/excel-5.0.png", caption: "Microsoft Excel 5.0 was released in 1993.") edit: fixed unused inset param

Looks like it has a bug, the inset parameter is unused

Whoops, thanks. Wrote this one-off and never needed to change the inset so didn't catch that. Fixed!

Re: Exploring Typst, a new typesetting system similar to LaTeX

#29
In the very limited time I used typst it has been pretty amazing, but imho there is one missing feature that a LaTeX successor, but even more so, templating engine should have. Come up or adapt a format, that can defer certain styling decisions to the consumer of the document. Stuff like, font, font size, line spacing, citation style, double or single column, numeration style, etc.

On a different note, we got to find a better way to exchange data than pdf reports. In my totally made up estimation about 10% of development time for enterprise software is spend on variations of these pdf templating tools and another 20% on extracting data from such generated pdfs.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#30
post #15

Previous discussions about Typst. https://news.ycombinator.com/item?id=41014941 https://news.ycombinator.com/item?id=38354422 https://news.ycombinator.com/item?id=38047224 https://news.ycombinator.com/item?id=35250210 https://news.ycombinator.com/item?id=34423590

Thanks! Macroexpanded:

Typst: An easy to learn alternative for LaTex - https://news.ycombinator.com/item?id=41014941 - July 2024 (187 comments)

Building the New Hypermedia Systems using Typst - https://news.ycombinator.com/item?id=40986352 - July 2024 (1 comment)

No-Signup Typst Tools - https://news.ycombinator.com/item?id=40905678 - July 2024 (1 comment)

Typst Symbol Classifier - https://news.ycombinator.com/item?id=39878069 - March 2024 (1 comment)

Show HN: A no-frills CV template using Typst and YAML to version control CV data - https://news.ycombinator.com/item?id=38990197 - Jan 2024 (8 comments)

TexText: Re-editable LaTeX/ typst graphics for Inkscape - https://news.ycombinator.com/item?id=38804431 - Dec 2023 (2 comments)

Typst – Compose Papers Faster - https://news.ycombinator.com/item?id=38354422 - Nov 2023 (134 comments)

I rewrote my CV in Typst and I'll never look back - https://news.ycombinator.com/item?id=38047224 - Oct 2023 (25 comments)

typst-conceal.vim: cute UTF-8 conceal for typst - https://news.ycombinator.com/item?id=37862666 - Oct 2023 (1 comment)

Typst 0.7: floating content, improved SVG support and better math layout - https://news.ycombinator.com/item?id=37038708 - Aug 2023 (1 comment)

Typst: Finally a Solid LaTeX Alternative - https://news.ycombinator.com/item?id=35835703 - May 2023 (3 comments)

Typst starts its public beta test and goes open source - https://news.ycombinator.com/item?id=35364822 - March 2023 (1 comment)

Typst, a new markup-based typesetting system, is now open source - https://news.ycombinator.com/item?id=35250210 - March 2023 (146 comments)

Typst: A Programmable Markup Language for Typesetting [pdf] - https://news.ycombinator.com/item?id=34423590 - Jan 2023 (53 comments)

What If LaTeX Had Instant Preview? - https://news.ycombinator.com/item?id=33222356 - Oct 2022 (23 comments)

Typst: Compose Papers Faster - https://news.ycombinator.com/item?id=32209794 - July 2022 (30 comments)

Typst: Compose Papers Faster - https://news.ycombinator.com/item?id=32205005 - July 2022 (1 comment)

Post reply on HN