35
submitted 6 months ago* (last edited 6 months ago) by boredsquirrel@slrpnk.net to c/linux@lemmy.ml

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.

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

Priorities:

  1. No flicker (no text re-alignment, no disappearing scroll bars, no changing UI)
  2. Fast refresh
  3. Smooth text refresh (maybe with a fade in)
  4. Generally solid

To test:

  • evince / GNOME Document viewer
  • atril
  • mupdf
  • zathura
  • gv

Barebones:

Somehow monitor for changes

  • pipdf (GTK4, but unmaintained)
  • pdf_render (very minimal, maintained)
  • pdf2pwg (needs cargo add and cargo build, only A4 pages which seems totally sufficient)
  • pdf_renderer (security focused, pure Rust, may crash, incomplete)
you are viewing a single comment's thread
view the rest of the comments
[-] barbara@lemmy.ml 4 points 6 months ago* (last edited 6 months ago)

pulsar (atom successor) is great for it, vscodium should do it, evince (gnome pdf viewer) works good.

What nonremovable popup a d dancing text in okular?

[-] boredsquirrel@slrpnk.net 2 points 6 months ago* (last edited 6 months ago)

Right, forgot about Pulsar. Also have Lapce installed but that may not have the needed tools.

VSCodium also installed in a Distrobox, but tbh I dont want to use it. It is slow, Electron, Microsoft etc. Just not an option.

I am currently trying to add syntax highlighting for typst to kate, but I read that XML and damn thats complex.

[-] barbara@lemmy.ml 1 points 6 months ago

apparently there is a preview plugin for kate https://docs.kde.org/stable5/en/kate/kate/kate-application-plugin-preview.html , it's already preinstalled. It works with markdown files, I guess if someone would be down, he could extend the plugin to work with typst

[-] boredsquirrel@slrpnk.net 1 points 6 months ago

The preview plugin uses Okular, or at least some part of it.

On Kinoite Okular is no longer installed as system package, and it works well as Flatpak.

But yes, I should layer Okular again and try, because in my experience the preview had another issue (background follows system theme i.e. dark, causes flickers)

this post was submitted on 21 Apr 2024
35 points (97.3% liked)

Linux

48048 readers
706 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS