Remix.run Logo
mcswell 4 hours ago

From the article: "Typst... can, for example, easily split large tables across page breaks, something that LaTeX struggles with even with specialized packages." That would be nice. I remember when I first started working with LaTeX that I was surprised that I needed to decide ahead of time whether a table would fit on one page or not. If Typst can make that decision on its own, that's a step forward.

One thing I have not seen mentioned as yet: cross-references. In LaTeX, I can create cross references to anything: page number, table or figure number, even an item in a numbered list. Does Typst have that capability? I saw a package for cross-referencing numbered boxes (it's called statementsp), but it wasn't clear how you xref other things. (Not saying it's not there, it just doesn't jump out at me.)

flokl an hour ago | parent [-]

yes, cross-references are possible by adding an <anchor> and referencing it with @anchor. It works for headings, figures, equations, footnotes, and with a slightly different syntax also for page. [1] Numbered lists are currently not natively supported, only with the package itemize [2].

[1] https://typst.app/docs/reference/model/ref/

[2] https://typst.app/universe/package/itemize