I need to typeset a paragraph like the following. For that I need to set hanging-indent
to the width of "Advisors: ", space included.
Advisors: Ph.D Very Long Name
Ph.D Another Very Long Name
The problem is: measure
ignores any space width — be it a normal or non-breakable space. So the above turns out like:
Advisors: Ph.D Very Long Name
Ph.D Another Very Long Name
This is contrary to the norms of my institution… Below is the code I’m using. I also tried to add + measure(sym.space.nobreak).width
in the padding
attribution, but it changes nothing.
context {
let prefix = [Advisors:~]
let padding = measure(prefix).width
let body = par(hanging-indent: padding, {
prefix + advisors.join(linebreak()) // advisors is an array of names
})
}
Am I missing something? Thank you in advance!