Live data from Hacker News

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

github.com

41–50 of 147 posts

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

#41

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 deve…

The issue with latex is that I don't personally use it every day, and I suspect many people are in that camp. When you just use it ocassionally, all that syntax just falls out of your brain, leading to a frustrating loop where you're constantly relearning latex.

In comparison, I use vim keybindings every day. As a result, despite how esoteric it may be, it's well ingrained into my muscle memory.

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

#42

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 deve…

If you need to share a professional document that involves mathematical expressions and equations, LaTeX is very helpful as a tool to use. The need arises if you are a professional or student registered in a course in mathematics or computer science. It's much easier to type multiple lines of equations, with the equation signs aligned, in LaTeX than in Word.

It's a bit of a grind, but you can learn the fundamentals of LaTeX in less than a week if you have an hour a day. It was actually a requirement to learn LaTeX well enough to submit a basic report within 1-2 weeks, as part of a first-year computer science course at the University of Toronto.

The course instructors provided a basic LaTeX template (which included some instructions as a guide to how LaTeX worked), and also linked to free online tutorials for more in-depth instructions, which included LaTeX Tutorial from memory, at https://www.latex-tutorial.com . I wrote out notes from articles 01-09 and a few others on the website (as the other articles were less relevant to my purposes) to learn the basics, and then reinforced and developed my understanding of how to use LaTeX by writing future assignments in the course with it.

As an illustration for how LaTeX solves a nice problem, a recent popular submission on HN explored the complexity of typesetting a mathematical document (named "How did Dennis Ritchie produce his PhD thesis? A typographical mystery"): https://news.ycombinator.com/item?id=35177110 . You might not have as much of a need to learn LaTeX if you don't regularly share lots of mathematical equations, but it's relatively quick to learn. LaTeX has also been quite useful to me for writing a professionally-formatted resume, which has been much easier to update than when I formatted my resume using Word.

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

#43
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.

I wonder if using Bluetooth LE would use less power as you wouldn’t have to connect to a hotspot?

The display could wake up and ping the raspberry pi which would send it the new image and everyone goes back to sleep until the next morning.

Probably doesn’t matter all that much but if you wanted maximum battery life, maybe?

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

#44

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 deve…

You can develop muscle memory for vim, less so with LaTeX. Vim motions are absolutely worth learning, even if you don't use vim itself - it is the most efficient way to navigate and manipulate text.

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

#45
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.

Wow this is cool! I made a sort of similar e-ink display piece that shows your current song on Spotify - https://github.com/CampbellOwen/NowPlaying. Your project is making me want to try another e-ink project! I'm especially impressed with the overall polish of the enclosure and hardware, that's always my weak point.

I saw you mentioned you wrote a custom driver for the display controller. I'm curious how you found that process? I got the feeling a lot of these devices aren't documented very well, but that sounds like a fun project to tackle.

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

#47
post #36

Earlier quoted context omitted.

Do note[1] that TeX itself was written as a result of Knuth being unsatisfied with the typesetting of then-newly reissued volume 2 of TAoCP. I don’t know if Lamport encountered the same yak with LaTeX, but I do know he’s a distributed systems researcher, not a programmer in a relevant area :) [1] https://yakshav.es/the-patron-saint-of-yakshaves/

LaTeX was and is just a collection of macros on top of TeX. Few people have every used TeX itself, compared to the massive amounts who have used LaTeX; but if you haven't used raw TeX you should try it sometime; it's surprisingly how simple and powerful it is.

I ended up using plain TeX because I learned from Spivak's The Joy of TeX. It teaches AMS-TeX which is just a thin veneer on top of plain. Before I stopped shaving the yak, I'd setteled on eplain which was just enough to make plain really practical.

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

#48
I'm not really into LaTeX but I am really into the specific problem of authoring documents with a certain (user-defined) look-and-feel by leveraging some (very user-friendly) DSL that is close to markdown but with more features

Does Typst support themes so that I can achieve that? Are there other tools I should be aware of?

Are there tools that do all of the above and have themes defined as CSS?

I'm aware of RMarkdown + Knitr which is a fantastic combo (and honestly my inspiration for digging into this problem) but that's obviously still too much "programming" for wider adoption

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

#50
post #40
post #36

Earlier quoted context omitted.

LaTeX was and is just a collection of macros on top of TeX. Few people have every used TeX itself, compared to the massive amounts who have used LaTeX; but if you haven't used raw TeX you should try it sometime; it's surprisingly how simple and powerful it is.

I agree. However, it can be tough finding documentation how to use plain TeX. I find that increasingly I'm using OpTeX, which is a much smaller set of macros than LaTeX, simpler this use, understand, and reason about. https://petr.olsak.net/optex/

> However, it can be tough finding documentation how to use plain TeX.

I hate to be that guy, but... the TeXbook works and recently (finally!) had an official ebook release, illustrations and all. It’s a peculiar value of “works”—personally, I had to be stuck home sick for a couple of weeks with no reading material to get through it from beginning to end, it doesn’t really start to get rewarding unless you get through at least half of it or so, and I went away from it thinking that I like neither Knuth’s way of writing nor his approach to programming language design (“computers follow rules”). But it still has a lot of helpful stuff.

When it comes to more systematic descriptions and connections with more conventional programming-language ideas (it took me some time to recognize that TeX uses what is essentially dynamic scope throughout), I like TeX by Topic[1].

[1] https://www.eijkhout.net/tex/tex-by-topic.html

Post reply on HN