cubxity / typstudio Goto Github PK
View Code? Open in Web Editor NEWA W.I.P desktop application for a new typesetting language, typst.
License: GNU General Public License v3.0
A W.I.P desktop application for a new typesetting language, typst.
License: GNU General Public License v3.0
I've successfully built and packaged typstudio for Linux (Arch Linux), and most parts of it seem to work. I can open and edit files in a project and the compiler/preview works great.
I'm a bit confused though because the Edit & View menus have nothing at all in them, just a blank box (with about 8 lines but vary narrow) shows up.
This could be because nothing has been setup for them yet. I do understand this is at a pre-release stage, but with Tauri I would have at least expected copy/paste or something in the Edit menu.
Is there not supposed to be something there yet or is there a problem with my builds?
The CLI of typst currently does this and would be useful.
Add support for incremental edits, like the web application. This should improve the performance on huge documents.
I haven't used many Tauri apps, but I think something is wrong at startup in my builds (for Arch Linux). I'm on a pretty beefy machine (e.g. after a cold boot Firefox starts up 6 windows and 200+ tabs from a saved session) in less than a second, maybe 600ms. Starting up typstudio by contrast takes 10-20 seconds. That's long enough to assume it crashed and start another one, then give up and open a terminal and launch another instance looking for error messages and eventually 3 instances pop up with no apparent errors.
Is there some discovery/scan/timeout something going on that might be hanging? Or some other known issue at startup?
Please provide win_x86_64 binary zipped download. This is due to restriction (no admin) on my machine. Thanks.
The editor does not update the preview when writing into a file that is included by main.typ
I'm seeing excessive memory usage. Memory might be leaking, since I've been running typstudio for hours.
$ ps -p 569678 -o pid,cmd,etime,uid,gid
PID CMD ELAPSED UID GID
569678 typstudio 15:11:37 1000 1000
For your information, I'm using the AUR package:
$ yay -Qi typstudio
Name : typstudio
Version : 0.1.0dev.33-1
Description : desktop application for typst
Architecture : x86_64
The CI currently only builds for x86_64, the universal-apple-darwin
target is needed to compile for both x86_64 and aarch64.
Typst is proposed to replace TeX, and one of major reason of Tex popularity among scientists is convinient math typing. Typst makes it even easier to type math, and I suppose that there will be many people waiting for offline editor to type math in a better way. Therefore, I think supporting math is an important issue. For now, however, typstudio
considers anything between dollar signs as some kind of "string" with no highlighting or hints.
It is actually okay as it is W.I.P., but I want to mention that it is probably a highly desired feature (personally, that is the thing that stops me from using it right now). Besides, it is possibly worth mentioning at README that "Autocomplete" and "Syntax highlighting" are just partly implemented for now (to avoid misunderstanding, you are doing a great work anyway).
I hope you don't mind that I made this just one issue.
cancel(...)
doesn't seem to workdot
by default is not the same as dot.c
even though this is the default behavior in the online editor. (But I get if this is not seen as a problem)A follow-up to Issue#16
Environment
OS: Artix Linux
WM: Sway (Wayland)
Resolution: 1920x1080
Steps to reproduce:
cargo tauri build
./src-tauri/target/release/bundle/appimage/typstudio_0.1.0_amd64.AppImage
main.typ
file that causes the bugSo the error is most likely caused by having letter such as
ö, ä, å and ü that take up more than 1 byte or something
(öööööööööööööööööö)
$ 4! dot.c binom(28, 4)=4! dot.c ( 28 ! ) ERROR $
Some random text here to show where the error goes
Dear Folks,
I would like to know how you have built syntax highlighting for Typst.
I am trying to build Syntax highlighting for Kate, which requires the building of an XML file of all the keywords available in the language which is difficult to do by hand.
I would like to know how you handle syntax highlighting and updating it as Typst changes.
I hope you can guide me in this regard.
Many thanks.
I feel like the preview should be toggle-able, or automatically hide whenever a non-typst file is opened in the editor.
Similar to other IDEs like VSCode.
There are many possible tagging schemes out there, but they all serve a purpose and most of them are careful to have a way to determine if release X is newer or older than release Y. Some even have ways to tag alpha/beta type releases with the target release version and a modifier that indicates the pre-release state and sequence. The tag scheme apparently in use here doesn't do any of that and is super-cumbersome to use. Please abandon it and use semver or 0ver or whatever scheme with a known schema so that downstream installations and package systems can make some sense of it.
At the moment, the file explorer is quite limited, and is missing a lot of basic functionality, like:
I use Windows 11 23H2, and install it.
however it is repeatedly displaying Compiling but now file output,
I have installed typst in my %PATH%
However, I can use the lsp of vscode to compile the file,
It can work with single file + template files in
./
,
but it won't being effectively when I'm using it with folders.
why?
Publish flatpak version on flathub please, this will be awesome for all linux users. Thank you.
Hi,
I'm a newbie and I'm trying to get Typstudio running.
I tried both the getting started and build instruktions (see below) but I get a "500 Internal Error" in the app window in both cases, what could be wrong? I'm guessing that it has to do with the build in web server.
Where should I start looking?
[Getting Started]
pnpm install
pnpm tauri dev
[Building (Release)
pnpm tauri build
regards
yoggi
Older macbook pro (2012) Dual-Core Intel Core i5 running macOS Catalina 10.15.7
#let kilometer = math.upright("km")
#let hour = math.upright("h")
#show math.equation: it => {
it.body.fields()
}
The plane is traveling at the velocity of $2 (kilometer)/hour$
Hello!
I am able to edit .typ file, but unfortunately cannot see anything in pdfviewer. I am on manjaro archlinux 6.3
greetings
v0.1.0-dev.23 does work, so something was changed between these two builds
I do not know if logs are available anywhere, so I don't have any more information than this.
OS: Windows 11 23H2
I installed (macos) but when I open the app and try to open the folder icon it does not show any project and there is no menu or anything else to let me choose a folder.
How should I proceed?
Hi @Cubxity,
I am a fan of TypStudio and I have installed and used it on my Mac M1. However, I have encountered a problem with exporting my file to pdf format on my Mac M1. I would appreciate any assistance or advice on how to solve this issue.
Thank you for your time and attention.
Linh
@Local is used for local packages, on linux this is ~/.local/share/typst/packages/local/{pkg-name}
the typst compiler correctly resolves the path and builds the pdf , but live preview does not work.
This caused massive headaches for me ;)
At the very least, this limitation should be written clearly somewhere.
Probably just due to the newness of it all but i notice that the view dropdown has no submenu items. so things like zooming in and out seem to be missing.
(software looks good so far, its usable)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.