Live data from Hacker News

Typst: A Programmable Markup Language for Typesetting [pdf]

user.tu-berlin.de

11–20 of 55 posts

Re: Typst: A Programmable Markup Language for Typesetting [pdf]

#11
Note for the authors:

I have just taken a look to the syntax. It is pretty close to djot [1]. Of course Typst is more powerful than djot. One noticeable difference is the chosen markup for headers (`=` instead of `#`).

This could be nice to reduce differences and make Typst a close-to superset of djot.

[1] https://www.djot.net

Re: Typst: A Programmable Markup Language for Typesetting [pdf]

#12

Note for the authors: I have just taken a look to the syntax. It is pretty close to djot [1]. Of course Typst is more powerful than djot. One noticeable difference is the chosen markup for headers (`=` instead of `#`). This could be nice to reduce differences and make Typst a close-to superset of djot. [1] https://www.djot.net

We have switched back and forth on this because we also wanted to stay as close to Markdown as possible, just for the familiarity. However, the fact that Typst also uses the hashtag to indicate an inline expression led to too much confusion (`#thing` was a variable access and `# thing` a heading). And the hashtag is really quite nice for these inline expressions, so it won over the headings. Using `=` for them does have some precedent with AsciiDoc.

Re: Typst: A Programmable Markup Language for Typesetting [pdf]

#13

Impressive, as a Master's thesis, but also as a long-term project. I've been recently working on a book project, and I've reviewed all the tools available. My current conclusion is that I found nothing that would combine the simplicity of Markdown or Asciidoc with the typographical control of LaTeX. This project seems to hit the sweet spot. Is the source code of the thesis available somewhere? Of other works created…

Have you tried org-mode?

Re: Typst: A Programmable Markup Language for Typesetting [pdf]

#16

How do you handle citations and citation styles? Was scanning the thesis but could find any hints?

For the purposes of this thesis I coded the citation style and numbering using Typst's introspection system and handwrote the references. However, we have also written a BibLaTeX-compatible citation system called hayagriva [1] for Typst. We haven't yet integrated it, but want to do so before our public beta.

[1]: https://github.com/typst/hayagriva

Re: Typst: A Programmable Markup Language for Typesetting [pdf]

#19

As far as I can tell it compiles directly to pdf, which seems a non-starter for submitting to many journals which accept either latex or word documents. This would need various compiler backends (perhaps via pandoc) to be that useful. Certainly it would help adoption if you could emit, eg., markdown/latex/etc. and others you're working with wouldn't need to adopt your tooling.

Markdown is not close to powerful enough to produce all the stuff that Typst can produce, and emitting latex would be a massive technical effort. I think the best hope is that whatever journals currently only accept latex or .docx will start accepting typst files (or at least pdf).

Re: Typst: A Programmable Markup Language for Typesetting [pdf]

#20

I really like the paper, though I'm not sure the world needs another Turing-complete document language however well-motivated ;) As SGML pedant however, I can't resist commenting on the following: > The second offspring of SGML is XML, specified by the World Wide Web Consortium (W3C) in 1998. It has a reduced feature set compared to SGML (for example, it forbids unclosed tags and concurrent markup). But it retains th…

>I really like the paper, though I'm not sure the world needs another Turing-complete document language however well-motivated ;)

What would you recommend instead? From my experience of the beta it is vastly nicer to use than latex, and I'm not really aware of any other competition.

Post reply on HN