vertical offset with "i" in position-command
Hi, When I want to type an "i" in the position-command, there is some vertical offset: \starttext \startpositioning \position(1, 1){i} \position(2, 1){x} \position(1, 2){x} \position(2, 2){i} \position(1, 3){a} \position(2, 3){x} \position(1, 4){x} \position(2, 4){a} \stoppositioning \stoptext Why is it so, and how could I avoid that please? TIA for any hints, -- Peter
Peter Münster schrieb am 12.02.2021 um 13:31:
Hi,
When I want to type an "i" in the position-command, there is some vertical offset:
\starttext \startpositioning \position(1, 1){i} \position(2, 1){x} \position(1, 2){x} \position(2, 2){i} \position(1, 3){a} \position(2, 3){x} \position(1, 4){x} \position(2, 4){a} \stoppositioning \stoptext
Why is it so, and how could I avoid that please?
1. Because the letters have different heights. \startTEXpage[offset=1ex] \processisolatedchars{aix}\ruledhbox \stopTEXpage 2. Add \strut, e.g. \position(1, 1){\strut i} Wolfgang
On Fri, Feb 12 2021, Wolfgang Schuster wrote:
2. Add \strut, e.g. \position(1, 1){\strut i}
Ah, thanks. So the anchor is not the baseline, but the top-left corner of the content. Since "\setuppositioning[before=\strut]" does not work, I use this workaround now: \def\myPosition(#1, #2)#3{\position(#1, #2){\strut#3}} Would it make sense to add the "before" key to \setuppositioning? -- Peter
participants (2)
-
Peter Münster
-
Wolfgang Schuster