ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Keith McKay via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Keith McKay <mckaymeister@gmail.com>
Subject: Re: Absolute positioning of \startcombination... \stopcombination
Date: Fri, 17 Mar 2023 12:11:15 +0000	[thread overview]
Message-ID: <8e146911-4298-db85-df39-0a5c111a37a4@gmail.com> (raw)
In-Reply-To: <6e6abe70-8d1a-1b3a-b561-c148f92ff373@gmx.es>

Thanks for your reply Pablo. I didn't see it till just now because for 
some reason it ended up in my junk folder, along with a number of other 
ConTeXt messages. You will probably have seen my reply to the list with 
the three solutions, now we have four!

Yep, I know that A4 is the default page size and I always start with 
that but sometimes I play about with page sizes when typesetting and so 
can just change when coding.

In the document I'm working on, some pages will only contain images 
and/or combination of images so I went down the Layers route since this 
also allows me to absolutely position these images on the page.

Thanks again for your help!

Best Wishes

Keith McKay

On 16/03/2023 17:58, Pablo Rodriguez via ntg-context wrote:
> On 3/16/23 17:59, Keith McKay via ntg-context wrote:
>> 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.
> Hi Keith,
>
> I think the following sample might achieve what you want:
>
>    \showframe
>    \setupexternalfigures[location={default}]
>    \setuplayout
>      [backspace=2.5cm,
>      topspace=1cm,
>      height=28cm,
>      width=17cm,
>      header=0cm,
>      footer=0.75cm,
>      ]
>    \definelayer[test3]
>    %[x=.5\paperwidth, y=.5\paperheight]
>    [x=.5\textwidth, y=.5\textheight]
>    %\setupbackgrounds[page]
>    \setupbackgrounds[text]
>    [background=test3]
>    \starttext
>    \setlayer[test3][location={middle}]
>       \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm]
>              {\externalfigure[cow][width=15mm]}{}
>              \rotate[rotation=90]{\externalfigure[cow][width=15mm]}{}
>              {\externalfigure[cow][width=15mm]}{}
>       \stopcombination}}
>    \null
>    \stoptext
>
> BTW, A4 portrait is the default page size.
>
> \setupbackgrounds is the standard way to place layers.
>
> Page and text centering would require different positions (I have
> commented out the option for page centering).
>
> I hope it helps (since I’m not sure I’m getting your point here),
>
> Pablo
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2023-03-17 12:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-16 16:59 Keith McKay via ntg-context
2023-03-16 17:27 ` Wolfgang Schuster via ntg-context
2023-03-16 18:07   ` Alan Braslau via ntg-context
2023-03-16 19:50     ` Keith McKay via ntg-context
2023-03-17 11:13       ` Keith McKay via ntg-context
2023-03-16 17:58 ` Pablo Rodriguez via ntg-context
2023-03-17 12:11   ` Keith McKay via ntg-context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e146911-4298-db85-df39-0a5c111a37a4@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=mckaymeister@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).