Hey people! I want to learn typst, a modern alternative to LaTeX written in Rust.

screenshot

Typst can incrementally compile the files to PDF.

Ironically, there is no incrementally refreshing PDF viewer afaik. So for direct visual output of my progress, I would like the fastest, smoothest PDF viewer.

  • Firefox loads too slow
  • Okular fast but nonremovable popup and “dancing text” on load

It can be as small and minimal for that task as possible.

Priorities:

  1. Smooth reload (fade or else) to not flicker
  2. Fast refresh
  3. Incremental loading ?
  4. Generally solid
  • boredsquirrel@slrpnk.netOP
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Could you explain? less would just monitor the binary PDF for changes and then pass that to any viewer?

    I think this is really helpful for barebones renderers, thanks! That will be a very good piece of the puzzle for a minimal PDF reader for this task

    • MonkderDritte@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      No, less has the LESSOPEN variable, which can be used to run input-preprocessors. lesspipe misuses that to run specific tools with specific mimetypes, in this case pdftotext for pdf files. It’s basically equivalent to running pdftotext -layout <file.pdf> | less. Though no images, for that the other tools.