image align in \clip
Dear all, I use \clip to simplify working with images. I have a problem that I am unable to reproduce in a MWE. \setupexternalfigure[location=default] \showframe \starttext \externalfigure[cow.pdf][width=\textwidth] \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext In my real document the clipped image is shifted to the right as if indented by 1em or so. Any hints where to look for the reason? TIA juh
On 12/9/2020 9:38 AM, Jan U. Hasecke wrote:
Dear all,
I use \clip to simplify working with images.
I have a problem that I am unable to reproduce in a MWE.
\setupexternalfigure[location=default] \showframe \starttext \externalfigure[cow.pdf][width=\textwidth]
\clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext
In my real document the clipped image is shifted to the right as if indented by 1em or so.
Any hints where to look for the reason? what if you put \removeunwantedspaces in front of the clip
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 12/9/2020 12:08 PM, Jan U. Hasecke wrote:
Am 09.12.20 um 11:26 schrieb Hans Hagen:
what if you put \removeunwantedspaces in front of the clip
The space vanishes when I put it right before \externalfigure.
Thanks a lot, Hans!
(Still, I would like to know how the space came up in the first place.) hard to say without knowing what happens before you do the \externalfigure command
you can put \tracingall someplace before it and \tracingnone after the \removeunwantesspaces and then check the log and see where a space is injected Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 12/9/20 9:38 AM, Jan U. Hasecke wrote:
Dear all,
I use \clip to simplify working with images.
Hi Jan-Ulrich, this command is really useful.
In my real document the clipped image is shifted to the right as if indented by 1em or so.
I have read that Hans solved your issue. I thought of another approach (which isn’t your case): \showframe\showgrid \setupindenting[yes, always, big] \setupexternalfigure[location=default] \showframe \starttext \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \dontleavehmode \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \noindentation \dontleavehmode \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext I thought that you had your image in horizontal mode (inside a paragraph) and then the paragraph was indented. Cheers Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Jan U. Hasecke
-
Pablo Rodriguez