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

Highlighting broken inside of aligned equations

Open lukasjuhrich opened this issue 1 year ago • 1 comments

The following example looks broken:

#import "@preview/pinit:0.1.3": *
We have a #pin(1)Special#pin(2) map $
  #pin(3)f#pin(4) -> #pin(5)g#pin(6)
$

#pinit-highlight(1, 2)
#pinit-highlight(3, 4)
#pinit-highlight(5, 6)

Render: image

Making the equation inline turns out like it should.

lukasjuhrich avatar Jun 19 '24 12:06 lukasjuhrich

I don't know exactly why yet, but you can try:

#import "@preview/pinit:0.1.3": *

#pinit-highlight(1, 2)
#pinit-highlight(3, 4)
#pinit-highlight(5, 6)

We have a #pin(1)Special#pin(2) map $
  #pin(3)f#pin(4) -> #pin(5)g#pin(6)
$

OrangeX4 avatar Aug 23 '24 15:08 OrangeX4