[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Jim
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

[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Wolfgang Schuster
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

[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Jim
: 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-

[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Hans Hagen
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

[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Aditya Mahajan
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

[NTG-context] Re: prevent a kind of heading at the bottom of the page

2025-02-14 Thread Thomas Meyer
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")}}  

[NTG-context] Re: prevent a kind of heading at the bottom of the page

2025-02-13 Thread Wolfgang Schuster
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

[NTG-context] Re: How to force section title to be on same page as some of the content?

2024-11-03 Thread Henning Hraban Ramm
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

[NTG-context] Re: How to force section title to be on same page as some of the content?

2024-11-02 Thread Denis Maier via ntg-context
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

[NTG-context] Re: How to force section title to be on same page as some of the content?

2024-11-02 Thread Henning Hraban Ramm
, 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

[NTG-context] Re: Inserting text between end notes

2024-09-03 Thread Rik Kabel
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

[NTG-context] Re: Inserting text between end notes

2024-09-01 Thread Bruce Horrocks
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}} >

[NTG-context] Inserting text between end notes

2024-08-31 Thread Rik Kabel
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

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
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

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-14 Thread Ross Schulman
: > 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

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-14 Thread Wolfgang Schuster
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

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-08 Thread Ross Schulman
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

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-06 Thread Ross Schulman
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

[NTG-context] Re: Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
, 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

[NTG-context] Re: Hbox error with itemized list on second page

2024-04-30 Thread Wolfgang Schuster
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

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
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

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-29 Thread cryo shock via ntg-context
o arrange the "CustomBMarks"-list in multi-levels. > >%%% > >\page > >\startstandardmakeup > > \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure} > >\stopstandardmakeup > >%%% > >%%% So the following method

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-25 Thread Hans Hagen via ntg-context
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:

[NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-24 Thread cryo shock via ntg-context
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

Re: [NTG-context] Problems with itemize with several columns

2022-02-24 Thread fv leung via ntg-context
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

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Luis Montgomery via ntg-context
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

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
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,

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Bruce Horrocks via ntg-context
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={

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
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]},

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-15 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Aditya Mahajan via ntg-context
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

[NTG-context] setupalign[line]/setupalign[height] break \testpage

2021-05-06 Thread denis.maier
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

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread Hans Hagen
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

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread Duncan Hothersall
> 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

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread denis.maier
> > > > 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

Re: [NTG-context] arbitrary context commands in xml file

2021-03-05 Thread Hans Hagen
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.

Re: [NTG-context] arbitrary context commands in xml file

2021-03-05 Thread denis.maier
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 \

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
> 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

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
. 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

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
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

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Willi Egger
>>> 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

Re: [NTG-context] ntg-context Digest, Vol 193, Issue 65

2020-07-30 Thread Jan Hansen
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 > > >

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Wolfgang Schuster
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

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Taco Hoekwater
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

[NTG-context] About testing rest of space on a page

2020-07-29 Thread Willi Egger
][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

Re: [NTG-context] spacing before items

2020-06-17 Thread Hans Hagen
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

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan
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

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
(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: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster
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

Re: [NTG-context] List of language-specific hyphenation commands

2020-05-23 Thread Wolfgang Schuster
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%

Re: [NTG-context] preventing page break

2019-07-19 Thread Henning Hraban Ramm
... 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

[NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
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

Re: [NTG-context] spacing

2018-11-08 Thread Henri Menke
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 >>> >>>

Re: [NTG-context] spacing

2018-11-08 Thread Henning Hraban Ramm
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][

Re: [NTG-context] spacing

2018-11-08 Thread Wolfgang Schuster
=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

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread Alan Braslau
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][

[NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread dxpublica
,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

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
alia, TL18.     \setuptagging [state=start]     \setupexternalfigures [location=default]     \definelayout [testpage]     \definelayer  [testpage]     [width=\paperwidth,height=\paperheight]     \startsetups  [testpage]     \setlayerframed   [testpage]     [preset=rightbott

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
tate=start] \setupexternalfigures [location=default] \definelayout [testpage] \definelayer  [testpage] [width=\paperwidth,height=\paperheight] \startsetups  [testpage]     \setlayerframed   [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, backgr

[NTG-context] Bug with \setuptagging and layers

2018-06-09 Thread Rik Kabel
on=default] \definelayout [testpage] \definelayer  [testpage] [width=\paperwidth,height=\paperheight] \startsetups  [testpage]     \setlayerframed   [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, background=color,backgroundco

Re: [NTG-context] keeping together \subject and a table without a page break

2018-05-03 Thread Robert Zydenbos
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

Re: [NTG-context] keeping together \subject and a table without a page break

2018-05-03 Thread Hans Hagen
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

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Hans Hagen
. 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

Re: [NTG-context] avoiding space on top of a page

2018-02-11 Thread Wolfgang Schuster
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},

[NTG-context] avoiding space on top of a page

2018-02-11 Thread Henning Hraban Ramm
][ 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

Re: [NTG-context] Typesetting an interview

2018-02-11 Thread Henning Hraban Ramm
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

Re: [NTG-context] Fwd: Re: Stray blank page with part

2017-12-20 Thread Hans Hagen
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

Re: [NTG-context] Fwd: Re: Stray blank page with part

2017-12-20 Thread Aditya Mahajan
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

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
e footnote number font size here? > \stopsetups > > \definestartstop[myQuotation][ >setups=myQuotation, >before={ > \testpage[2] > \startnarrower[left,right] > \noindent}, >after={\stopnarrower > \indenting[next]}] > >

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
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

Re: [NTG-context] Colored rule using MPgraphic

2017-05-17 Thread Hans Hagen
,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

[NTG-context] Colored rule using MPgraphic

2017-05-17 Thread Jan Willem Flamma
\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

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Mikael P. Sundqvist
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

Re: [NTG-context] placetable with location=split produces error

2016-06-18 Thread Wolfgang Schuster
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

[NTG-context] placetable with location=split produces error

2016-06-16 Thread Christoph Reller
}\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

Re: [NTG-context] page breaks before titles

2015-03-07 Thread mf
> 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

Re: [NTG-context] page breaks before titles

2015-03-07 Thread Wolfgang Schuster
> --- > last two lines of the Title > the previous letter subtitle > ... > page 12 Title >subtitle > ... > > --

Re: [NTG-context] Conditional keep-with-next rules

2014-06-27 Thread Jan Tosovsky
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

[NTG-context] \starttextbackground and \startbackground equivalent options

2014-05-25 Thread Xan
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

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Henning Hraban Ramm
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,

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Thangalin
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

Re: [NTG-context] (Combined)lists, two questions

2014-02-14 Thread Robert Blackstone
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

Re: [NTG-context] Divider in grid environment

2014-02-13 Thread Jan Tosovsky
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

Re: [NTG-context] (Combined)lists, two questions

2014-02-10 Thread Wolfgang Schuster
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

Re: [NTG-context] Divider in grid environment

2014-02-08 Thread Jan Tosovsky
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

Re: [NTG-context] Testpage with extras

2014-02-01 Thread Hans Hagen
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

Re: [NTG-context] Testpage with extras

2014-02-01 Thread Keith J. Schultz
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

Re: [NTG-context] Testpage with extras

2014-01-31 Thread Hans 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 something like conditionalbreak or conditionalpagebreak

Re: [NTG-context] Testpage with extras

2014-01-31 Thread Keith J. Schultz
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

Re: [NTG-context] Testpage with extras

2014-01-30 Thread Hans Hagen
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

Re: [NTG-context] Testpage with extras

2014-01-30 Thread H. Özoguz
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

Re: [NTG-context] Testpage with extras

2014-01-30 Thread Hans Hagen
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

[NTG-context] Testpage with extras

2014-01-30 Thread H. Özoguz
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

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-03 Thread Wolfgang Schuster
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

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-03 Thread Hans Hagen
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

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-02 Thread Aditya Mahajan
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

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-02 Thread Jan Tosovsky
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

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-01 Thread H. Özoguz
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

Re: [NTG-context] Testpage vs. indentation

2013-10-29 Thread Mica Semrick
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   2   3   >