3 ms·
> 5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros close to where you n
by gucci-on-fleek 1y ago
> 5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros close to where you need them.
You can define macros anywhere you want, but you can only load packages in the preamble (before \begin{document}). I'm not familiar with Typst, but I would assume that it also requires you to load packages at the top of the document (or at least that's the only place that you would want to load packages).
> 6. It's easier to version control and diff, especially if you use semantic line breaks.
Semantic line breaks should be totally fine with LaTeX too.
> 2. Compiling is instant.
> 3. Diagnostics are way easier to understand (sort of like Rust compiler suggestion style).
Agreed, these are definitely LaTeX's biggest weaknesses.
- mastermage 1y agoI am 95% sure that you can import wherever you want. I remember doing it with Tables i defined in an extra document and then imported only where i actually needed them.
- fn-mote 1y agoThere are multiple kinds of import in latex. The GP specifically mentions packages, so means \usepackage.