From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117212 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Absolute positioning of \startcombination... \stopcombination Date: Thu, 16 Mar 2023 18:27:53 +0100 Message-ID: References: <31725561-7e98-c964-0637-4883ad234351@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5329052950185032755==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4827"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.59 Cc: Wolfgang Schuster , Keith McKay To: mailing list for ConTeXt users , Keith McKay via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 16 18:28:27 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pcrOs-00013S-TN for gctc-ntg-context-518@m.gmane-mx.org; Thu, 16 Mar 2023 18:28:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 14A9D380967; Thu, 16 Mar 2023 18:28:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MsS9BR7BT6km; Thu, 16 Mar 2023 18:27:57 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 41247380AA6; Thu, 16 Mar 2023 18:27:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 338D9380AB9 for ; Thu, 16 Mar 2023 18:27:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4H-dkAlk08Xd for ; Thu, 16 Mar 2023 18:27:54 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.46; helo=mail-ed1-f46.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 18971380967 for ; Thu, 16 Mar 2023 18:27:53 +0100 (CET) Original-Received: by mail-ed1-f46.google.com with SMTP id cy23so10483591edb.12 for ; Thu, 16 Mar 2023 10:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678987673; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=S77iHUFoVrtiqr8qLENTpgUXAtacrPsWtrU3UbSTveI=; b=k38XO/v1WbeUQq2bA2LiaeNBlL6wDjbcYcxXfr/Ub+xSwP78JJiHeUXoqQagvsUx57 VpwZL4iuGK9g+Bd0ZNNKjdUK6OhPCrBEqjCx3OEQ1y/8KUmpzjC6urzQfn2P7nHtdK6D UC9d358KFnHvDFgrPCQ4qIN1wyRZf8tHUY+xrlJwFo51bF//49fiGoG3jin/y3XKVdTI V6LweoNfJqTDWhzsnaRTZzlJ/UIYeFJ2/KPVEf8GkPXmhyifaxMA5shKqvTD6wEvKQnr NGRAsK42DzDGWZ+D9hYa8S1Nm0k459Qyo9+8SJT23Gm0JHVz+V2/aRfA/8eFmf94W1ld K5lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678987673; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=S77iHUFoVrtiqr8qLENTpgUXAtacrPsWtrU3UbSTveI=; b=j3RYIfYwQeqIJl5WyqqL5fbK2v86y3cXu48Gl9AfMlmPioQ6r8C4VPi5K8yh8K2oth euflORxpFmdqDVlIdsW1y6hn8StUFrZ/rjzlTNNkIE/qUmiyPOsRKxH/SNWJpxmA+uei ayaVOGRnbfSU2rjjKkkNFpPawCA13GL8o17+cmriT4hwLycuWcFTR9866UqRLyBTS9do swB8x9Fq4WrlQSe9sHfDRlVJRoJSTlAUuh5EuoxCeLUB8ik4VoXlWA3BbD7M1KeZLD7W X1oqvLBRLgT0Im5NESVoBPo9wYKRh9K/UHpPUnb4BhHWOy1yQJxowWce5j7MxDONv5qR nLfA== X-Gm-Message-State: AO0yUKVVUCwmgW+m+L7yspCy4RcmjCGhq/Dvob0Y6xVjKEauncT4rtyy vgkfdY6ohgYdUqReQ4s0ytMgWI/ARqw= X-Google-Smtp-Source: AK7set9eAkJR6PCEptJZ/qXsPexUOAVGTc35FpuPo21FU36vdkh/Jv74FLgVil5jmbMf3/pOyXxJug== X-Received: by 2002:aa7:c94f:0:b0:4fa:aee8:235f with SMTP id h15-20020aa7c94f000000b004faaee8235fmr413418edt.9.1678987673488; Thu, 16 Mar 2023 10:27:53 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:fe08::cccc? ([2a02:810d:a8bf:fe08::cccc]) by smtp.gmail.com with ESMTPSA id r29-20020a50d69d000000b004c2158e87e6sm15822edi.97.2023.03.16.10.27.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Mar 2023 10:27:53 -0700 (PDT) In-Reply-To: <31725561-7e98-c964-0637-4883ad234351@gmail.com> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:117212 Archived-At: This is a multi-part message in MIME format. --===============5329052950185032755== Content-Type: multipart/alternative; boundary="------------2E37204CD7821EC11241F8AF" Content-Language: en-US This is a multi-part message in MIME format. --------------2E37204CD7821EC11241F8AF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59: > > Hi, > > I would like to position a combination of images where the centre of > the combination coincides with the centre of the text area of a page. > In the example below I have made the combination into a layer thinking > that this would be the easiest way to position it where I wanted. > However to position in the centre of the page I would need to know the > size of the combination and use this to calculate the x and y values > for positioning of the layer. I have looked at the Wiki page on image > size of combinations but still cant figure out how to do it. Any > suggestions on how to go about this or is their a better way? > > Wiki Page reference: > https://wiki.contextgarden.net/Combinations#Image_Width > > Thanks > > Keith McKay > > %%% example %%% > > \setuppapersize[A4,portrait]%[A4,portrait] > > \setuplayout > > [backspace=2.5cm, > > topspace=1cm, > > height=28cm, > > width=17cm, > > header=0cm, > > footer=0.75cm, > > ] > > \useMPlibrary [dum] > > \starttext > > \definelayer[test3] > > \setlayer[test3][x=2cm,y=15cm] > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > {\externalfigure[dummy]}{} > > \rotate[rotation=90]{\externalfigure[dummy]}{} > > {\externalfigure[dummy][]}{} > > \stopcombination} > > \flushlayer[test3] > > \stoptext > \useMPlibrary [dum] \showframe [text] [text] \setuplayout [tight] \starttext \centerbox    {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]         \bTR             \bTD                 \externalfigure[dummy]             \eTD             \bTD                 \rotate[rotation=90]{\externalfigure[dummy]}             \eTD             \bTD                 \externalfigure[dummy]             \eTD         \eTR     \eTABLE} \stoptext Wolfgang --------------2E37204CD7821EC11241F8AF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59:

