You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
Add an "Export in slide mode" feature to the VSCode command palette so that slides can be shared
Use Case
It is wonderful that typst-preview has a browser slide mode preview, and this can be saved from the browser to make a portable slide deck. However, this results in text that turns orange on hover, and is slightly inconvenient compared to an "export" option that would exist directly in the extension.
Other export modes (i.e. svg_html) are accessible through the typst-ts-cli executable, but slide mode is currently restricted to the preview extension which is why the feature request is here.
The text was updated successfully, but these errors were encountered:
For a 19 page deck with many images:
PDF size: 5.9 MB
svg_html: 13.5 MB
Browser preview -> save: 1.8 MB
The document is totally portable since all resources end up being b64 encoded and directly embedded
I've made a foolish mistake during testing -- both computers were running vscode while the preview was being loaded, meaning the backend was responding to localhost requests... the saved file is in fact not portable in the current extension state. Rather, the first page shows no matter what, but everything else (i.e. stepping through the deck) is unresponsive
This is doable, since the only missing is that no render data are initialized. Imagine that we have snapshot and replay feature, then the page will work again. The only two events to snapshot are:
event 1: enable partial rendering
event 2: reset document data (It is exactly the `typst-ts-cli compile --format vector`)
Feature Request
Add an "Export in slide mode" feature to the VSCode command palette so that slides can be shared
Use Case
It is wonderful that
typst-preview
has a browser slide mode preview, and this can be saved from the browser to make a portable slide deck. However, this results in text that turns orange on hover, and is slightly inconvenient compared to an "export" option that would exist directly in the extension.Other export modes (i.e. svg_html) are accessible through the typst-ts-cli executable, but slide mode is currently restricted to the preview extension which is why the feature request is here.
The text was updated successfully, but these errors were encountered: