* Avoiding page breaks in self-defined Note environment
@ 2006-11-14 15:54 Martin Becker
2006-11-14 16:58 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Martin Becker @ 2006-11-14 15:54 UTC (permalink / raw)
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.
Any help would be appreciated.
Thanks in advance.
Martin Becker
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Avoiding page breaks in self-defined Note environment
2006-11-14 15:54 Avoiding page breaks in self-defined Note environment Martin Becker
@ 2006-11-14 16:58 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-11-14 16:58 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-14 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-14 15:54 Avoiding page breaks in self-defined Note environment Martin Becker
2006-11-14 16:58 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).