Live data from Hacker News

Exploring Typst, a new typesetting system similar to LaTeX

blog.jreyesr.com

131–140 of 243 posts

Re: Exploring Typst, a new typesetting system similar to LaTeX

#131

Typst is a lot of fun and lets you do some really cool stuff. However! In the process of doing that cool stuff, you may need to debug things and that’s when it’s no longer fun. There is no way to print anything out to console and debug anything about what is going on. People have asked for it for over a year now and the authors have refused/ignored their requests. I would be using it a lot more except for this. https…

Hey, I'm one of the Typst devs and author of the issue.

The reason there is no logging yet is because we want to get it _right_ rather than landing a permanent temporary solution. And there were simply more urgent things to do so far.

Also note that if you use an LSP or the web app, you can inspect the live values in your code simply by hovering over them.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#132

I've moved all of my LaTeX-based content creation to Typst. It's: - Fast—Compiling my books would take around 1 minute (I often had to compile twice due to indexing). With Typst, it takes less than 5 seconds. - Easy to write—I actually don't write it, I wrote a bunch of Pandoc plugins to tweak the output from Pandoc (I write all my books in Jupyter these days, so lots of markdown). - Easy to read—I've used LaTeX for…

If you're talking about weak widow/orphan support for headings in particular, that will finally be fixed in Typst 0.12.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#133
post #60
post #13

Earlier quoted context omitted.

Places I’ve switched from LaTeX to Typst: My resume, research papers. Markdown was never a serious contender for my resume, since I want to control the rendering and the layout. Places I’ve switched from Markdown to Typst: Slides. There are some okay Markdown-to-HTML solutions, but they have this unfortunate side-effect that you move the slides to some other computer, and something breaks in your rendering. PDFs ftw.

I really wish typst had a good way to emit html. Id love to use it for blogging & technical writing and documentation.

(Typst dev here.) That's one of the next big things we plan to work on once Typst 0.12 has shipped. :)

Re: Exploring Typst, a new typesetting system similar to LaTeX

#134

Earlier quoted context omitted.

Are there journals/conferences that accept typst for typesetting yet? It is probably my main reason for staying in LaTeX.

Perhaps you can use pandoc to turn Typst into Latex and then do the little dance of making it compatible with the provided headers? [ The latter is painful no matter what; once, I had a paper that I simply could not get to compile with the journal's header and had to give it to a wizard for examination. He did some manual TeX shenanigans resulting in a big blob of raw TeX at the preamble and it all worked. ]

the pandoc typst reader is a bit barebones, it doesn’t support packages (understandable) and seems to get confused with functions for me…though it’s been a bit since i tried it

Re: Exploring Typst, a new typesetting system similar to LaTeX

#135

Earlier quoted context omitted.

LaTeX maths or amsmath maths? TeX maths != LaTeX maths != amsmaths maths, and usually what I see described as "LaTeX maths" is TeX maths (or a subset, when someone claiming "LaTeX support" but not actually using LaTeX). I'm not interested in a programming language (though naturally being able to write plugins would be useful ala luatex), but a textual macro system. I have things like (which is one of the simpler macr…

I'm not a latex expert. I don't know what the difference is between tex math, latex math and amsmath is. (And please don't explain it, I don't care.) Maybe there are some weird expressions out there that don't have a typst equivalent, if we really looked for them. But I haven't run into anything myself, despite writing a pretty math-heavy CS paper. (Or at least, the early drafts were math heavy.) > I'm not interested…

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.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#136

Earlier quoted context omitted.

> Yes that works. Oh, that great! My major point of friction with LaTeX is that using unicode is not straightforward. You sort of can, by including the right packages and using the right interpreters, but it imposes strange constraints involving the fonts that you can use and whatnot. Regarding the usage, it's probably my fault. I tried to compile it locally and it didn't work at first (requires newer rustc version).

> My major point of friction with LaTeX is that using unicode is not straightforward. Possibly you are describing how it used to be before the input encoding standard for LaTeX switched to UTF-8?

No. I'm talking about modern LaTeX. You can easily write é outside of math mode, but not inside. By default, you cannot write α either inside nor outside of math. By using the right packages, you can do both, but other things break.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#137

Earlier quoted context omitted.

With your experience of both, have you found that Typst has fewer issues with conflicting/non-commutative plugins than LaTeX does? Because that's where I lose the most time with LaTeX: packages often mess with the (piles of) global state in ways that sometimes conflict, and the only "solution" seems to be that, if you're very lucky, sometimes conscientious package authors will try to "detect" (through various hacks)…

To be honest, I don't know if I've seen conflicting packages. Do you have specific examples?

There are quite a few examples, but here's two that have affected me

1)pstcol has to be loaded before graphicx (I forget the reason but it just does)

2) if I use pdftricks I have to unset the "clipbox" command because it conflicts with the one in adjustbox.

As you say in another comment, given how latex reports errors debugging these can be a Fun time.

Re: Exploring Typst, a new typesetting system similar to LaTeX

#138

Earlier quoted context omitted.

> My major point of friction with LaTeX is that using unicode is not straightforward. Possibly you are describing how it used to be before the input encoding standard for LaTeX switched to UTF-8?

No. I'm talking about modern LaTeX. You can easily write é outside of math mode, but not inside. By default, you cannot write α either inside nor outside of math. By using the right packages, you can do both, but other things break.

Which engine? I believe XeTeX and LuaTeX support it natively?

Re: Exploring Typst, a new typesetting system similar to LaTeX

#139
I really want to like this because it seems a lot more accessible to folks than latex but I'm getting that "uncanny valley" feeling like when I look at equations that have been typeset in MS Word. They look almost, but not quite, good.

Like if you look at the equation for Binet's closed form solution for Fibonacci numbers in the link below from their github, it looks to me like there is a bit too much space on either side of the plus sign in the equation for phi on the right hand side. And phi^n on the left-hand side looks too close to the 1/sqrt(5).

https://user-images.githubusercontent.com/17899797/228031796...

Re: Exploring Typst, a new typesetting system similar to LaTeX

#140

Earlier quoted context omitted.

No. I'm talking about modern LaTeX. You can easily write é outside of math mode, but not inside. By default, you cannot write α either inside nor outside of math. By using the right packages, you can do both, but other things break.

Which engine? I believe XeTeX and LuaTeX support it natively?

Yes, that is the problem, precisely. Lualatex and xelatex do not support all the features of plain latex (mostly "hacky" things, like pdf controls, js animations in beamer, etc). So, you have to chose between using these features and being able to type unicode letters directly.

Probably there is a magic combination of engines and packages that allows to do everything at the same time, but I haven't found it.

If this works natively in typst, it's a great selling point for me (although I dislike the markdown-like syntax).

Post reply on HN