t; > of
>>> > section 2.11 is on that page). This is an example of what I don't want,
>>> > and anyone who feels the same way would consider this a (very minor) bug
>>> > report for the (otherwise most excellent) math manual.
>>> > Q: is there
d by the argument to the macro?
\testpage[3] % lines or some dimension
It's typically something you only do when the document is final.
Hans,
thanks for the almost-as-fast-as-Aditya reply.
I am a bit puzzled by your "It's typically..." comment, for two reasons.
(1) When the do
: is there a ConTeXt macro which does a \page if there is less space on
>> the current page than specified by the argument to the macro?
> \testpage[3] % lines or some dimension
> It's typically something you only do when the document is final.
Hans,
thanks for the almost-as-fast-
oes The Right Thing in ConTeXt as for
plain TeX.
Q: is there a ConTeXt macro which does a \page if there is less space on
the current page than specified by the argument to the macro?
\testpage[3] % lines or some dimension
It's typically something you only d
t with converting that macro for ConTeXt,
> but I'm not as confident that it Does The Right Thing in ConTeXt as for
> plain TeX.
>
> Q: is there a ConTeXt macro which does a \page if there is less space on
>the current page than specified by the argument to the macro?
\tes
n{\bf\ss\ctxlua{userdata.Ddate("#1")}}\\
}
You can use \testpage to force a page break when not enough space is
available for the following content.
\starttexdefinition protected DDate #1
\blank
\testpage[3]
\noindentation\style[sansbold]{\ctxlua{userdata.Ddate("#1")}}
nth = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day,
{. },month,space,year"})
end
\stopluacode
\def\DDate#1{\blank\noindentation{\bf\ss\ctxlua{userdata.Ddate("#1")}}\\ }
You can use \testpage to for
Am 03.11.24 um 07:53 schrieb Denis Maier via ntg-context:
Should that be be before={\testpage[5]} instead of after=?
before, sorry
Hraban
___
If your question is of interest to others as well, please add an entry
Should that be be before={\testpage[5]} instead of after=?
Henning Hraban Ramm <te...@fiee.net> hat am 02.11.2024 23:58 CET geschrieben:
Am 02.11.24 um 21:11 schrieb Joel via ntg-context:
H
, use \testpage[], as in
\setuphead[…][after={\testpage[5]}] to insert a page break if there are
less than ~4 lines left on the page (you always need a bigger number
than you think).
Hraban
___
If your question is of int
ng or bookmarking).
I can hack the first requirement with:
\define[1]\EndNoteChapter{\testpage[3]
\blank
\midaligned{\tfa{Chapter #1}}
\blank}
in the environment and
\EndNoteChapter{6 How I Saved the World}
at the end of the las
ers
> (and should not, at least in my use case, require cross-referencing or
> bookmarking).
> I can hack the first requirement with:
> \define[1]\EndNoteChapter{\testpage[3]
> \blank
> \midaligned{\tfa{Chapter #1}}
>
first requirement with:
\define[1]\EndNoteChapter{\testpage[3]
\blank
\midaligned{\tfa{Chapter #1}}
\blank}
in the environment and
\EndNoteChapter{6 How I Saved the World}
at the end of the last end note i
he margin and the decision to make the break after block 10
happened afterwards.
You can control page breaks to a certain degree with the \testpage
command between paragraphs.
\starttext
\dorecurse{100}
{\testpage[3]
\bold{#1:} \samplefile{ward}%
\startmarginblock Note #1\stopma
:
> Ross Schulman schrieb am 07.05.2024 um 01:33:
>> So, unfortunately while using `\testpage` helped in the version of the
>> resume I was working on at the time, I've encountered the error again now
>> that some different content is making the page break at a differ
Ross Schulman schrieb am 07.05.2024 um 01:33:
So, unfortunately while using `\testpage` helped in the version of the
resume I was working on at the time, I've encountered the error again
now that some different content is making the page break at a
different point, and setting `\testpag
Hi everyone. Just raising this question again. Is anyone able to help me figure
out why this is happening and how I can fix it more permanently? Thank you all
very much!
Ross
On Mon, May 6, 2024, at 7:33 PM, Ross Schulman wrote:
> So, unfortunately while using `\testpage` helped in the vers
So, unfortunately while using `\testpage` helped in the version of the resume I
was working on at the time, I've encountered the error again now that some
different content is making the page break at a different point, and setting
`\testpage` as high as 6 is not fixing the problem. Is
, n=10, inbetween=\space] \par
> >\item \ipsum[alternative=words, n=10, inbetween=\space] \par
> >\item \ipsum[alternative=words, n=10, inbetween=\space] \par
> > \stopitemize
>
> You can use the \testpage command to force a page break before the TeX
> mechanism t
psum[alternative=words, n=10, inbetween=\space] \par
\item \ipsum[alternative=words, n=10, inbetween=\space] \par
\stopitemize
You can use the \testpage command to force a page break before the TeX
mechanism to start a new page kicks in.
\startitemize[inbetween={\testpage[2]\blank}]
\item
On 7/10/2023 10:43 AM, denis.ma...@unibe.ch wrote:
Page puilder mode sounds interesting! What are you plans for that?
Things like:
- overflow area
- vertical expansion
- more detailed tracing
- more accurate \testpage
- initial and as-we-go stretch/shrink manipulation
Most is already there
e the 170-page
> document and find a way to upload it.
\testpage[...] might help.
<https://wiki.contextgarden.net/Command/testpage>
—
Bruce Horrocks
Hampshire, UK
___
If your question is of interest to
o arrange the "CustomBMarks"-list in multi-levels.
> >%%%
> >\page
> >\startstandardmakeup
> > \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure}
> >\stopstandardmakeup
> >%%%
> >%%% So the following method
is the unwanted
one.
%%%
\startInvisiSection[title={External Testpage A}]
\startstandardmakeup
\filterpages[{test.pdf}][1]
\stopstandardmakeup
\stopInvisiSection
\stopcomponent
because even a hidden head is something (anchor on page), you can try this:
res, CTX places a blank
%%% page before every figure...
%%% Note: you don't need a dummy file. The last (unnumbered) page is
%%% the wanted external PDF. The numbered page before is the unwanted one.
%%%
\startInvisiSection[title={External Testpage A}]
\startstandardmakeup
\f
Avoid using \startformula \stopformula in itemize. Use \dfrac to get
display style fraction.
\defineenumeration
[exercici]
[alternative=serried, before={\blank[medium]\testpage[1]},
text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss,
distance=0.25em, width=fit, headcolor
Could you define this in the preamble
%\unprotect
\defineitemgroup [Ex]
\setupitemgroup [Ex] [each]
[before={\blank[medium]\testpage[1]},after={\blank[big]},option={a,
columns,three,fit}]
%\protect
\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startEx
%\startitemize
know the reason, but the attached code des not display very well in mailing
> > list. I put it here:
> >
> > \defineenumeration
> > [exercici]
> > [alternative=serried, before={\blank[medium]\testpage[1]},
> > text={Exercici}, stopper={.\space}, width=fit,
e:
>
> \defineenumeration
> [exercici]
> [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici},
> stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit,
> headcolor=exercici_color, title=yes, titlestyle=\ss, titledistance=0em,
> left={
In my previous post
[https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know
the reason, but the attached code des not display very well in mailing list. I
put it here:
\defineenumeration
[exercici]
[alternative=serried, before={\blank[medium]\testpage[1]},
t; broken across a column
> > ```
> >
> > This does successfully prevent the placement of the symbol at the top of
> a
> > page/column, but it doesn't encourage the placement of the symbol at the
> > end of a page/column as oft
across a column
> ```
>
> This does successfully prevent the placement of the symbol at the top of a
> page/column, but it doesn't encourage the placement of the symbol at the
> end of a page/column as often as I would like.
Depending on what you want, you can try adding \te
ction=cmd]
So, I thought \testpage or \checkpage here could be a solution. However, the
vertical stretching algorithm seems to interfere with \testpage in some way as
the example below tries to illustrate. Can anyone confirm this? Is this a bug
or am I missing some
nds in xml file
[...]
> >
> > Here, I was thinking if something like this could be easier:
> >
> >
> you can also do this:
>
>
>
> \startxmlsetups xml:testpage
> \testpage[\xmlatt{#1}{n}]
&g
> Betreff: Re: [NTG-context] arbitrary context commands in xml file
>
>
> [...]
>
> > >
> > > Here, I was thinking if something like this could be easier:
> > >
> > >
> > you can also do this:
> >
> >
> >
> > \star
> >
> > Here, I was thinking if something like this could be easier:
> >
> >
> you can also do this:
>
>
>
> \startxmlsetups xml:testpage
>\testpage[\xmlatt{#1}{n}]
> \stopxmlsetup
>
> and register that one (as in previous examples)
Th
es=+1]
\testpage[3]
\looseness=-1 / \looseness=+1
\blank
\setuptolerance
etc.
Now, of course you can define an injector for these commands, some are
predefined, like page, column, blank.
But, if my understanding is correct, you'd have to define one for each of the
possible parameters.
Just to provide more information about what I was thinking:
You do your typesetting based on an XML doc. Now it is time for the finishing
touches. In a tex document you'd add the usual commands to manipulate the
layout:
\adaptlayout[lines=+1]
\testpage[3]
\looseness=-1 / \looseness=+1
\
> Another method is to move the section title to the next page when the
> remaining spaces
> is below a specified number of lines. The following setup forces a page
> break when
> less than 4 lines remain on the current page.
>
> \setuphead
>[section]
>[before={\testpa
.
Another method is to move the section title to the next page when the
remaining spaces
is below a specified number of lines. The following setup forces a page
break when
less than 4 lines remain on the current page.
\setuphead
[section]
[before={\testpage[4]\blank[2*big]}]
Wolfgang
Just about to have these homework files finished!
My final problem (I hope) is keeping question/answer blocks together.
The questions are currently defined via \defineenumeration with a \testpage
(see below). I fiddled with the \testpage and found that \testpage[6] gave me
the best results
>>> I use then instead of \stopsection the \stopmysection. This works except
>>> that the ornament is in some cases placed on the next page. — My question
>>> is whether it is possible to do a \testpage and evaluate the result hereof
>>> and then using eith
I'm on a linux64 machine, and there is indeed a mtx-fonts.lua file:
>>
>> ~/context/tex/texmf-context/scripts/context/lua/mtx-fonts.lua
>>
>> Am I missing something?
>
> Refresh the database:
>
> luatools --generate
>
> Aditya
>
>
>
placed on the next page. — My question is whether
it is possible to do a \testpage and evaluate the result hereof and then using
either the placement of the ornament and stop the section or just end the
section without ornament?
You can put your setups *inside* the test:
\definepagechecker
works except that
> the ornament is in some cases placed on the next page. — My question is
> whether it is possible to do a \testpage and evaluate the result hereof and
> then using either the placement of the ornament and stop the section or just
> end the section without orn
][height=2\lineheight]}
\stopsection
\stopsetups
\def\stopmysection{\setups{endsection}}
I use then instead of \stopsection the \stopmysection. This works except that
the ornament is in some cases placed on the next page. — My question is whether
it is possible to do a \testpage and evaluate the
lity,
etc.
\defineenumeration
[question]
[text=,
alternative=serried,
distance=1em,
width=fit,
before={\testpage[4]\blank[3*big]},
after={\blank}]
\starttext
\dorecurse{10}{
\startquestion
\input ward
\stopquestion
\startitemize[packed,a]
\startitem \input ward
simply think
that it is misbehaving there).
In your example you can add \testpage to \section to force a page break
when there isn't enough space available to place the heading, this moves
also the layer placement to the next page.
I’m afraid this doesn’t work with my real document.
I
(or I simply think
that it is misbehaving there).
> In your example you can add \testpage to \section to force a page break
> when there isn't enough space available to place the heading, this moves
> also the layer placement to the next page.
I’m afraid this doesn’t work with my real doc
re it should
be placed on the second page.
This sample shows thie problem in a simpler way:
\definelayer[whatever]
[x=3em, y=3em]
\setupbackgrounds[page][background=whatever]
\setuphead
[section]
[before={\testpage[2]\blank[2*big]}]
\starttext
\dorecurse{18}{\section{Se
s_set_current") then
context.tex(language)
end
end
\stopluacode
\def\doShowLanguage#1%
{\doifnotinstring{-}{#1}
{\ctxlua{userdata.checklanguage("#1","\luaescapestring{\expandafter\meaning\csname#1\endcsname}")}}%
\par}
\def\ShowLanguage#1%
...
One two three for ...
One two three for ...
%- from here page breaks allowed
You can use \testpage{#} to tell ConTeXt there should be at least #
lines following; I often use this with \setuphead.
Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https
LH][legal,landscape][legal,landscape]
\setuppapersize[LH]
%
\setuplayout
[backspace=0.8cm,
topspace=1.6cm,
bottomspace=0cm,
leftmargin=0cm,
rightmargin=0cm,
bottomspace=0cm,
header=0cm,
footer=0.5cm,
% paperwidth=34.7cm
% width=33.9cm,
% height=39.2cm
]
\usetypescript[heros]
\s
t;>> differently WRT spacing, not only with \framed, but also with heads -
>>> everywhere there’s more space induced than before.
>>> The attached screenshot shows an example of before and after.
>>>
>>> The headings are set up like
>>>
>>>
gt; differently WRT spacing, not only with \framed, but also with heads -
>> everywhere there’s more space induced than before.
>> The attached screenshot shows an example of before and after.
>>
>> The headings are set up like
>>
>> \setuphead[section,subject][
=no,
before={\testpage[7]\blank},after=,
previousnumber=no, sectionsegments=section]
\setuphead[subsection,subsubject][style={\bf},
before={\testpage[7]\blank[small]},after=,
sectionsegments=section:subsection]
"1 Aufnahme" is a section, "1.1" is a
mail-archive.com/ntg-context%40ntg.nl/msg78014.html
> %width=broad,
> %corner=round,
> %radius=5ex,
> leftoffset=10pt,rightoffset=10pt,
> topoffset=10pt,bottomoffset=10pt
> %offset=-5pt
> ]
>
> \definestartstop[teoria][
,bottomoffset=10pt
%offset=-5pt
]
\definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}]
\starttext
\startteoria
\input tufte
\placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes
alia, TL18.
\setuptagging [state=start]
\setupexternalfigures [location=default]
\definelayout [testpage]
\definelayer [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups [testpage]
\setlayerframed [testpage]
[preset=rightbott
tate=start]
\setupexternalfigures [location=default]
\definelayout [testpage]
\definelayer [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups [testpage]
\setlayerframed [testpage]
[preset=rightbottom,hoffset=.25in,voffset=.25in,
backgr
on=default]
\definelayout [testpage]
\definelayer [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups [testpage]
\setlayerframed [testpage]
[preset=rightbottom,hoffset=.25in,voffset=.25in,
background=color,backgroundco
YES! Thank you!
> On 3. May 2018, at 13:07, Hans Hagen wrote:
>
> On 5/3/2018 12:22 PM, Robert Zydenbos wrote:
>> I am looking for a way to keep a subject header and a following table
>> together on one page, without a page break. Something like:
>> […]
> you c
not seem to work
(at least not in MkII), because the parameter 'samepage' is not recognized.
I would be very grateful for suggestions.
you can put \testpage[4] before the \subsubject (number of line
.
i don't know your logic but say that you have a dropped thingie that is
5 lines high then you can check for available room
\setbox\scratchbox\hbox{...}
\getnoflines{\htdp\scratchbox}
\testpage[\noflines]
then you're for sure on the next page in which case your prevgraf is
what
right combination of \blank options...
\setuplayout[grid=yes]
\setuphead[section][
page=no,
style={\bf},
before={\testpage[4]\startlinecorrection\blank[medium,back]},
after={\blank[small,max]\stoplinecorrection},
]
\setuphead
[...]
[before={\testpage[5]\blank[...]\startlinecorrection},
][
page=no,
style={\bf},
before={\testpage[4]\startlinecorrection\blank[medium,back]},
after={\blank[small,max]\stoplinecorrection},
]
(Please find working example attached.)
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
sectiontest.tex
I’d loved to use some clean code, but since I didn’t manage on my own, I
resolved to this somewhat ugly setup:
\def\doStartInt[#1]{\testpage[2]%
\noindent\emph{#1}\par\gobblespacetokens%
\startnarrower[left]\noindent\gobblespacetokens}
\def\startInt{\dosingleempty\doStartInt}
\def\stopInt
On 12/20/2017 6:44 PM, Aditya Mahajan wrote:
On Wed, 20 Dec 2017, Hans Hagen wrote:
% solution 1:
\setuphead
[part]
[page=no,
placehead=hidden]
\setuptexttexts
[\synchronizehead{part}]
I recently had a problem where \testpage was misbehaving while
\testpagesyncronized worked
On Wed, 20 Dec 2017, Hans Hagen wrote:
% solution 1:
\setuphead
[part]
[page=no,
placehead=hidden]
\setuptexttexts
[\synchronizehead{part}]
I recently had a problem where \testpage was misbehaving while
\testpagesyncronized worked correctly. The example above is another
e footnote number font size here?
> \stopsetups
>
> \definestartstop[myQuotation][
>setups=myQuotation,
>before={
> \testpage[2]
> \startnarrower[left,right]
> \noindent},
>after={\stopnarrower
> \indenting[next]}]
>
>
size here?
\stopsetups
\definestartstop[myQuotation][
setups=myQuotation,
before={
\testpage[2]
\startnarrower[left,right]
\noindent},
after={\stopnarrower
\indenting[next]}]
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID
,bottomoffset=1em,
before={\testpage[3]\blank[3*big]},
after={\blank[3*big]}]
\startuseMPgraphic{background:rule}
linecap := butt;
begingroup;
for i=1 upto nofmultipars :
draw (ulcorner multipars[i]--llcorner multipars[i])
withcolor \MPvar{linecolor
\definetextbackground
[Example]
[mp=background:rule,location=paragraph,
rulethickness=3pt,framecolor=red,
leftoffset=1em,rightoffset=1em,
toptoffset=1em,bottomoffset=1em,
before={\testpage[3]\blank[3*big]},
after={\blank[3*big]}]
\startuseMPgraphic{background:rule}
linecap
color=contrastcolor,
style=,
alternative=serried,
width=fit,
number=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
indentnext=no,
indenting=yes,
before={\testpage[2]\blank[big]},
after={\blank[big,samepage]},
]
\starttext
\section{A section with questions}
\startquestion[Q:test]{This is a title}
This
Christoph Reller <mailto:christoph.rel...@gmail.com>
16. Juni 2016 um 15:31
On Fri, 10 Jun 2016 14:00:01, Christoph Reller
This must have something to do with page breaking in conjunction with
table splitting. The following MWE produces no error:
\starttext
\dorecurse{9}{\input ward}
\te
}\ifdim \wd
>> \b_strc_floats...
>> ...
>
> I have some additional information:
>
This must have something to do with page breaking in conjunction with
table splitting. The following MWE produces no error:
\starttext
\dore
> You can use the \testpage command where you can set how many
> lines should remain on the page before a page breaks happens.
>
> \setuphead[LetterTitle][before={\testpage[8]\blank[2*line]}]
>
> If this doesn’t help you should make a *working* minimal example.
>
> W
> ---
> last two lines of the Title
> the previous letter subtitle
> ...
> page 12 Title
>subtitle
> ...
>
> --
nge.com/questions/185059/preventing-page-break-after-th
e-first-or-before-the-last-list-item
That solution with \pagecheck looks promising, but it has to be implemented
on ConTeXt/Lua side. It requires adding 'checking' commands to proper
places.
Only ConTeXt knows the item tree, it can cou
Hi folks,
Just a question:
I have this textbackground environment:
\definestartstop
[teoria]
[ before={\startbackground[background=color, backgroundcolor=mteoria,
frame=on, width=broad, after={\bigskip}, before={\blank[big]\testpage[2]},
backgroundcorner=round, backgroundradius=5ex
Am 2014-03-11 um 03:11 schrieb Thangalin :
> Try using \testpage[3]. The 3 will have to vary depending on the
> number of lines that the section titles can possibly take up. For
> example, if the section title takes up 4 lines, then you might want to
> use \testpage[5].
Thank you,
Hi,
Try using \testpage[3]. The 3 will have to vary depending on the
number of lines that the section titles can possibly take up. For
example, if the section title takes up 4 lines, then you might want to
use \testpage[5].
\usemodule[visual] % fakewords
\definepapersize[a6][width=105mm,height
t;
>
> Am 10.02.2014 um 19:41 schrieb Robert Blackstone
> :
>> 1 How can one force a page break after some section. In my present setup I
>> have a Chapter 4, sitting lonely at the bottom of the first page of the ToC,
>> What can be done about it?
>
> You can use
On 2014-02-08 Jan Tosovsky wrote:
> On 2014-02-08 Jan Tosovsky wrote:
>
> Additionally, I'd like to keep that divider with the previous content
> (paragraph).
>
> In this case AFAIK \testpage[n] cannot be used directly in the divider
> definition as it breaks the page a
rst page of the ToC,
> with its sections on the next page. I have tried \completecontent[3.7], as
> described on p. 53 of "ConTeXt an excursion", but that does not work for me
> (I'm on mkiv).
> What can be done about it?
You can use \testpage to make sure chapt
his solution requires adjustments for different fonts or font
> sizes...
>
> Is there a more efficient way how to accomplish this?
Additionally, I'd like to keep that divider with the previous content
(paragraph).
In this case AFAIK \testpage[n] cannot be used directly in the divider
defini
On 2/1/2014 10:15 AM, Keith J. Schultz wrote:
Hi Hans,
how about the \ifleftonpage, or something like that?
\if
is reserved for 'real' ifs
-
Hans Hagen | PRAGMA ADE
Rid
Hagen :
> On 1/31/2014 10:46 AM, Keith J. Schultz wrote:
>
>> Personally, I find the names used sub-optimal!
>
> we had testpage and that one stays anyway and checkpage is close to that
> (overloading testpage with a new syntax is messy)
>
>> I would think some
On 1/31/2014 10:46 AM, Keith J. Schultz wrote:
Personally, I find the names used sub-optimal!
we had testpage and that one stays anyway and checkpage is close to that
(overloading testpage with a new syntax is messy)
I would think something like conditionalbreak or conditionalpagebreak
added layer on top
of testpage!
At least the test is if X lines left on page or still fit on page!
I also have a question. Are the commands setuppagechecker sothat
\definepagechecker[whatever]
\setuppagechecker[whatever]
[lines=35,
voffset=10pt,
before={\vfill\wordright{(see next page)}\par
On 1/30/2014 12:34 PM, "H. Özoguz" wrote:
use case needed
Here two cases to compare:
1.
\setupindenting[yes, 9pt, first]
\starttext
\noindentation\input knuth\\
\input knuth\blank \noindentation
\input knuth
\testpage[35]\noindentation\input knuth
\stoptext
2.
\setupindentin
use case needed
Here two cases to compare:
1.
\setupindenting[yes, 9pt, first]
\starttext
\noindentation\input knuth\\
\input knuth\blank \noindentation
\input knuth
\testpage[35]\noindentation\input knuth
\stoptext
2.
\setupindenting[yes, 9pt, first]
\starttext
\noindentation\input knuth
On 1/30/2014 10:37 AM, "H. Özoguz" wrote:
Hi there,
I asked a similar question before, but I try it again (in a bit
different way):
The command \testpage[n] Paragraph sets the next paragraph on the next
page, if there are less than n lines left on the current page. I use
this co
Hi there,
I asked a similar question before, but I try it again (in a bit
different way):
The command \testpage[n] Paragraph sets the next paragraph on the next
page, if there are less than n lines left on the current page. I use
this command very often, but need it with some extension: If
t; additional
>>>> penalty settings. Whereas it works fine for body text, section titles
>> are
>>>> still sometimes left at the bottom of the page.
>>>
>>> this is not the same question as handling orphan and widows - because
>>> you sure
eft at the bottom of the page.
this is not the same question as handling orphan and widows - because
you surely do not want some titles with only 2-3 lines of body text
after them.
I always use "\testpage[x]" to handle those issues, see your example
with testpage:
\setuphead[section][before
On Mon, 2 Dec 2013, Jan Tosovsky wrote:
\setuphead[section][before={\testpage[8]\blank}]
Thanks, it works! Another magic command not documented anywhere in the
ConTeXt Guide or Wiki...
In that case, please add it to the wiki.
Aditya
bottom of the page.
>
> this is not the same question as handling orphan and widows - because
> you surely do not want some titles with only 2-3 lines of body text
> after them.
>
> I always use "\testpage[x]" to handle those issues, see your example
> with testpag
Hello,
this is not the same question as handling orphan and widows - because
you surely do not want some titles with only 2-3 lines of body text
after them.
I always use "\testpage[x]" to handle those issues, see your example
with testpage:
\setuppapersize[B5]
\starts
AM, "H. Özoguz" wrote:
> Hello together,
>
> normally I want intendation for new paragraphs, but not, if the paragraph
> is set on the next page by \testpage.
> See this minexample:
>
> \setupindenting[yes, 9pt,first]
> \starttext
> \input knuth
> \testpa
1 - 100 of 208 matches
Mail list logo