Hello, I often have problems with page breaks in ConTeXt (section titles are often placed at the bottom of the page, but changing anything there might lead to strange side-effects), but perhaps this specific problem is solvable somehow: \setuphead [section] [page=yes] \setuphead [subsection] [page=yes] \starttext \section{a} \input tufte % I would expect a page break here without having to say \page \subsection{b} \input tufte \stoptext Thanks a lot, Mojca
On Jan 6, 2008 10:50 PM, Mojca Miklavec wrote:
Hello,
I often have problems with page breaks in ConTeXt (section titles are often placed at the bottom of the page, but changing anything there might lead to strange side-effects), but perhaps this specific problem is solvable somehow:
\setuphead [section] [page=yes] \setuphead [subsection] [page=yes]
\starttext
\section{a} \input tufte
% I would expect a page break here without having to say \page \subsection{b} \input tufte
\stoptext
Hmmm ... Hans, you have answered two of my questions in the same sentence :) I have solved this by using before=\page instead of page=yes Thanks again for the magic answers :), Mojca
Mojca Miklavec wrote:
On Jan 6, 2008 10:50 PM, Mojca Miklavec wrote:
Hello,
I often have problems with page breaks in ConTeXt (section titles are often placed at the bottom of the page, but changing anything there might lead to strange side-effects), but perhaps this specific problem is solvable somehow:
\setuphead [section] [page=yes] \setuphead [subsection] [page=yes]
\starttext
\section{a} \input tufte
% I would expect a page break here without having to say \page \subsection{b} \input tufte
\stoptext
Hmmm ... Hans, you have answered two of my questions in the same sentence :)
I have solved this by using before=\page instead of page=yes
continue=yes|no quite old feature -) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Jan 6, 2008 10:50 PM, Mojca Miklavec
Hello,
I often have problems with page breaks in ConTeXt (section titles are often placed at the bottom of the page, but changing anything there might lead to strange side-effects), but perhaps this specific problem is solvable somehow:
\setuphead [section] [page=yes] \setuphead [subsection] [page=yes]
\starttext
\section{a} \input tufte
% I would expect a page break here without having to say \page \subsection{b} \input tufte
\stoptext
This is a feature in ConTeXt but you could disable it, \setuphead[section,subsection][page=yes,continue=no] Wolfgang
Dear list members, I want to suppress page numbers on empty left pages before a new chapter. I tried: \setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}] This works, but messes up the layout. I then tried to do it manually: \page[empty] or \page\noheaderandfooterlines at the appropriate places, but this also completely changes page breaking in the following chapters (e.g. text running down over and beyond the pagenumber at the bottom with \page[empty], or just breaking a page at a different position, which would force me to reposition all the margin figures etc.. Is there a trick to avoid this behaviour? Thanks for your help, Jörg
On Jan 30, 2008 3:39 PM, Jörg Hagmann
Dear list members,
I want to suppress page numbers on empty left pages before a new chapter. I tried:
\setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]
This works, but messes up the layout.
I then tried to do it manually:
\page[empty] or \page\noheaderandfooterlines
at the appropriate places, but this also completely changes page breaking in the following chapters (e.g. text running down over and beyond the pagenumber at the bottom with \page[empty], or just breaking a page at a different position, which would force me to reposition all the margin figures etc..
Is there a trick to avoid this behaviour? Thanks for your help,
\definepagebreak[chapter][yes,header,right] \setuphead[chapter][page=chapter] Wolfgang
Thank you Wolfgang! It works (of course). The book will be published in March (by Orell Füssli and UTB) and will make use of several solutions I owe to you. Cheers, Jörg Wolfgang Schuster wrote:
On Jan 30, 2008 3:39 PM, Jörg Hagmann
wrote: Dear list members,
I want to suppress page numbers on empty left pages before a new chapter. I tried:
\setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]
This works, but messes up the layout.
I then tried to do it manually:
\page[empty] or \page\noheaderandfooterlines
at the appropriate places, but this also completely changes page breaking in the following chapters (e.g. text running down over and beyond the pagenumber at the bottom with \page[empty], or just breaking a page at a different position, which would force me to reposition all the margin figures etc..
Is there a trick to avoid this behaviour? Thanks for your help,
\definepagebreak[chapter][yes,header,right] \setuphead[chapter][page=chapter]
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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Prof.Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics Centre of Biomedicine, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565
participants (4)
-
Hans Hagen
-
Jörg Hagmann
-
Mojca Miklavec
-
Wolfgang Schuster