From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98841 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: avoid space after title Date: Wed, 16 Aug 2017 12:35:52 -0400 Message-ID: <144f6606-a015-ea49-7810-c19e0f42d4e2@rik.users.panix.com> References: <48FFF13D-B63C-40FE-82AE-6EABA1CB8A9E@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3801105982263685730==" X-Trace: blaine.gmane.org 1502901379 18489 195.159.176.226 (16 Aug 2017 16:36:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 16:36:19 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 16 18:36:15 2017 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di1Ih-0004Mz-Kr for gctc-ntg-context-518@m.gmane.org; Wed, 16 Aug 2017 18:36:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E09DE8C0B54; Wed, 16 Aug 2017 18:36:07 +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 KDjIw-nWT4Ow; Wed, 16 Aug 2017 18:36:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 248908C0B44; Wed, 16 Aug 2017 18:36:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8A1318C0B45 for ; Wed, 16 Aug 2017 18:36:05 +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 Bvjk7aYIh-HB for ; Wed, 16 Aug 2017 18:36:04 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 937848C0B44 for ; Wed, 16 Aug 2017 18:35:54 +0200 (CEST) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id 49ABC11187 for ; Wed, 16 Aug 2017 12:35:53 -0400 (EDT) In-Reply-To: Content-Language: en-US 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:98841 Archived-At: This is a multi-part message in MIME format. --===============3801105982263685730== Content-Type: multipart/alternative; boundary="------------2A30A2D2C643287816D0267D" Content-Language: en-US This is a multi-part message in MIME format. --------------2A30A2D2C643287816D0267D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2017-08-16 12:20, Pablo Rodriguez wrote: > On 08/16/2017 05:48 PM, Henning Hraban Ramm wrote: >> Please, this is quite urgent. No hints? >> >> Am 2017-08-15 um 18:18 schrieb Henning Hraban Ramm: >>> I’d like to get rid of the blank line after section titles in grid >>> mode. How? > Hi Hraban, > > I checked it yesterday, but I didn’t found a solution. > > All I can say is that if grid is enabled, (at least) a blank line before > and after \section is added. See yourself: > > \showgrid > \setuplayout[grid=yes,] > \setuphead[section][page=no,before=,after=] > > \starttext > > \startchapter[title={Authors}] > > \startsection[title={Knuth}] > \input knuth > \stopsection > > \startsection[title={Tufte}] > \input tufte > \stopsection > > \setuphead[section] > [before={\blackrule[width=\textwidth,color=green, > height=\lineheight]}, > after={\blackrule[width=\textwidth,color=red, height=\lineheight]}] > > \startsection[title={Hawking}] > \input hawking > \stopsection > > \startsection[title={Zapf}] > \input zapf > \stopsection > > \stopchapter > > \stoptext > > I would say this might be a bug. But someone with more ConTeXt knowledge > should confirm my assumption. > > Sorry for not providing actual help, > > Pablo Well, for this example you can do it with a simple hack: \setuphead[section][page=no,before={},after={\blank[-1*line]}] You will have to test how that works for you in a more complex document. -- Rik --------------2A30A2D2C643287816D0267D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 2017-08-16 12:20, Pablo Rodriguez wrote:
On 08/16/2017 05:48 PM, Henning Hraban Ramm wrote:
Please, this is quite urgent. No hints?

Am 2017-08-15 um 18:18 schrieb Henning Hraban Ramm:
I’d like to get rid of the blank line after section titles in grid
mode. How?
Hi Hraban,

I checked it yesterday, but I didn’t found a solution.

All I can say is that if grid is enabled, (at least) a blank line before
and after \section is added. See yourself:

    \showgrid
    \setuplayout[grid=yes,]
    \setuphead[section][page=no,before=,after=]

    \starttext

    \startchapter[title={Authors}]

    \startsection[title={Knuth}]
    \input knuth
    \stopsection

    \startsection[title={Tufte}]
    \input tufte
    \stopsection

    \setuphead[section]
    [before={\blackrule[width=\textwidth,color=green,
              height=\lineheight]},
    after={\blackrule[width=\textwidth,color=red, height=\lineheight]}]

    \startsection[title={Hawking}]
    \input hawking
    \stopsection

    \startsection[title={Zapf}]
    \input zapf
    \stopsection

    \stopchapter

    \stoptext

I would say this might be a bug. But someone with more ConTeXt knowledge
should confirm my assumption.

Sorry for not providing actual help,

Pablo

Well, for this example you can do it with a simple hack:

\setuphead[section][page=no,before={},after={\blank[-1*line]}]

You will have to test how that works for you in a more complex document.

--
Rik

--------------2A30A2D2C643287816D0267D-- --===============3801105982263685730== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3801105982263685730==--