ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: temporary changes to the layout - \startlocal undefined
Date: Tue, 16 Feb 2021 17:21:37 +0100	[thread overview]
Message-ID: <94b10c7c-9fbb-63f5-31e3-8e44d73c5a66@gmail.com> (raw)
In-Reply-To: <fc885bd5-1f63-ce83-7b74-c55728596f0a@gmx.at>

Werner Hennrich schrieb am 16.02.2021 um 16:29:
> Hello Everybody,
> 
> I need to increase my header's space temporarily
> and according to pg 99 of context_an_excursion "\startlocal ...
> \stoplocal" is the way to go -
> unfortunately my LMTX (2021.02.02 15:49) disagrees:
> 
>      \setuppapersize[A4][A4]
>      \setuplayout[
>          ...
>          header=15mm,
>      ...
>      ]
>      \starttext
> 
>      \input tufte
>      \page
> 
>      \startlocal
>      \setuplayout[header+=20mm]
>      \input tufte
>      \stoplocal
>      \page
> 
>      \input tufte
>      \stoptext
> 
> This fails:
> 
>      tex error       > tex error on line XX in file ./local-layout.tex:
> Undefined control sequence
>      XX >> \startlocal
> 
> Do I need to load something in order to use this?
> Or has it been completely removed?
> And if so, is there a new alternative method to do the same thing?
> 
> I was unable to find anything on this topic
> except https://www.mail-archive.com/ntg-context@ntg.nl/msg63602.html
> which raises the same question already in 2012 but never answers it IMHO.

Create a named layout (\definelayout[...]) and use it:

\setuplayout
   [header=15mm]

\definelayout
   [extraheader]
   [header=35mm]

\showframe

\starttext

\input tufte

\startlayout[extraheader]
\input tufte
\stoplayout

\input tufte

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

  reply	other threads:[~2021-02-16 16:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 15:29 Werner Hennrich
2021-02-16 16:21 ` Wolfgang Schuster [this message]
2021-02-16 17:54   ` Werner Hennrich

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=94b10c7c-9fbb-63f5-31e3-8e44d73c5a66@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).