typst-bytefield icon indicating copy to clipboard operation
typst-bytefield copied to clipboard

Passthrough length & color arguments to text and box

Open nopeslide opened this issue 1 year ago • 3 comments

Small usage improvement. Every field represents some text at the end and afaik fields do not use length or color arguments. instead of

bytes(3)[
  #box(width:100%,height:100%,fill:green)[
    #text(8pt)[
      my bytes
    ]
  ]
]

passthrough length arguments to text and color arguments as box fill

bytes(3,8pt,green)[my bytes]

nopeslide avatar Feb 21 '24 07:02 nopeslide