How to change the size of list markers without a vertical offset?

I would like to enlarge the marker of a bullet list. I can do this with

#set list(marker: (text([‣], size: 2em)))

However, in this case there is an undesired vertical offset, i.e. the markers are too low.
I also tried to use box from this post, which reduces the spacing between lines, but not the offset of the markers.
I have an MWE here.
Is there a way to enlarge the markers such that they are still vertically centered?

I’m not sure if there’s an automatic way to center the marker, but any solution would probably work by adjusting the box’s baseline.

btw, I’ll move your post to the Questions category and add some tags :slight_smile:

1 Like

Thanks! I tried using baseline, but I didn’t manage to move only the markers a little bit up. I can only move the whole line, but I don’t want to change the spacing between the lines.

ah, interesting. I misdiagnosed the issue… (as an aside, this is one reason why it’s useful to include failed attempts: it speeds up narrowing down the issue)

The main problem seems to be related to how list markers are laid out in Typst. There may be some overlap going on with the issue List and enum markers are not aligned with the baseline of the item's contents · Issue #1204 · typst/typst · GitHub. Ultimately, changing a marker’s baseline does not work as intended.

We still have two options left:

  1. that the mark is so misaligned is because it is bigger than the box. We can change its alignment within the box:
    #set list(marker: box(height: 0.65em, align(horizon, text(size: 2em)[‣])))
    
  2. if that doesn’t fit, we can always manually move the mark:
    #set list(marker: box(height: 0.65em, move(dy: -80%, text(size: 2em)[‣])))
    

That last one looks about right!

1 Like

Thanks a lot! I think I prefer the first option, such that we don’t need to fiddle around with percentages and it already looks quite good.
(Regarding your aside: I meant I tried using baseline after you suggested it. I didn’t try it before :slightly_smiling_face:)

1 Like