Page break between \title and \itemize
Hello, I used the following setup for title: \setuphead[title][style=\bfb,align=middle,after=\blank] Then, in the middle of the source code, I used: \title{A title} % Unwanted page break here! \startitemize \item ... \item ... \item ... \stopitemize But it happened that the title was placed to the bottom of a page and the item list appeared on the new page. When I removed "after=\blank" from the setup, the title and the item list got back to one page. So - the question: - Is there a parameter for \blank which would prohibit page break at the place of use? To affect the space after a head but to keep binding with the next element? BTW: There is an option "\blank[samepage]" but with a note "mkiv only?". So how - if - is this supposed to work with MKIV? Kind regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
On Wed, 30 Mar 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
I used the following setup for title:
\setuphead[title][style=\bfb,align=middle,after=\blank]
Then, in the middle of the source code, I used:
\title{A title}
% Unwanted page break here!
Add: into to \startitemize
\startitemize[intro] \item ... \item ... \item ... \stopitemize
Or you can use \setupitemize[autointro] Aditya
Perfect, thanks! If anyone is interested, there is a sample attached which demonstrates the problem and the solution by "autointro". Lukas
Add: into to \startitemize
\startitemize[intro] \item ... \item ... \item ... \stopitemize
Or you can use \setupitemize[autointro]
Aditya
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
BTW, is there a difference between \startitemize[intro] and \startitemize[autointro]? - I tried both and both do the desired effect. - "autointro" was your suggestion for \setupitemize whilst "intro" was option for \startitemize... Kind regards, Lukas
\startitemize[intro] \item ... \item ... \item ... \stopitemize
Or you can use \setupitemize[autointro]
Aditya
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 31.03.2011 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
BTW, is there a difference between \startitemize[intro] and \startitemize[autointro]?
Yes, “autointro” prevents a page break only when the last paragraph has only one or two lines while “intro” always prevents a page break. \showgrid \starttext % paragraph with 2 lines + autointro \dorecurse{38}{\crlf} \dorecurse{30}{text } \startitemize[autointro] \item item \stopitemize % paragraph with 2 lines + intro \page \dorecurse{38}{\crlf} \dorecurse{30}{text } \startitemize[intro] \item item \stopitemize % paragraph with 3 lines + autointro \page \dorecurse{38}{\crlf} \dorecurse{40}{text } \startitemize[autointro] \item item \stopitemize % paragraph with 3 lines + intro \page \dorecurse{38}{\crlf} \dorecurse{40}{text } \startitemize[intro] \item item \stopitemize \stoptext Wolfgang
participants (3)
-
Aditya Mahajan
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster