• 7 Posts
  • 352 Comments
Joined 2 years ago
cake
Cake day: June 23rd, 2024

help-circle
  • Typst if you are a progressive zoomer

    I’m a millenial (maybe even an older one but I won’t admit to that) and I just love typst.

    Markdown is just content, but as soon as you want actual layouting, you’re in for trouble; sure you can post-process in pandoc and apply the result to some template, but you’re probably creating an abomination in the process. Oh, and I hate creating slightly bigger tables there. One of your columns got larger? Better adjust all your horizontal lines (at least for grid tables), which might be a pandoc markdown only feature. Yeah, there isn’t one single markdown, but multiple flavors: https://www.glukhov.org/documentation-tools/markdown/gfm-vs-commonmark-vs-pandoc-markdown/

    LaTeX? Probably still the king of exact typesetting, but it has a lot of issues:

    • compile times are really bad (especially with something like lualatex)
    • TeX which is the foundation of LaTeX maybe isn’t how you’d design such a language today
      • this includes error messages that aren’t helpful if you didn’t study CS and typesetting
    • tables (though BIG THANKS to that brave soul who wrote tabularray, it saved my sanity in my last LaTeX project)

    Though at least nowadays, you have options for creating accessible PDFs (I’m not a big fan of the idea myself, but there are environments where that support is mandatory, e.g. government contracting)

    typst? I wrote my first bigger project in typst that did much more than I could ever do in LaTeX (generation of documentation from OpenAPI spec files) and I had way fewer issues than for LaTeX projects of lower complexity. Yeah there are still some areas that need improvement, but all in all it’s a breeze. With tinymist, writing stuff is just so nice, no waiting for your document to compile for 40 seconds, no, you get an instant preview, or a helpful error message.

    I was a bit of a LaTeX guy but I haven’t touched it since I learned typst.


  • No, that’s not actually the issue. The PDF format is open.

    The actual (non-)issue is that PDF is a format that is not meant to be converted or otherwise be edited. Let’s say you have a page of text with two columns. For a PDF, the concept of columns doesn’t exist. It’s just a series of individual letters placed exactly in a specific location on a page (and other graphical elements I guess, but that’s not the current point). I think strictly speaking PDFs don’t have to use the space character, since PDF doesn’t have the concept of a word, just individually placed letters.

    Readers already have to do some heuristics to allow copying etc. but how are you going to convert this into a word file? How would you detect that there are text columns? What is a page header / footer and what is just fancy repeating letters?

    Note that as soon as you get into more modern PDF, there’s also stuff like accessibility features (big fun!). There is support for Universal 3D.

    Nobody sane would try to write a proper editor for PDF. You only write that if you want to make money off of it because a corporation somewhere doesn’t understand or control the pipeline that created a PDF that they need changed.













  • Well, Mercator projection is most helpful for maps used in nautical navigation:

    The Mercator projection was designed for use in marine navigation because of its unique property of representing any course of constant bearing as a straight segment. Such a course, known as a rhumb (alternately called a rhumb line or loxodrome) is preferred in marine navigation because ships can sail in a constant compass direction. This reduces the difficult, error-prone course corrections that otherwise would be necessary when sailing a different course.

    That being said, is a bad projection for other purposes, and it’s probably better to use other projections in general education. That being said, any projection will have certain disadvantages under the right or wrong conditions.

    Probably a good call to switch, though I refuse to believe it was kept so long for other reasons than “this is how it’s always been”