3 ms·
Does this have support for macros? It doesn't appear to, and so feels a bit like another variant on markdown (with its own special syntax)? It's not clear to me
by aragilar 2y ago
Does this have support for macros? It doesn't appear to, and so feels a bit like another variant on markdown (with its own special syntax)? It's not clear to me why I'd use this, compared with RST (where I can generate LaTeX or HTML, and script with python)?
- nmca 2y agoIt has functions which replace macros. One would use it instead of latex because it is immeasurably faster and more sane.
- constantcrying 2y agoNo, it has no macros, that is its greatest selling point. Instead you can use an embedded programming language which will look familiar to anyone who has some experience with software development to script it. Replacing TeX's abysmal macro expansion language with a reasonably normal programming language is one of the reasons you would use it. Look at the example on their GitHub to see how the language works in a document.
- aragilar 2y agoI take it you don't write much maths then? Most of the macros I define are to make the process of writing maths faster, easier and more correct (common expressions become short macros, macros for specific semantics etc.), and the lack of amsmath-equivalent means that Typst loses out on a major part of its audience. The "reasonably normal programming language" part is a turn-off for non-software-devs, and for software devs I'm not sure why I wouldn't generate LaTeX via something like jinja2, or directly create PDFs with reportlab.