ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Denis Maier <denis.maier.lists@mailbox.org>
Subject: Re: Spurious newlines at beginning of startstop pair
Date: Wed, 27 Nov 2019 17:25:12 +0100	[thread overview]
Message-ID: <888a1346-5e35-3b6f-fb2a-4eae506ebf0b@xs4all.nl> (raw)
In-Reply-To: <e6d63d8c-3bd2-3775-a0a0-d25b755c1762@mailbox.org>

On 11/27/2019 2:17 PM, Denis Maier wrote:
> Hi,
> I have this file:
> 
> --------------------------------------------------------------
> \newdimen\cslhangindent
> \cslhangindent=1.5em
> \definestartstop [cslreferences] [
>          before={%
>          \setupnarrower[left=\cslhangindent]
>          \startnarrower[left]%
>          \setupindenting[-\leftskip,yes,first]%
>          \indentation%
>        },
>        after=\stopnarrower,
>      ]
> 
> \starttext
> 
> \section{Some title}
> 
> \input ward
> 
> \section{References}
> 
> \startcslreferences
> 
> \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
> 
> \stopcslreferences
> 
> \stoptext
> --------------------------------------------------------------
> 
> The skip after the `\section{References}` is bigger than after 
> `\section{Some title}`. Why is that? If I delete the empty line after 
> `\startcslreferences`, the skips are identical.
> 
> Is there a way to take care of this through `\definestartstop`?
you need to get rid of the empty line

\definenarrower[whatever][left=1.5em]

\definestartstop
   [cslreferences]
   [before={%
     \startwhatever[left]
     \setupindenting[-\leftskip,yes,first]
     \indentation
     \GetPar
    },
    after=\stopwhatever]

\showframe

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

     \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}

\stopcslreferences

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-11-27 16:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-27 13:17 Denis Maier
2019-11-27 16:25 ` Hans Hagen [this message]
     [not found] ` <1747191520.26220.1574979930871@office.mailbox.org>
2019-11-28 22:26   ` Fwd: " denis.maier.lists
2019-11-29  9:38     ` Hans Hagen
2019-11-29 10:05       ` Denis Maier
2019-11-29 11:07         ` Hans Hagen
2019-11-29 11:10         ` mailing list behaviour (was: Spurious newlines at beginning of startstop pair) Henning Hraban Ramm
2019-11-29 11:31           ` Marco Patzer
2019-11-29 12:02             ` mailing list behaviour Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=888a1346-5e35-3b6f-fb2a-4eae506ebf0b@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=denis.maier.lists@mailbox.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).