ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: Keith McKay <mckaymeister@gmail.com>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with \setuplayout parameters being ignored
Date: Sun, 5 Mar 2023 18:24:17 +0100	[thread overview]
Message-ID: <cef42787-89f7-d07d-ae18-a8d56aa33152@gmail.com> (raw)
In-Reply-To: <b59a7cc1-1220-6887-29c6-624606e023ce@gmail.com>

Keith McKay schrieb am 05.03.2023 um 18:10:
>
> Thank you so much Wolfgang! I should have realised that. It's what I 
> get for trying to write readable code.
>
You can use the = to align keys and values, e.g.

\setuplayout
   [backspace=2.5cm,
       margin=0.5cm,
        width=16cm,
       header=1cm,
       footer=1cm]

Another useful method is to put large settings into a setups-blocks and 
pass the block to a setup-command.

\startsetups [apage]
\startMPcode
StartPage;
...
StopPage;
\stopMPcode
\stopsetups

\defineoverlay[apage][\directsetup{apage}]

Wolfgang

___________________________________________________________________________________
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-05 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-05 16:54 Keith McKay via ntg-context
2023-03-05 16:58 ` Wolfgang Schuster via ntg-context
2023-03-05 17:10   ` Keith McKay via ntg-context
2023-03-05 17:24     ` Wolfgang Schuster via ntg-context [this message]
2023-03-05 17:41       ` Keith McKay via ntg-context

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=cef42787-89f7-d07d-ae18-a8d56aa33152@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=mckaymeister@gmail.com \
    --cc=wolfgang.schuster.lists@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).