Live data from Hacker News

LaTeX3 Automatic Labels for Fun and No Profit

commutative.xyz

41–50 of 90 posts

Re: LaTeX3 Automatic Labels for Fun and No Profit

#41
post #25

Earlier quoted context omitted.

It's not faked. I guess the nix recipe does things differently from the official binary. Try yourself: https://github.com/typst/typst/releases/download/v0.11.0/typ... But it's true that when I tried ldd on a trivial static binary (compiling "int main() { return 0; }" with "gcc -static a.c") I got a different message: "not a dynamic executable". I don't know why you'd get sometimes one message sometimes the other...

Having to use magically-blessed (what you call "official") binaries is not a viable strategy either.

If you don't know how to build a statically linked rust binary yourself, then why bother posting about the downsides of dynamic linking?

And obviously you can also link statically against musl on glibc systems. It's just another library.

Re: LaTeX3 Automatic Labels for Fun and No Profit

#42
post #23
post #13

Earlier quoted context omitted.

Typst is a single file binary. The preview packages are versioned too. If typst breaks the API in ten years, I'd still be able to download the old binary and make a PDF from scratch. I can't begin to imagine the complexity in installing multiple texlive distributions side by side.

Yes, but its more complicated. In my case I have slides with a number of include files, some have not changed since 2006 (just checked), one does not want to maintain slides with same ancient version of typst, and then possibly have many floating around. For me, they need to promise full backwards compatibility.

That's a valid point: if you don't want a language that makes breaking changes (so you can always compile old files with the latest version), it's not the right time to use typst. It's just moving too fast now. It's currently at version 0.11. Come back when they release 1.0.

Re: LaTeX3 Automatic Labels for Fun and No Profit

#43
post #32

Earlier quoted context omitted.

> The author is a PhD student that has been using LaTeX heavily for 10 years. But what should a new student use, and why? When the only reason to choose LaTeX is old colleagues and gatekeeping publishers, I know it's a matter of time. From what I have seen, it's Overleaf. Do newer students know or care what flavour of Tex Overleaf uses in the background? Not as far as I have seen.

"Typst Overleaf" sounds like a fine business idea to me, if you give the user the option to export TeX (so that they can then submit it to a journal). (If you support both LaTeX and Typst, and improve the Overleaf experience somewhat -- which is definitely possible -- I can't imagine you wouldn't steal some market share from Overleaf.)

The Typst webapp [1] seems like it is already pretty similar to Overleaf.

LaTeX output seems not to be on the roadmap [2], which I can respect. The amount of weirdness you would have to workaround to get good Typst to LaTeX translation sounds like a pain. I guess the hope is that the publishing industry starts adopting Typst...

[1] https://typst.app/ [2] https://github.com/typst/typst/issues/149

Re: LaTeX3 Automatic Labels for Fun and No Profit

#45
post #6

> Yes, we are aware of typst. I think it’s cool, but C++ hasn’t replaced C, Rust hasn’t replaced C++, Typst is unlikely to replace LaTeX. Likewise, many are aware of LuaTeX, but, again, the entrenching of a 40-odd year system is not to be underestimated. I am rooting for typst, anyway, and hope it finds its place. Well here's the process I went through in the last few years: I found out about LuaTeX, saw it was suppo…

Typst has nowhere the control and reproducibility of LuaTeX. It's core syntax is quite weak and will be a bottleneck in future. It is especially weak for structure of huge documents, and for mathematics.

LuaTeX is stupid but it still has features needed which none of the other markup languages posses.

Re: LaTeX3 Automatic Labels for Fun and No Profit

#46
Markdown does not specify how to add labels and cross-references for figures, equations, tables, etc. Many moons ago, I asked about them on the CommonMark forum[1] and described a syntax that was general and internationalizable. Given that CommonMark has frozen the Markdown specification, I implemented a consistent label and cross-reference syntax for my editor[2], KeenWrite[3]. These labels and cross-references are translated to XHTML, then transformed from XHTML into ConTeXt macros that are subsequently typeset.

[1]: https://talk.commonmark.org/t/cross-references-and-citations...

[2]: https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/docs/ref...

[3]: https://keenwrite.com/

Re: LaTeX3 Automatic Labels for Fun and No Profit

#47
post #44

The reason for LaTeX is the output quality, not the input. Real LaTeX users don't use LaTeX to write documents. whatever -> pandoc -> LaTeX -> perfect document ^ | LaTeX template ----+

Most of the things that need to be written in LaTeX (math) cannot be written in any other language yet.

Re: LaTeX3 Automatic Labels for Fun and No Profit

#48
post #7

> Yes, we are aware of typst. I think it’s cool, but C++ hasn’t replaced C, Rust hasn’t replaced C++, Typst is unlikely to replace LaTeX. Likewise, many are aware of LuaTeX, but, again, the entrenching of a 40-odd year system is not to be underestimated. I am rooting for typst, anyway, and hope it finds its place. A good place to start would be to provide a compilation toolchain from typst to TeX, if they really want…

Come on, be serious. Pandoc can "convert" html to things too, but you wouldn't use it as a web browser.

I can't remember not being disappointed in pandoc. I used to try pandoc first for file conversions but at this point I try it last, only after exhausting format specific tools first. For example, the conversion from latex to html in pandoc is a joke, just unusable garbage, compared to the results of tex4ht.

Re: LaTeX3 Automatic Labels for Fun and No Profit

#49
post #44

The reason for LaTeX is the output quality, not the input. Real LaTeX users don't use LaTeX to write documents. whatever -> pandoc -> LaTeX -> perfect document ^ | LaTeX template ----+

Most of the things that need to be written in LaTeX (math) cannot be written in any other language yet.

There are lots of applications that can be used to write math that is converted into LaTeX equations. You can also use MathML -> Latex

The equation subset is the best part of LaTeX syntax and so many people learn it. It's very compact compared to alternatives.

Re: LaTeX3 Automatic Labels for Fun and No Profit

#50
Am i missing something, or is this useless when you want to refer to an equation from "the past"? I find myself doing that often. For example a methods section might pose an optimization problem, then the experiments section a page or two later says "we solve the optimization `\eqref{main-problem}` using Solver X".
Post reply on HN