GithubHelp home page GithubHelp logo

cubxity / typstudio Goto Github PK

View Code? Open in Web Editor NEW
514.0 12.0 17.0 6.1 MB

A W.I.P desktop application for a new typesetting language, typst.

License: GNU General Public License v3.0

JavaScript 2.46% Rust 58.49% CSS 0.08% HTML 0.34% Svelte 23.35% TypeScript 15.28%
desktop gui latex rust svelte tailwindcss tauri typescript typesetting typst hacktoberfest

typstudio's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typstudio's Issues

Windows build completely broken?

I downloaded the latest build, and the only thing I can do is "open project" to select a folder. The + on project then let's me create files (they show up in file explorer), but nothing actually shows up in the interface.

image

What is the expectent contents of the Edit & View menus?

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?

Support for incremental edits

Add support for incremental edits, like the web application. This should improve the performance on huge documents.

Extremely long startup times

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?

Excessive memory usage?

I'm seeing excessive memory usage. Memory might be leaking, since I've been running typstudio for hours.

image

$ 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

Math highlight&autocomplete

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).

Some small bugs I noticed

I hope you don't mind that I made this just one issue.

  1. cancel(...) doesn't seem to work
  2. the wiggly line under where the error is often in the wrong place (or even on the wrong row)
  3. dot 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)

Red squiggly line renders in the wrong place

A follow-up to Issue#16
Environment
OS: Artix Linux
WM: Sway (Wayland)
Resolution: 1920x1080

Steps to reproduce:

  1. cargo tauri build
  2. ./src-tauri/target/release/bundle/appimage/typstudio_0.1.0_amd64.AppImage
  3. Here is an example of a main.typ file that causes the bug
So 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

image

Syntax Highlighting

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.

Please use a different tagging scheme

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.

Improve the file explorer

At the moment, the file explorer is quite limited, and is missing a lot of basic functionality, like:

  • Creating folders
  • File/folder context menus
    • Creating new files
    • Creating a sub-folder
    • Deleting a file
    • Renaming a file
    • etc.

No preview

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?

500 Internal error

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

Crash while editing a show rule

Environment

  • Typstudio v0.1.0-dev.32
  • Windows 10
  • Typst CLI is also installed

Steps to reproduce

  1. Open Typstudio and create a project with the following main.typ file:
#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$
  1. Highlight ".fields()" on line 5.
  2. Press backspace.
  3. Press backspace again (to try remove the y).
  4. Crash!
typstudio.mp4

pdf preview not displayed

Hello!

I am able to edit .typ file, but unfortunately cannot see anything in pdfviewer. I am on manjaro archlinux 6.3

greetings

Basic usage

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?

I can't export to PDF on my Mac M1

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 breaks live preview

@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.

image

File menu seems to be unpupulated

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.