How can I set the marker per item in a bullet point list?

I would like to offer the option of selecting items in a bullet point list by ticking them with a pen. To do this, I have configured the bullet point list so that a square is rendered on the first level. This works.

Now I want the first item to be preselected. To do this, I only want to have a black filled square as a marker for the first item. A :heavy_check_mark: in the square would be even better.

Is that possible?

#set list(marker: (square(size: 0.8em), [β€’]))

- abc
- def
  - ghi
  - jkl
- mno
1 Like

I think you could use or get inspired by cheq for this use case:

2 Likes

Wow, it’s cool. I just think if it can be extended to include Font Awesome as an icon library like them in LaTeX.

You can easily do that too:

#import "@preview/cheq:0.2.2": checklist
#import "@preview/fontawesome:0.5.0": *

#show: checklist.with(marker-map: (
  "x": fa-x(),
))

- [ ] a
- [x] b

Note that the fontawesome package requires you to first manually install the font, since packages can’t ship fonts at the moment. See the package page for instructions:

2 Likes