lkoehl / typst-boxes Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It would be nice to have this package in the "official" package repository of the typst project.
@lkoehl do you have any interest to submit it there?
Otherwise, I can also try to bring it in there, if this is ok for you...
Hi,
I'm trying to use a stickbox and I have this issue:
error: cannot divide ratio by length
┌─ @preview/colorful-boxes:1.2.0/lib.typ:159:28
│
159 │ width: calc.clamp(width * 0.35 / 1cm, 1, 4) * 1cm,
│ ^^^^^^^^^^^^^^^^^^
help: error occurred in this call of function `stickybox`
┌─ src/doc/main.typ:95:2
│
95 │ stickybox(rotation: 30deg, content)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: error occurred in this call of function `default-rect`
┌─ @preview/drafting:0.1.2/drafting.typ:288:18
│
288 │ let note-rect = props.at("rect")(
│ ╭───────────────────^
289 │ │ stroke: props.stroke, width: right-width, body
290 │ │ )
│ ╰───^
help: error occurred in this call of function `_margin-note-right`
┌─ @preview/drafting:0.1.2/drafting.typ:368:4
│
368 │ ╭ margin-func(
369 │ │ body, dy, anchor-x, anchor-y, ..properties
370 │ │ )
│ ╰─────^
help: error occurred in this function call
┌─ @preview/drafting:0.1.2/drafting.typ:49:4
│
49 │ func(use-loc)
│ ^^^^^^^^^^^^^
With version 0.4.0 of typst the content of the first example box (colorbox) is misaligned.
I have "fixed" it by adding an empty line XOR a #v(0pt) statement between the two boxes inside the outer box in the module file. But I doubt that this is more than a workaround for some other problem.
Codetastic may be a good library, but is quite heavy, with lots of inefficient Typst code.
I think users can figure out they can put qr-codes inside colorful-boxes themselves, the library should not add just another dependency for nothing, without even documenting it.
Example in README doesn't work because of incorrect function name in lib.typ
.
Context: I'm writing a package overview for my Typst Examples Book and wanted to write about your package too, but bumped into several issues.
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.