Julian
April 8, 2026, 6:22pm
1
#let cursor = state(“cursor”, 0.1em)
#let placeNeume(gabcneume) = {
…
let dx = context cursor.get()
[#dx ]
[#pitches .at(pitch)]
place(dx:dx,dy:-pitches.at(pitch),neumentypes.at(“g”))
dx and pitches show me both a length (e.g. 0.1em)
for the dy the placing works fine, but dx throws an error:
error: expected relative length, found content
┌─ lib.typ:54:11
│
54 │ place(dx:dx,dy:-pitches.at(pitch),neumentypes.at(“g”))
│ ^^
why is it content and not relative length ?!
Hello @Julian , welcome to the forum and thank you for your question.
You will notice it is not easy to view the code snippet you have posted. If you could please edit your post to follow the guidance provided in:
This way your code will look like:
#let cursor = state(“cursor”, 0.1em)
...
It is easier to copy and paste and to read all along.
Could you please ensure that the code snippet compiles without any other modification, this in order to help you best.
To understand why dx is of type content , see Why is the value I receive from context always content? for more details.