Live data from Hacker News

I wrote my PhD Thesis in Typst

fransskarman.com

291–300 of 338 posts

Re: I wrote my PhD Thesis in Typst

#291

I just want a a very simple Markdown like syntax to make a very basic resume with just few features that are not in Md: - custom spacing - horizontal/vertical (after list dots/numbers etc as well) - justifying the text - custom margins And for that something like this is an overkill. Less than Tex but still an overkill. Hell, I can do with a flavoured markdown if it supports this.

i don't know if this is more than you're willing to do, but i think a lot of markdown processors allow you to specify custom CSS (which would allow you to do what you're looking for, if rendering to HTML). it's a pain compared to standard markdown but if you can figure out the underlying HTML tags you're trying to style, it should be a one-and-done change.

Re: I wrote my PhD Thesis in Typst

#292
post #281

Earlier quoted context omitted.

Regarding point 1: I'm so glad they didn't keep the math syntax, there's finally progress in math text input! E.g. we can now write $ ZZ &= { ..., -1, 0, 1, ... } \ QQ &= { p/q : p, q in ZZ } $ $ a = cases( 0 & quad x 0 ) $ instead of \begin{align*} \mathbb{Z} &= \{ \dots, -1, 0, 1, \dots \}, \\ \mathbb{Q} &= \left\{ \frac{p}{q} : p, q \in \mathbb{Z} \right\} \end{align*} \[ a = \begin{cases} 0 & \quad x \leq 0, \\ \…

> Regarding point 2: you can put your settings in a file `settings.typ` and import it from multiple files. Let's say I have 3 flavors of settings and 10 different typ files - normally I'd just have 3 flavors of top.typ (top1.typ, top2.typ, top3.typ) with the correct settings for each flavor with settings proagated to all 10 files. Compiling top1/top2/top3 would then create flavor1.pdf, flavor2.pdf, and flavor3.pdf No…

Just have a master settings.typ that you import in top1.typ, top2.typ and top3.typ?

Alternatively, you can pass global settings at build time with `typst c --input name=value`

Maybe I misunderstood though, if you can link to an actual example (gist or something) I'd be happy to try and give a concrete solution.

Re: I wrote my PhD Thesis in Typst

#293
post #78

Earlier quoted context omitted.

That’s a pretty sweeping generalization. In the European university that I went to, CS students definitely didn’t have to write anything longer than long-form exam questions until the bachelor’s thesis.

But less sweeping than the parent who generalized to "most universities". I think it was a long time since you went to university and times have changed.

That's probably true. It was definitely very unoptimal for students to not have practiced writing scientific text much if at all, and suddenly having to write twenty pages worth of it for their BSc. (More recently I did study another STEM subject for a bit and noticed that there was definitely more essay writing involved!)

Re: I wrote my PhD Thesis in Typst

#294
post #281

Earlier quoted context omitted.

> Regarding point 2: you can put your settings in a file `settings.typ` and import it from multiple files. Let's say I have 3 flavors of settings and 10 different typ files - normally I'd just have 3 flavors of top.typ (top1.typ, top2.typ, top3.typ) with the correct settings for each flavor with settings proagated to all 10 files. Compiling top1/top2/top3 would then create flavor1.pdf, flavor2.pdf, and flavor3.pdf No…

Just have a master settings.typ that you import in top1.typ, top2.typ and top3.typ? Alternatively, you can pass global settings at build time with `typst c --input name=value` Maybe I misunderstood though, if you can link to an actual example (gist or something) I'd be happy to try and give a concrete solution.

> Just have a master settings.typ that you import in top1.typ, top2.typ and top3.typ?

Yes, but each included file (like education.typ, publications.typ, etc) should also get these settings propagated from top - which typst doesn't allow - the appropriate settings need to be included in each of these files.

> you can pass global settings at build time with `typst c --input name=value`

This is something I did not know - will check.

Re: I wrote my PhD Thesis in Typst

#295
post #5

Earlier quoted context omitted.

The definition of insanity is doing the same thing twice and expecting different results. By coincidence, this is the basic way to compile latex.

Almost every compiler is a multipass compiler.

But in this case the passes are manual!

Re: I wrote my PhD Thesis in Typst

#296

Earlier quoted context omitted.

I hate a lot of things about LaTeX (also wrote several theses in it, as well as research articles), but the math syntax definitely wasn't one of them. Why on earth would they change it?

I think anything that is chock full of backslashes and braces can surely be improved upon.

You will end up with just a different escape character.

Re: I wrote my PhD Thesis in Typst

#297
post #294

Earlier quoted context omitted.

Just have a master settings.typ that you import in top1.typ, top2.typ and top3.typ? Alternatively, you can pass global settings at build time with `typst c --input name=value` Maybe I misunderstood though, if you can link to an actual example (gist or something) I'd be happy to try and give a concrete solution.

> Just have a master settings.typ that you import in top1.typ, top2.typ and top3.typ? Yes, but each included file (like education.typ, publications.typ, etc) should also get these settings propagated from top - which typst doesn't allow - the appropriate settings need to be included in each of these files. > you can pass global settings at build time with `typst c --input name=value` This is something I did not know…

[deleted]

Re: I wrote my PhD Thesis in Typst

#298

AI is the primary audience for our writing, and the primary reason to reconsider our choice of markup format. It's all about semantic compression: Typst source, markdown, and asciidoc are far more concise than LaTeX source. I'm observing, not here to convince anyone. The last six months of my life have been turned upside down, trying to discover the right touch for working with AI on topological research and code. It…

LaTeX can compile to HTML. PDF is just one of many compilation targets, that happens to look nice in almost any platform.

Re: I wrote my PhD Thesis in Typst

#299

I just want a a very simple Markdown like syntax to make a very basic resume with just few features that are not in Md: - custom spacing - horizontal/vertical (after list dots/numbers etc as well) - justifying the text - custom margins And for that something like this is an overkill. Less than Tex but still an overkill. Hell, I can do with a flavoured markdown if it supports this.

i don't know if this is more than you're willing to do, but i think a lot of markdown processors allow you to specify custom CSS (which would allow you to do what you're looking for, if rendering to HTML). it's a pain compared to standard markdown but if you can figure out the underlying HTML tags you're trying to style, it should be a one-and-done change.

I shall definitely explore that.
Post reply on HN