From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95019 Path: news.gmane.org!not-for-mail From: Andrea Valle Newsgroups: gmane.comp.tex.context Subject: Re: orphan headline Date: Fri, 27 May 2016 10:16:17 +0200 Message-ID: <7914542A-B854-4F79-9292-03EAC3CB8B99@di.unito.it> References: <574754AB.80500@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/mixed; boundary="===============4194856375170803256==" X-Trace: ger.gmane.org 1464337053 26274 80.91.229.3 (27 May 2016 08:17:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 May 2016 08:17:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 10:17:18 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 1b6CxI-0003MN-FY for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2016 10:17:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 804C1E50A; Fri, 27 May 2016 10:16:39 +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 qwYiPj1miMXz; Fri, 27 May 2016 10:16:37 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 33667E51F; Fri, 27 May 2016 10:16:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AD79E50A for ; Fri, 27 May 2016 10:16:36 +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 X5WLPy7Xu1Lj for ; Fri, 27 May 2016 10:16:35 +0200 (CEST) Original-Received: from mail.di.unito.it (pianeta.di.unito.it [130.192.156.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 65EF2E507 for ; Fri, 27 May 2016 10:16:25 +0200 (CEST) X-MailScanner-From: valle@di.unito.it X-SpamCheck: not spam, SpamAssassin (not cached, score=-102.43, required 3, autolearn=not spam, AUTHENTICATEDUSER -100.00, AWL -0.02, BAYES_00 -1.90, HTML_MESSAGE 0.00, MISSING_FROM 1.00, RCVD_IN_DNSWL_MED -2.30, RDNS_NONE 0.79, SPF_PASS -0.00) X-AntiVirus: Email Clean X-dipinfo-MailScanner-ID: u4R8GHRm001704 X-dipinfo-MailScanner-Information: Please contact Department of Computer Science technical staff for more information Original-Received: from mail.di.unito.it ([130.192.156.1]) by mail.di.unito.it (INFO-DIP) with ESMTP id u4R8GHRm001704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO AuthenticatedUser=valle ) for ; Fri, 27 May 2016 10:16:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.di.unito.it u4R8GHRm001704 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=di.unito.it; s=dipinfo2011; t=1464336979; bh=tmeq+vSBLD9StwnCaP9Ggn2iu8EFX1Hi0Hg0/xw1/pE=; h=From:Subject:Date:References:To:In-Reply-To; b=EjVRzcgb8RMkJ4uOR1pb1SvImCqE3j8mPVgqeIF9mGdV/s7SMMUqVHwcu663GK2Dj 4uWMrvAqS1RPBIPMdC/2cClS7qjSQwLIXzfZyqVC4qqS2O0t1wz+MXO25EA19/toax PLs4sft3WiP8MQu0OUu7p8D7XcHTAmFqhpo4n6s0= In-Reply-To: <574754AB.80500@gmail.com> X-Mailer: Apple Mail (2.2104) 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" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:95019 Archived-At: --===============4194856375170803256== Content-Type: multipart/alternative; boundary="Apple-Mail=_3520783C-BAE7-465A-8B87-823C23C9189B" --Apple-Mail=_3520783C-BAE7-465A-8B87-823C23C9189B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks a lot Wolfgang -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - StudiUm Universit=C3=A0 degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.valle@unito.it -------------------------------------------------- "This is a very complicated case, Maude. You know, a lotta ins, a lotta = outs, a lotta what-have-yous."=20 (Jeffrey 'The Dude' Lebowski) > Your lack of a working minimal example makes it hard to give a = solution Sorry, I know, but I didn=E2=80=99t know to reproduce the situation. > but adding changing the way how the frame is added should improve = things. >=20 > \startsetups[section:andrea] > \ifconditional\headshownumber > = \scratchdimenone\dimexpr\headnumberwidth+\headnumberdistance\relax > \scratchdimentwo\dimexpr\headnumberdistance\relax > \else > \scratchdimenone\zeropoint > \scratchdimentwo\zeropoint > \fi > = \startframedtext[offset=3D0.25cm,loffset=3D\scratchdimenone,rulethickness=3D= 0.01cm,frame=3Doff,bottomframe=3Don] > \dontleavehmode\llap{\headnumbercontent\hskip\scratchdimentwo} > \headtextcontent > \stopframedtext > \stopsetups >=20 look likes it solves all the problems! I really have no idea of what=E2=80= =99s going on here. Luckily this mailing list is super friendly. Manuals are cool, but I always miss the big picture that would allow me = to generalise over a problem! Thanks Best > = \defineheadalternative[section:andrea][alternative=3Dvertical,renderingset= up=3Dsection:andrea] >=20 > \setuphead > [section] > [alternative=3Dsection:andrea, > numberwidth=3D1em, > before=3D{\blank[0.5cm]}, > after=3D{\blank[1cm]}] >=20 > \starttext --Apple-Mail=_3520783C-BAE7-465A-8B87-823C23C9189B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks a lot  Wolfgang


--------------------------------------------------
Andrea = Valle
--------------------------------------------------
CIRMA - = StudiUm
Universit=C3=A0 degli Studi di Torino
--------------------------------------------------

"This is a very = complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta = what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

Your lack of a working minimal example makes it = hard to give a solution

Sorry, I = know, but I didn=E2=80=99t know to reproduce the situation.

but adding = changing the way how the frame is added should improve things.

\startsetups[section:andrea]
    = \ifconditional\headshownumber
        = \scratchdimenone\dimexpr\headnumberwidth+\headnumberdistance\relax<= br style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = line-height: normal; orphans: auto; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: auto; word-spacing: = 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, = 255);" class=3D"">        = \scratchdimentwo\dimexpr\headnumberdistance\relax
    \else
        = \scratchdimenone\zeropoint
        = \scratchdimentwo\zeropoint
    \fi
    = \startframedtext[offset=3D0.25cm,loffset=3D\scratchdimenone,rulethickness=3D= 0.01cm,frame=3Doff,bottomframe=3Don]
        = \dontleavehmode\llap{\headnumbercontent\hskip\scratchdimentwo}
        = \headtextcontent
    \stopframedtext
\stopsetups



look likes it solves all the = problems! I really have no idea of what=E2=80=99s going on here. Luckily = this mailing list is super friendly.
Manuals are = cool, but I always miss the big picture that would allow me to = generalise over a problem!


Thanks

Best




\defineheadalternative[section:andrea][alternative=3Dvertical,r= enderingsetup=3Dsection:andrea]

\setuphead
  = [section]
  = [alternative=3Dsection:andrea,
   numberwidth=3D1em,
        = before=3D{\blank[0.5cm]},
         = after=3D{\blank[1cm]}]

\starttext



= --Apple-Mail=_3520783C-BAE7-465A-8B87-823C23C9189B-- --===============4194856375170803256== 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= --===============4194856375170803256==--