From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Joel via ntg-context <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Is there any command that equates to "keep with previous paragraph"?
Date: Thu, 16 May 2024 12:30:02 +0200 [thread overview]
Message-ID: <1114d213-bfac-8172-00b6-442311781cd0@gmail.com> (raw)
In-Reply-To: <1588507596.354733.1715828679626@mail.yahoo.com>
Joel via ntg-context schrieb am 16.05.2024 um 05:04:
> If I have text like this, it interprets the gap as needing a paragraph
> break:
>
> This is some text.
>
> This is some other text, it will appear in a new paragraph.
>
> Is there any macro I can place that will ignore the gap before it,
> treating the next text as if it belongs at the end of that sentence?
>
> Ex.
>
> This is some text.
>
> \ignorebreak This is some other text, it will appear in a new paragraph.
>
> That way output is more like this:
>
> This is some text.This is some other text, it will appear in a new
> paragraph.
There is a similar command to ignore the next blank line or \par but you
have to add it at the end paragraph and not at the start.
In the old MkII days \GotoPar (the commands is still available) did the
job but with Luametatex you can now use the \ignorepars primitive to
achieve the result.
%%%% begin example
\starttext
This is some text.
This is some other text, it will appear in a new paragraph.
\blank
This is some text. \ignorepars % add space before \ignorepars
This is some other text, it will appear in a new paragraph.
\blank
This is some text. \GotoPar
This is some other text, it will appear in a new paragraph.
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2024-05-16 10:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1588507596.354733.1715828679626.ref@mail.yahoo.com>
2024-05-16 3:04 ` [NTG-context] " Joel via ntg-context
2024-05-16 10:30 ` Wolfgang Schuster [this message]
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=1114d213-bfac-8172-00b6-442311781cd0@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--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).