14
submitted 7 months ago* (last edited 7 months ago) by boredsquirrel@slrpnk.net to c/kde@lemmy.kde.social

https://github.com/IgKh/katvan

Available as an Appimage.

Needs typst installed in the same directory or PATH to allow rendering and export.

Typst is a new, simpler alternative to LaTeX, written in Rust. It did a big headstart, seems to be in a great state and has a lot of sponsors!

preview graphic

Currenlty there only is a VSCode / VSCodium Extension and a Webapp. A Kate extension would be great of course.

There also is a Language server for Typst which seems actively maintained.

Alternative

Typst has a watch mode, which automatically compiles the PDF.

You can then edit the source with any editor you want (best with LSP) and preview the PDF with Okular.

typst watch document.typ &
okular document.pdf &
kate document.typ
top 3 comments
sorted by: hot top controversial new old
[-] barbara@lemmy.ml 9 points 7 months ago* (last edited 7 months ago)

You can use any text editor, e.g. kate, open a terminal and use typst watch document.typ or simply typst w document.typ and have any pdf viewer at the side. It'll auto update the new output in real time.

Your screenshot actually shows the webeditor of typst.

This is the app you shared:

The web app is not open source. If you want multi user collaboration, use another text editor.

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

Damn! True!

Will update the post!

So typst + LSP + Kate = perfect Editor !

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

Now, if you would also have an idea how to spawn 2 processes from one shell script, that would be awesome!

Use case: desktop entry to open .typ files.

  • process 1: open a terminal window with typst watch %f and detach process
  • process 2: open some-editor %f and detach process

I would love to either just add those entries as "applications", or create Dolphin context menus.

this post was submitted on 19 Apr 2024
14 points (93.8% liked)

KDE

5391 readers
38 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS