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>
Cc: "Xavier B." <somenxavier@posteo.net>
Subject: [NTG-context] Re: An strange error with section and page
Date: Tue, 22 Aug 2023 20:06:52 +0200	[thread overview]
Message-ID: <781e1658-1b72-e0e1-90d8-5634542918a8@gmail.com> (raw)
In-Reply-To: <20230822193244.c1099812b7f4e0cc9c6802ac@posteo.net>

Xavier B. schrieb am 22.08.2023 um 19:32:
> Hi,
>
> I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf] which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. I migrated old syntax to new one and replace \page[yes] before each section to
>
> \setupheads[section][style={\bf \ssc}, alternative=margin, page=yes]
>
> but now after each section there is a new page.
>
> Why? I don't know.
> Can someone help me to see what happens?
>
> The source code is here [https://repo.or.cz/apunts-espa-matematiques.git]

You're using the structure for section of the following example in your 
document. This is a problem
because subjects are the same level as section or to be precise, 
subjects are unnumbered versions
of sections and inherit all settings from them unless configured otherwise.

While the solution here is to convert all subject headings to subsubject 
(be sure to also take care
of even lower section) a quick way to fix the page break is to disable 
the page-value for subject,
look at the commented line in the example how this can be done.

%%%% begin example
\setuphead[section][page=yes]
%\setuphead[subject][page=no]

\starttext

\startsection[title=Section]

\startsubject [title=Subject]

\stopsubject

\stopsection

\stoptext
%%%% end example

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-08-22 18:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 17:32 [NTG-context] " Xavier B.
2023-08-22 18:06 ` Wolfgang Schuster [this message]
2023-08-23  9:53   ` [NTG-context] " Xavier B.
     [not found]   ` <20230823150217.10323e0d4c68d08793efb572@posteo.net>
2023-08-23 20:04     ` Wolfgang Schuster
2023-08-24  9:23       ` Xavier B.
2023-08-27 17:54       ` Xavier B.
2023-08-27 19:24         ` Wolfgang Schuster
2023-08-27 22:08           ` Xavier B.

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=781e1658-1b72-e0e1-90d8-5634542918a8@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=somenxavier@posteo.net \
    /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).