Live data from Hacker News

Typst, a new markup-based typesetting system, is now open source

github.com

131–140 of 147 posts

Re: Typst, a new markup-based typesetting system, is now open source

#131

Earlier quoted context omitted.

For me the biggest ones are: 1. Compilation is ridiculously fast. 2. The language is miles more intuitive, and doesn't require nearly as many hacks. In a handful of hours using typst I've written much more interesting things than I ever would've attempted using latex macros. This might be less important for you, but my latex usage is intermittent, so I've always forgotten it by the next document I write.

And do the intuitiveness and speed not come at the expense of some expressive power limitation?

I'm not a particularly hardcore latex user, but in my observation it's the opposite: Because it's a "real" programming language, not just a macro system, it scales much better to complex tasks. Even simple things generally take fewer characters than latex.

E.g., during the preview I built a very basic CAS with it, for simplifying and differentiating simple math expressions, in the span of an afternoon.

Re: Typst, a new markup-based typesetting system, is now open source

#132
post #116
post #54

As a computer science researcher, I have hundreds of LaTeX macros, basically a DSL for my specific field of research, where I more or less write out natural language and it comes out as formulae with all the specific symbols and stuff. I think for people who write LaTeX in this kind of professional capacity, the macro language is the killer feature. But I could see fields light on formalism embracing something like t…

Typst supports macros/functions, more pleasantly than Latex too!

That's a well hidden feature.

Re: Typst, a new markup-based typesetting system, is now open source

#133
post #71

Earlier quoted context omitted.

If you don't have high typesetting needs, maybe WeasyPrint fits your use case. [1] https://weasyprint.org/

Oh my god, this is fantastic. It doesn't solve the DSL part but it does solve the output-to-PDF-using-CSS part. They also seem so nice! I guess I can clobber together my own DSL and then run with this. I can't thank you enough

Maybe take a look at pandoc before writing your own DSL. You can use it with --pdf-engine=weasyprint, so your DSL can be Markdown, reStructuredText, Org-mode, ...

Re: Typst, a new markup-based typesetting system, is now open source

#134
post #22

So, I will try it once I have time, but how doable is it to bent this thing to your will? Because the main problem I have with latex is that I am often trying to do something, which it just isn't made to handle. For example, I often find lots of hyphens and justified text hard to read, so I try to get latex to not use justified text and to never hyphenate. However, latex seems to be really bad when you want to do unc…

> For example, I often find lots of hyphens and justified text hard to read, so I try to get latex to not use justified text and to never hyphenate.

The obvious problem that comes to mind is links; otherwise I don’t see the problem. And I can’t think of an alternative to LaTeX that would do better—certainly not Word.

Re: Typst, a new markup-based typesetting system, is now open source

#135

Earlier quoted context omitted.

Unfortunately Typst is completely incompatible with LaTeX and its packages, so you either have to go back to working on your thesis or procrastinate even more by reimplementing these yourself!

> Unfortunately Typst is completely incompatible with LaTeX and its packages, I was under impression this compiled to TeX. So they are doing typesetting by themselves? Why?

It promises continuous rendering, that may not be retrofittable.

Re: Typst, a new markup-based typesetting system, is now open source

#136
post #133

Earlier quoted context omitted.

Oh my god, this is fantastic. It doesn't solve the DSL part but it does solve the output-to-PDF-using-CSS part. They also seem so nice! I guess I can clobber together my own DSL and then run with this. I can't thank you enough

Maybe take a look at pandoc before writing your own DSL. You can use it with --pdf-engine=weasyprint, so your DSL can be Markdown, reStructuredText, Org-mode, ...

Thank you. pandoc may be part of the glue too, I have to think about it. I probably do want my own DSL as none of the existing ones apply to my "domain", "specifically"

Re: Typst, a new markup-based typesetting system, is now open source

#137

Earlier quoted context omitted.

The first bullet point is incorrect. In normal text, you use # for functions and symbols, i.e. #sym.phi or #emph. In math blocks, you don't use # for stuff like phi or floor but that's because it interprets everything as a function or symbol, with an exception for single letters. If you want any plain text in a math block, whether it's a function name or not, you just put quotes around it. If you want implicit multip…

> If you want any plain text in a math block, whether it's a function name or not, you just put quotes around it. Math fonts and plain text fonts should be different. If you put quotes around something, you get plain text font. > If you want implicit multiplication, you need spaces between each letter. Probably the first rule of any good typographical system is that it should not force the user to change how they nor…

Yeah, I have all of my textbooks full of \frac{}{}, that’s definitely how I write math..

Re: Typst, a new markup-based typesetting system, is now open source

#138
post #104
post #92

I tried using the provided binary and it doesn't seem to work very well. Using the basic syntax from the tutorial, I got this PDF rendering: https://shottr.cc/s/MVhq/SCR-20230321-ipq.png

can you comment or link to the syntax you used?

   = Testing Typst

   == yeah!

   Test!
   + one
   + two
   + three
Post reply on HN