the current show-stopper issue is that Typst can't insert PDF as figure[1], this makes a lot of scientific publication workflow impossible. [1]: https://github.com/typst/typst/issues/145
Exploring Typst, a new typesetting system similar to LaTeX
171–180 of 243 posts
Re: Exploring Typst, a new typesetting system similar to LaTeX
#172Earlier quoted context omitted.
If Typst aims for eventually competing with LaTeX, getting outside the bubble of "everyone uses English" is a very good step to take. And it's good to take it early, when your system architecture is still easy to change and not implicitly ossified around englishisms. Things like "if you ever want to translate your document from English to XXX, you will also need to port it from Typst to LaTeX" tend to be dealbreakers…
Typst authors being germans, one can hardly accuse them in the "everyone uses English" attitude. Typst `dif` math operator (as in dx/dt) produces upright 'd', quite unexpected to ones used to slanted 'd' tradition.
On the other hand, one can easily understand why, bein German, they assume Figure, Equation, etc. will always be capitalized.
> Typst `dif` math operator (as in dx/dt) produces upright 'd', quite unexpected to ones used to slanted 'd' tradition.
I would indeed expect an upright 'd'. It's an operator, not a variable. I don't recognize the tradition you're mentioning.
Re: Exploring Typst, a new typesetting system similar to LaTeX
#173References in established systems like LaTeX work the way they do for a reason: you don't want to embed words in them (like "Figure" or "Section") automatically because it does not work across languages. Eg. both the article and docs at https://typst.app/docs/reference/model/ref/ use an inline reference that wouldn't work in Serbian. Serbian (and many other languages) have suffix declensions, so while "Figure 4" is "…
Re: Exploring Typst, a new typesetting system similar to LaTeX
#174Re: Exploring Typst, a new typesetting system similar to LaTeX
#175Earlier quoted context omitted.
Hopefully they'll improve the reference system and multilingual support. But if you want a simple number for a reference, you can call "ref( , supplement: none)", or if you want this to be the default for the @label shorthand syntax you can set it globally with "#set ref(supplement: none)". Also typst knows the type of the referenced element. It's easy to write more elaborate rules that behave differently depending o…
I played with this briefly, and saw that supplement can also take a function, which presumable how you make @wibble return '(34)' instead of 'Equation 34'? The function is passed the equation itself, so supplement: x => x makes the reference identical to the whole equation (!), but it wasn't obvious to me how to extract just the equation number from an equation x? This is a really common idiom in mathematical writing…
You can probably do that with a function given as supplement but it looks a bit involved, I think you'd have to do something like in this example: https://typst.app/docs/reference/model/ref/#customization
(I think the reference system is an area where things can be improved to main some common use cases simpler.)
Re: Exploring Typst, a new typesetting system similar to LaTeX
#176I'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?re…
Re: Exploring Typst, a new typesetting system similar to LaTeX
#177Earlier quoted context omitted.
I'm curious, how does typst work out that I want the function expanded or I want the literal string if there's no marker.
There are 3 syntactic modes in typst: markup, code and math. In markup, everything is literal, unless you put a `#` sigil like `#expr` in which case `expr` is parsed in code mode. In code mode everything is an identifier, as usual in programming. In math its a bit of an ugly tradeoff but its ok: single-letter things are parsed as literals but multi-letter tokens are parsed as identifiers. Finally, in code you can enc…
Unless it's a "=", then it begins a new section. And unless it's a "-" or a "+" or a "/", then it's a list item. And unless it's a "<", then it defines a label, or a "@", then it's a reference to one. And unless it's a "_" or "*" or "`", then it changes font or style.
Re: Exploring Typst, a new typesetting system similar to LaTeX
#178Earlier quoted context omitted.
I 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 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…
Thanks 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.
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
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...
Re: Exploring Typst, a new typesetting system similar to LaTeX
#179Slightly offtopic: many commenters lament that latex is slow. I switched to https://tectonic-typesetting.github.io/en-US/ which is very fast and have better error reporting.
Re: Exploring Typst, a new typesetting system similar to LaTeX
#180My concern would be that this seems like such a niche market that only charging $8/month, raises long-term viability concerns. Last thing you want to do is use a platform that goes defunct. https://typst.app/pricing/
If I understand correctly the fees are only for an overleaf-type web collaborative editing experience. The typst program itself, the one you install on your computer, is free to use and open-source.