Hi, It looks like the \offset command is not quite exact? See attached output, which I thought should be exactly centred horizontally. Instead, it shifts too far to the left. Normally I would suspect a stray space somewhere, but I do not see it... Best wishes, Taco
Taco Hoekwater schrieb am 19.11.2021 um 15:34:
Hi,
It looks like the \offset command is not quite exact? See attached output, which I thought should be exactly centred horizontally. Instead, it shifts too far to the left. Normally I would suspect a stray space somewhere, but I do not see it...
Floats are centered by default and your offset destroys the alignment. \setuppapersize [A5] [A4] \setuplayout [location=middle, width=middle] \showframe \starttext \placefigure[top][fig:ref] {Caption} {\externalfigure[cow][frame=on,width=\dimexpr\paperwidth+6mm\relax]} \stoptext Wolfgang
On 19 Nov 2021, at 15:47, Wolfgang Schuster
wrote: Taco Hoekwater schrieb am 19.11.2021 um 15:34:
Hi,
It looks like the \offset command is not quite exact? See attached output, which I thought should be exactly centred horizontally. Instead, it shifts too far to the left. Normally I would suspect a stray space somewhere, but I do not see it...
Floats are centered by default and your offset destroys the alignment.
Ok, but then, should it not have given me 3mm to the left and to the right, then apply an offset of -3mm, resulting in *all* of the extra 6mm to the left? yes? Ah… except that the centering of the float happens *after* the offset, and the \offset actually adjusts the apparent width of the float (which is a bit unexpected, if you ask me). It ends up with 4.5mm to the left and 1.5 to the right, because the offset command has effectively *shrunken* the float. Well, now I get why Harald was confused all the time ;) .. but at last I get it. — Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
participants (2)
-
Taco Hoekwater
-
Wolfgang Schuster