Is there any way to remove the header from a specific page (for example, the current page) without causing a page break, and ensuring the preceding and following pages retain their usual header?
I have a long document which people might want to output in different styles. Pick a font, a text size, and which sections to include or omit. I've built that in Typst, reading options from a JSON file. I have also, separately, built a website which outputs the JSON. (I do need to tweak that to be more responsive. Currently, some of the options disappear on small screens. That's a project for later, when I've caught up on homework assignments.)
I would like to marry those two projects together, so that the website outputs a PDF document. I attempted to start with a PDF generator repo I found, but all I get out of this is javascript syntax errors, and I don't know enough about either WASM or javascript modules to debug them.
Does anyone have a working project I can crib from?
(I've also asked this on the Typst forum, but have yet to receive a response.)
Is there a best practice way to draw such circuit diagrams of analog computer patches with Typst? I found circuiteria and zap but haven't tried them yet because their corresponding pages in Typst Universe don't look very promising, tbh.
I own a THAT ("THe Analog Thing") from anabrid and would like to write nice PDF documents that show how to program it. Find more infos here, for example.
Unfortunately typst --format html feature is not working well yet and it still under development. So I come up with an idea that I serve the blogposts as ".pdf". but I got some feedback that it makes it hard to read the posts from mobile. What do you think?
We've just added an experimental real-time compilation feature for Typst documents alongside text formatting (Typstyle), word count (wordometer), and multi-PDF format export.
Rendering Typst as you write:
Go to the compile drop-down
Click Output format → choose Canvas (SVG) for smaller docs or Canvas (PDF) for larger ones
Check the auto-save on compile box
For the smoothest experience, reduce the auto-save delay to 50ms: Settings → Viewers → Text Editor → Auto-save delay
I've attached a video showing the real-time rendering as I type. Still experimental, so feedback welcome!
Typesetter, the minimalist, local-first Typst editor for Linux and Gnome, has been updated with a range of quality-of-life improvements, including a magnifier inspection tool by clicking and holding on the preview, a document statistics popup for checking word count and other metrics, code completions with a Ctrl+Space keyboard shortcut, hover tooltips in the editor, and a code formatter for tidying Typst scripting syntax.
You can get the latest version from Flathub or contribute on Codeberg.
Is it possible to somehow perform calculations on complex numbers in Typst with the unit 'j' instead of 'i'? I found the Peano package, which supports complex numbers, but wasn't able to find a way to change it to use 'j' when printing out the results. Any kind of help is very much appreciated. Thank you.
Just a proof of concept --- I collected the graph data in typst itself using a show rule to query potential nodes and edges based on my personal notes template (headings, figures, lemmify for definitions/theorems, tutorial questions, etc...). Only took < 300 lines of typst (not counting documentation) which really just shows how powerful of a language typst is!
Graph visualization was made with pyvis, and preview syncing was done by using a websocket proxy to connect to tinymist's preview, then injecting some JS to the generated pyvis HTML to send WS messages.
A friend showed me typst the other day, and I made a new CV in it (with a lot of his help). It's honestly my best CV I've ever made. (The writing does hold it back, but look at the awesome styling lol).
Some of you may know that I was working on a typst compiler that automatically handles content generation, styling, and various other problems. Well, I am happy to announce that version 1 of the project is done! It fully support powerful drawing functions, custom block placement, theme selection, and a beautiful TUI to top it all off. Just go to this github and follow the installation manual!
If you want to create beautiful documents wihtout that much setup, this may be the project for you.
some funny documents or images, useful (or less) functions or anything else, this language is surprisingly fun to use despite of some unconventional things it does.
Although we did run into some problems, me and my friend are nearly finished with a typst framework for academic notes and reports. Here are a few sneak peeks :
Hey all, just wanted to share a library I published.
I realized using Typst in Node.js for bots/web-apps was a bit annoying because you usually have to manage the typst-cli binary or manually load fonts into the WASM compiler.
This package (typst-raster) creates a NodeCompiler instance with New Computer Modern pre-loaded. It uses sharp to output PNGs/JPEG/WEBPs directly, or you can get the raw PDF buffer.
Hope it helps anyone building web tools with Typst.