How to prevent a page break before a \startformula, and more
Hello. I many of my documents I use \startformula and \stopformula to get displayed mathematics. But I would like to be able to discourage ConTeXt to insert page breaks just before \startformula. Is there any easy way to do this? Also, how do I make \lim behave as \lim\nolimits in inner math (between $ and $) mode and as \lim\limits in displayed math mode (between \startformula and \stopformula)? I known that the following code works. \let\oldlim\lim \def\lim{\ifinner\oldlim\nolimits\else\oldlim\limits\fi} But is there some other way? Perhaps I can change something in \definemathcommand [lim] [limop] {\mfunction{lim}} ? -- Emil Hedevang Lohse http://home.imf.au.dk/emil/ Alle spørgsmål er lige dumme. Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
At 19:26 18/04/2003 +0200, you wrote:
Hello.
I many of my documents I use \startformula and \stopformula to get displayed mathematics. But I would like to be able to discourage ConTeXt to insert page breaks just before \startformula. Is there any easy way to do this?
maybe \page[no] helps Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
At 19:26 18/04/2003 +0200, you wrote:
Hello.
I many of my documents I use \startformula and \stopformula to get displayed mathematics. But I would like to be able to discourage ConTeXt to insert page breaks just before \startformula. Is there any easy way to do this?
maybe \page[no] helps
Yes, that helps, but is there a way I can discourage ConTeXt to insert page breaks before *every* \startformula? -- Emil Hedevang Lohse http://home.imf.au.dk/emil/ Alle spørgsmål er lige dumme. Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
At 15:46 19/04/2003 +0200, you wrote:
Hans Hagen
writes: At 19:26 18/04/2003 +0200, you wrote:
Hello.
I many of my documents I use \startformula and \stopformula to get displayed mathematics. But I would like to be able to discourage ConTeXt to insert page breaks just before \startformula. Is there any easy way to do this?
maybe \page[no] helps
Yes, that helps, but is there a way I can discourage ConTeXt to insert page breaks before *every* \startformula?
\setupformulas[before={\page[no]}] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
At 15:46 19/04/2003 +0200, you wrote:
Hans Hagen
writes: At 19:26 18/04/2003 +0200, you wrote:
Hello.
I many of my documents I use \startformula and \stopformula to get displayed mathematics. But I would like to be able to discourage ConTeXt to insert page breaks just before \startformula. Is there any easy way to do this?
maybe \page[no] helps
Yes, that helps, but is there a way I can discourage ConTeXt to insert page breaks before *every* \startformula?
\setupformulas[before={\page[no]}]
I cannot make it work unless I place the \page[no] explicitly; see the example below. \setupoutput[pdftex] \enableregime[il1] \setuppapersize[A4][A4] \setupbodyfont[cmr,10pt] \setupspacing[packed] \setupinterlinespace[medium] \setupindenting[medium] \indenting[yes] \setupspacing[packed] \setupformulas[before={\page[no]}] \starttext \showframe \dorecurse{60}{ mmmmmm mmmmmmmm mmmmmmmmmm} \input tufte \page[no] \startformula a=b \stopformula \input tufte \stoptext -- Emil Hedevang Lohse http://home.imf.au.dk/emil/ Alle spørgsmål er lige dumme. Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
Emil Hedevang Lohse
Hans Hagen
writes: At 15:46 19/04/2003 +0200, you wrote:
Hans Hagen
writes: At 19:26 18/04/2003 +0200, you wrote:
Hello.
I many of my documents I use \startformula and \stopformula to get displayed mathematics. But I would like to be able to discourage ConTeXt to insert page breaks just before \startformula. Is there any easy way to do this?
maybe \page[no] helps
Yes, that helps, but is there a way I can discourage ConTeXt to insert page breaks before *every* \startformula?
\setupformulas[before={\page[no]}]
I cannot make it work unless I place the \page[no] explicitly; see the example below.
When I type \setupformulas[before={AAAAAAAAAAA}] I would expect a lot of A's before every formula, but they do not appear in the pdf-file. My version of ConTeXt is 2003.3.11. -- Emil Hedevang Lohse http://home.imf.au.dk/emil/ Alle spørgsmål er lige dumme. Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
participants (2)
-
Emil Hedevang Lohse
-
Hans Hagen