From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95188 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Orphans and widows for specific paragraph groups Date: Fri, 17 Jun 2016 16:03:43 +0200 Message-ID: <5764033F.3010406@gmail.com> References: <20160609201811.GM39769@lahore> <20160617122249.GD34324@lahore> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4692540564737377229==" X-Trace: ger.gmane.org 1466172284 13450 80.91.229.3 (17 Jun 2016 14:04:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 14:04:44 +0000 (UTC) To: Pavneet Arora , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 17 16:04:30 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bDuNp-00044v-Mx for gctc-ntg-context-518@m.gmane.org; Fri, 17 Jun 2016 16:04:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 395CBF7D4; Fri, 17 Jun 2016 16:04:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cw4iihgYoO7g; Fri, 17 Jun 2016 16:03:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 43100F7D9; Fri, 17 Jun 2016 16:03:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C3BDCF7D4 for ; Fri, 17 Jun 2016 16:03:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AY5J6EkFcavA for ; Fri, 17 Jun 2016 16:03:57 +0200 (CEST) Original-Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 46370F7D6 for ; Fri, 17 Jun 2016 16:03:47 +0200 (CEST) Original-Received: by mail-wm0-f65.google.com with SMTP id 187so57024wmz.1 for ; Fri, 17 Jun 2016 07:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=BYqAVGnfQTw9pWAuI78dhoj8f8Dr7I3OBNp8FGSAeGM=; b=RxpNIaWIZee/9/HEHWJ39FNt//dgVuQ3V3epzA25ARW8kPDcFfsZeu1xOHHl6g0GEt vGk0euVbR16/GBOXjQQtyCWyjcFW06l0AsxRE3nZi4h0w86adTDlbmOf/sA30RqRroUl Ti20aV3M+Ht53q635YPBU2O2ZOJwFVTAR+S/MhBGUP6ytJOueJAlwguv77V0asckal6I kbCgv48ALPxKeIgQaPB+GVDkjWkrk8Y7gJUWh8qUPOVNQe1h/WVB78JKXLwXVWk4rjlI jIc+C0uBJjf7IYuNRRmYP/Ask/0PkEN4eTViOis9Fd+Kxnh2qvYwVixqJpoJa0jgYZUS 8Eqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=BYqAVGnfQTw9pWAuI78dhoj8f8Dr7I3OBNp8FGSAeGM=; b=jOdLsxr2wJjSIx6uvFG+ELU7l+tt7gEKQ6NMAYVuK+j6SAPzQNVYAzNz+iTAihK8Bd yeAoO2suSynY3OB60+4AufzT5N3eBDnsJ7jYJATyNOSgTbOzQy9tKecV1Fagqi0qV2ru TjgSJzWbcNwv/A4cmS2ox/y4mOHBjhvEXsAAjee0Dsc+iL3lgDWzdXu3KUiip3AZEVDj ZeCVQSWPORs6oWVFPkW49/TLs1NF6ao6VcuYkfGD4klBg5flSMRpzgpBu/vJmVHTPIrg ++qN3fjN20uCkIu7qj4Zjz5ZDjjO82w8KmcNCT+1lOj3A6f6yRdZLsA/EyL99mbmP9VG SQhQ== X-Gm-Message-State: ALyK8tLZ3SoMoyTnbKtFL0RSNxYRt1UhgMa/rCbRpk7oz5X1yoKcLMwBIOR/1xDEYyUWZw== X-Received: by 10.28.166.150 with SMTP id p144mr2358685wme.57.1466172226879; Fri, 17 Jun 2016 07:03:46 -0700 (PDT) Original-Received: from keima.localdomain (x2f2d745.dyn.telefonica.de. [2.242.215.69]) by smtp.gmail.com with ESMTPSA id hf7sm30054138wjc.48.2016.06.17.07.03.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Jun 2016 07:03:45 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <20160617122249.GD34324@lahore> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95188 Archived-At: This is a multi-part message in MIME format. --===============4692540564737377229== Content-Type: multipart/alternative; boundary="------------080507050104030207020808" This is a multi-part message in MIME format. --------------080507050104030207020808 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Pavneet Arora > 17. Juni 2016 um 14:22 > I tried to use Aditya's suggestion (which was for Natural Tables) to > keep paragraphs on the same page: > > \noindent{\blank[samepage]} > > but I don't seem to have much success with the MWE I posted earlier. > > Try as a might, I cannot seem to keep the paragraph head "{\ss\tfc > English (Grade 12)}" and the hairline together. I can, however, keep > the hairline and the following lorem text together, but I need all three > elements to float as a group: the paragraph header, hairline, and > paragraph body. > > Would anyone have any suggestions on how to accomplish this? You can put everything in a framedtext to keep it together. \setupbodyfont[9pt] \setupindenting[yes,medium,next] \setupwhitespace[small] \definetabulate[subjectpar][|f{\ssc}w(.3\textwidth)|f{\ssc}p|] \setuptabulate [subjectpar][after={\blackrule[width=\textwidth,height=\linewidth]\noindentation}] \defineframedtext [subjectblock] [frame=off, width=max, offset=0pt, before={\blank[2*big]}] \starttext \blank[8*big, force] \dorecurse{10} {\startsubjectblock \startsubjectpar \NC ENG4U \NC English (Grade 12) \NC\NR \stopsubjectpar \input{lorem.tex} \stopsubjectblock} \stoptext Wolfgang --------------080507050104030207020808 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
17= .=20 Juni 2016 um 14:22
I tried to use Aditya's= =20 suggestion (which was for Natural Tables) to
keep paragraphs on the=20 same page:

\noindent{\blank[samepage]}

but I don't seem=20 to have much success with the MWE I posted earlier.

Try as a=20 might, I cannot seem to keep the paragraph head "{\ss\tfc
English=20 (Grade 12)}" and the hairline together. I can, however, keep
the=20 hairline and the following lorem text together, but I need all three
= elements to float as a group: the paragraph header, hairline, and
paragraph body.

Would anyone have any suggestions on how to accomplish=20 this?
You can put everything in a framedtext to keep it together.

\setupbodyfont[9pt]

\setupindenting[yes,medium,next]
\setupwhitespace[small]

\definetabulate[subjectpar][|f{\ssc}w(.3\textwidth)|f{\ssc}p|]
\setuptabulate=20 [subjectpar][after=3D{\blackrule[width=3D\textwidth,height=3D\linewidth]\= noindentation}]

\defineframedtext
=C2=A0 [subjectblock]
=C2=A0 [frame=3Doff,
=C2=A0=C2=A0 width=3Dmax,
=C2=A0=C2=A0 offset=3D0pt,
=C2=A0=C2=A0 before=3D{\blank[2*big]}]

\starttext

\blank[8*big, force]

\dorecurse{10}
=C2=A0 {\startsubjectblock
=C2=A0=C2=A0=C2=A0=C2=A0 \startsubjectpar
=C2=A0=C2=A0=C2=A0=C2=A0 \NC ENG4U \NC English (Grade 12) \NC\NR
=C2=A0=C2=A0=C2=A0=C2=A0 \stopsubjectpar
=C2=A0=C2=A0=C2=A0=C2=A0 \input{lorem.tex}
=C2=A0=C2=A0 \stopsubjectblock}

\stoptext

Wolfgang
--------------080507050104030207020808-- --===============4692540564737377229== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4692540564737377229==--