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
___________________________________________________________________________________