From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95022 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: orphan headline Date: Fri, 27 May 2016 14:49:13 +0200 Message-ID: <57484249.2020704@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8482263916633970840==" X-Trace: ger.gmane.org 1464353417 28344 80.91.229.3 (27 May 2016 12:50:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 May 2016 12:50:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 14:50:02 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 1b6HDF-00036I-I8 for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2016 14:50:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BD34FE6E2; Fri, 27 May 2016 14:49:30 +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 qPlGCr6a03qD; Fri, 27 May 2016 14:49:28 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 93308E6DF; Fri, 27 May 2016 14:49:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0ECE0E6DD for ; Fri, 27 May 2016 14:49:28 +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 8KmD9NKM36Yx for ; Fri, 27 May 2016 14:49:27 +0200 (CEST) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 8BF56E6DC for ; Fri, 27 May 2016 14:49:17 +0200 (CEST) Original-Received: by mail-wm0-f50.google.com with SMTP id a136so71358945wme.0 for ; Fri, 27 May 2016 05:49:17 -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=r1+qVUwU4NytvIUZjzFUufMyUM0dzYmXA3LEx7pTRHQ=; b=sdnP3afZN824Hokz+1WkLm0h6fdFvOOY6/2RrJGGKbz0Dmm27nUhYoWqmrATJB0qBM IjeMYP6i4BfuNbHLJlN/FysICYroaCxcACBhFdztob7FjjSyLOmZ3SP9lm8iQXH1Uci2 ogtR16e2Jq5sKi5sMajpabquU1udzv0tmJfJji24p/fqdSAY/d0R84ZpJjydUnNeUJA4 WyIGAXESXzbtZYG7P5q2KTItdJyx30afz+S/bv9UkNNo6pbJsgbxnBxVuJVEzysEo0Ww 3uMPBxcjjkfTAMQucElI/oIB0oQ/66Fc/7hsr/CR8GumTA73bcBVuqdgHvKdY01z/cz4 Yyaw== 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=r1+qVUwU4NytvIUZjzFUufMyUM0dzYmXA3LEx7pTRHQ=; b=IiSzM4RAFWUbO6028j0srKiCld6Bwo8rWx2JGO8eUY548wBopUrCxDrY/vvnQVUF0l B/5GPLt491C1+tRllcdfsMZ1xLLnSrc7w+8yhAEWHpMpAM74+JTFjD0i98ETAZRqqErE yuyGFgLVL5VfKXlBJiKKnMl75Z9XS8qo+94QIxrZs0xvceLjR0Cdffv9TscF6+i7pqKZ xHZ70E1VaR2If/9v4x0G/F8cHf+S1+joPhOWHMN+rpzAs+GNK+OI/4hP4q9ylpP+8W4j jXpiDNVbGynCg/dXv9m+6t6QwJE6mHjf+B4PZv98en1RcOucEb1pYX85qAvgBa4soU35 NB4Q== X-Gm-Message-State: ALyK8tIcAP/iIOHUv4IVOiokeiAa8fM47QxUe2M0ae15KL8z6nuBtiZ7D0cUR/qBRu+3Bg== X-Received: by 10.28.149.205 with SMTP id x196mr9568108wmd.67.1464353357057; Fri, 27 May 2016 05:49:17 -0700 (PDT) Original-Received: from keima.localdomain (x2f2355d.dyn.telefonica.de. [2.242.53.93]) by smtp.gmail.com with ESMTPSA id c4sm19304569wjm.24.2016.05.27.05.49.15 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2016 05:49:16 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:95022 Archived-At: This is a multi-part message in MIME format. --===============8482263916633970840== Content-Type: multipart/alternative; boundary="------------050809060006010004010905" This is a multi-part message in MIME format. --------------050809060006010004010905 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Pablo Rodriguez > 26. Mai 2016 um 21:29 > > In a much simpler case, it seems to work: > > \setuphead[section] > [style=\ss\tfa, after={\hrule\blank[samepage,big]}] > %~ [style=\ss\tfa, after={\hrule\blank[big]}] > > \setuphead[subsection] > [style=\ss, after={\hrule\blank[samepage,medium]}] > %~ [style=\ss, after={\hrule\blank[medium]}] > > \starttext > \dorecurse{10}{\section{Section} > \input knuth > \subsection{Subsection} > \input zapf} > \stoptext > > Do you really need headings to be inside framed texts? A good idea but it can be improved. \definevspace[sectionrule][3mm] \setuphead [section] [ width=0.8\textwidth, commandafter={\vspace[sectionrule]\hrule}, before={\blank[0.5cm]}, after={\blank[1cm]}] \starttext \section{\input ward } \subject{\input ward } \stoptext Wolfgang --------------050809060006010004010905 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
26= .=20 Mai 2016 um 21:29

In a much=20 simpler case, it seems to work:

\setuphead[section]
=20 [style=3D\ss\tfa, after=3D{\hrule\blank[samepage,big]}]
%~=20 [style=3D\ss\tfa, after=3D{\hrule\blank[big]}]

=20 \setuphead[subsection]
[style=3D\ss,=20 after=3D{\hrule\blank[samepage,medium]}]
%~ [style=3D\ss,=20 after=3D{\hrule\blank[medium]}]

\starttext
=20 \dorecurse{10}{\section{Section}
\input knuth
=20 \subsection{Subsection}
\input zapf}
\stoptext

Do=20 you really need headings to be inside framed texts?
A good idea but it can be improved.

\definevspace[sectionrule][3mm]

\setuphead
=C2=A0 [section]
=C2=A0 [=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 width=3D0.8\textwidth,
=C2=A0=C2=A0 commandafter=3D{\vspace[sectionrule]\hrule},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 before=3D{\blank[0.5cm]}= ,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 after=3D{\blank[1c= m]}]

\starttext

\section{\input ward }

\subject{\input ward }

\stoptext

Wolfgang
--------------050809060006010004010905-- --===============8482263916633970840== 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= --===============8482263916633970840==--