#Typst package (WASM plugin)

15 messages · Page 1 of 1 (latest)

devout phoenix
#

Similar to the https://discord.com/channels/1054443721975922748/1179926907039531109, I was thinking about Typst itself as a plugin. The main reason for it is to be able to execute "clean" Typst, i.e. resetting all the set/show rules that are present in the host Typst document. Even after testing the https://github.com/typst/packages/tree/main/packages/preview/idwtet/0.3.0 package it is still affected by the simple

#set text(size: 10pt, fill: red)
#show raw: set text(size: 7pt)
#show math.equation: set text(size: 9pt)

So it would be nice to be able to provide a truly "default" Typst examples inside "fully customized" Typst.

Of course, if Typst will finally create a reset() function that restores everything to the default state, then such plugin will become useless. But which of these 2 will come first?

And also a sub-question: if current typst's (v0.9.0, Linux) size is about 31.12 MiB, then how this will convert to WASM? If WASM version of Typst (that is used in the website) is available or can be manually created, then I would love to have some instructions on how to get it.

manic rune
#

I think the wasm is about 15mb, but it doesnt include the standard fonts and so on

#

and I think the wasm part is part closed source so you would have to create it yourself

devout phoenix
#

I think the wasm is about 15mb
How did you get this number?

devout phoenix
manic rune
#

actually its 16mb I guess but still

devout phoenix
#

It's about 17 MB or 16.2 MiB.

pure aspen
#

There's already a try when it was around v0.7.0 #contributors message

devout phoenix
onyx sable
devout phoenix
#

I used LuaLaTeX and for many things I used Lua, so for something bigger than just a simple typesetting I refuse to use anything but LuaTeX engine.

onyx sable
#

I think I got confused, this was about typst not latex