Hi, I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conT...] 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] Thanks in advance, Xavier PS: Please CCme
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.conT...] 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
On Tue, 22 Aug 2023 20:06:52 +0200
Wolfgang Schuster
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]
Thank you VERY much. You solved my problem Xavier
participants (2)
-
Wolfgang Schuster
-
Xavier B.