Is it possible to write a where field selector which matches a field if its value is in a certain range respectively fulfills a certain predicate (specified as function)?
For example, let’s say only headings with level <= 3 should be numbered. So ideally you would write something like:
#show heading.where(level: <= 3): set heading(numbering: "1.1.")
(the <= 3 here is not valid syntax)
It seems the only solution is to
ortogether multiple selectors, e.g.selector.or( heading.where(level: 1), heading.where(level: 2) )- OR, to write a regular
showrule instead of ashow setbut then you have to useit.bodybecause doingset heading(numbering: ...)inside ashow headingseems to have no effect?