Martin Becker wrote: > Dear all, > > I'm having a problem with unwanted page breaks using ConTeXt. > > Imagine a note environment that is separated from normal text > by horizontal rules: > > -------------------------- > Note - Notice that this text is embedded in... > -------------------------- > > The problem however is that ConTeXt sometimes breaks the page after > the first rule or just before the second, which, as you can image, > is pretty ugly. > > I have defined a command to avoid this: > \def\MyHR{nobreak\hairline\nobreak } > > The tex file looks like this: > \MyHR{} {\bf{Note --}} Notice that this text is embedded in... \MyHR{} > > However, this does not work. The background is that I am using a parser > to translate MediaWiki markup to PDF using ConTeXt. > > normally nobreak should work ok so something is interfering
Hans -- ----------------------------------------------------------------- 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 ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context