From: denis.maier.lists@mailbox.org
To: ntg-context@ntg.nl
Subject: Fwd: Re: Spurious newlines at beginning of startstop pair
Date: Thu, 28 Nov 2019 23:26:40 +0100 (CET) [thread overview]
Message-ID: <1003802141.26224.1574980000171@office.mailbox.org> (raw)
In-Reply-To: <1747191520.26220.1574979930871@office.mailbox.org>
Hans,
thanks for your answer. But two questions:
First: Am I right to assume that the important part is `\GetPar`. The rest is syntactic sugar to make to code more ConTeXt-like, right?
Second: For some reasons I have not received your message. It wasn't in the Spam folder and I usually receive mails from the list. Any ideas? Are there some known problems?
Best,
Denis
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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2019-11-28 22:26 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
[not found] ` <1747191520.26220.1574979930871@office.mailbox.org>
2019-11-28 22:26 ` denis.maier.lists [this message]
2019-11-29 9:38 ` Fwd: " 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=1003802141.26224.1574980000171@office.mailbox.org \
--to=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).