Live data from Hacker News

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

github.com

21–30 of 147 posts

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

#21
post #14

It seems to me that LaTeX is primarily used as academic gatekeeping. This is one step better, but why a new DSL versus a library to build your layout representation from a common language?

Just like math is used as academic gatekeeping? (An insane argument that many have made.)

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

#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 unconventional stuff like that, having to use hackey workarounds which often cause errors all over the place.

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

#23
post #14

It seems to me that LaTeX is primarily used as academic gatekeeping. This is one step better, but why a new DSL versus a library to build your layout representation from a common language?

People familliar with LaTeX will use it in places where it is definitely not required and sometimes even where it’s arguably not a very good fit, such as for presentation slides, illustrated posters laid out in complicated ways, or in one notable case a diagramming package with automatic graph layout, plotting, symbols for circuits, and a boatloat of other things (TikZ).

It might be difficult to believe given the unfriendly failure modes characteristic of a macroexpander and an abundance of dusty corners, but LaTeX really is very convenient for a proficient user when the problem fits (e.g. not a magazine).

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

#25
I have spent probably too much time trying to gain a comfortable level of proficiency with LaTex and I have not been able too. Maybe I just don't use it often enough but I always now find myself just using HTML/CSS instead. Even when the thing I'm laying out is specifically just something to be printed.

I feel similarly about LaTeX and Vim. I like them. They are interesting. I appreciate the history around their development and use. But I just cannot convince myself they are worth learning.

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

#26

Where did the code example for Fibonacci go in the typeset output?

It's not a code example. It's Typst code that is used to calculate the fibonacci numbers that are displayed in the table.

I see, thanks! That's pretty neat.

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

#27
post #14

It seems to me that LaTeX is primarily used as academic gatekeeping. This is one step better, but why a new DSL versus a library to build your layout representation from a common language?

Because a library in a programming language would be madly inconvenient? I can't see something like this being pleasant to use: document( paragraph("blah blah blah"), math("sum_(i=1)^n i = (n (n+1))/2"), paragraph("foo bar") ) Also, I'd imagine being a DSL and having a dedicated compiler is what let's Typst have such great incremental compilation (it's actually instant).

Not to say people haven’t done it, though, and with enough willingness to adapt the syntax of the host language it can work quite well[1,2,perhaps 3].

[1] https://docs.racket-lang.org/scribble/

[2] https://docs.racket-lang.org/pollen/

[3] https://patoline.github.io/

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

#29

Ok. Most STEM students find themselves at one point diving deeper into LaTeX than the actual report subject they are writing. But developing your own replacement to LaTeX is whole new level. Nice one :-)

i wonder if gpt4 eases that pain a bit

i suspect it does for basic usecases but will still be ultra painful for advanced ones

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

#30
post #9

There's also Sile: https://sile-typesetter.org/ LaTeX (Well, LuaTeX) powers my E-ink newspaper ( https://imgur.com/a/NoTr8XX ), but I've been curious to use it as a vehicle to try out some of these alternatives and see if they can put together a non-trivial layout.

Also Scribble[1] / Pollen[2] (Racket, extensible in same) and Patoline[3] (O’Caml, extensible in same).

[1] https://docs.racket-lang.org/scribble/

[2] https://docs.racket-lang.org/pollen/

[3] https://patoline.github.io/

Post reply on HN