Hi,

I would like to position a combination of images where the centre of the combination coincides with the centre of the text area of a page. In the example below I have made the combination into a layer thinking that this would be the easiest way to position it where I wanted. However to position in the centre of the page I would need to know the size of the combination and use this to calculate the x and y values for positioning of the layer. I have looked at the Wiki page on image size of combinations but still cant figure out how to do it. Any suggestions on how to go about this or is their a better way?

Wiki Page reference:   https://wiki.contextgarden.net/Combinations#Image_Width

Thanks

Keith McKay

%%% example %%%

\setuppapersize[A4,portrait]%[A4,portrait]

\setuplayout

[backspace=2.5cm,

topspace=1cm,

height=28cm,

width=17cm,

header=0cm,

footer=0.75cm,

]

\useMPlibrary [dum]

\starttext

\definelayer[test3]

\setlayer[test3][x=2cm,y=15cm]

{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]

{\externalfigure[dummy]}{}

\rotate[rotation=90]{\externalfigure[dummy]}{}

{\externalfigure[dummy][]}{}

\stopcombination}

\flushlayer[test3]

\stoptext


\useMPlibrary [dum]

\showframe [text] [text]

\setuplayout [tight]

\starttext

\centerbox
   {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]
        \bTR
            \bTD
                \externalfigure[dummy]
            \eTD
            \bTD
                \rotate[rotation=90]{\externalfigure[dummy]}
            \eTD
            \bTD
                \externalfigure[dummy]
            \eTD
        \eTR
    \eTABLE}

\stoptext

Wolfgang

--------------2E37204CD7821EC11241F8AF-- --===============5329052950185032755== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5329052950185032755==--