Coder Social home page Coder Social logo

typst-boxes's People

Contributors

lkoehl avatar loewe1000 avatar

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

Watchers

 avatar  avatar

Forkers

lnatero maucejo

typst-boxes's Issues

stickybox: failing to use it

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)
   │     ^^^^^^^^^^^^^

colorbox content misaligned

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.

Remove `codetastic` dependency

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.

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.