Re: buffer question

Wolfgang Schuster <[email protected]> Fri, 17 Apr 2026 18:40:27 +0200
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
Am 17.04.2026 um 16:32 schrieb Jim via ntg-context:
> On Thu, Apr 16, 2026 at 23:41 (+0200), Hans Hagen via ntg-context wrote:
> 
>> On 4/16/2026 10:36 PM, Jim Diamond via ntg-context wrote:
> 
>>> Aditya,
> 
>>> thanks very much.  I guess I need to either
>>> - get up to speed on the Lua-ConTeXt interface, or
>>> - stop asking questions that provoke such answers.  :-)
> 
>> - hang my plain-hat on the wall
>> - stay curious
> 
> While thee first comment is itself a bit curious, today I am curious about
> something else.   I do use a buffer, but that isn't the main focus.
> 
> A while back I was given some advice to use the paragraph environment,
> rather than the columns environment.  That seemed like a good idea at the
> time, so I rewrote some macros.
> 
> Consider the following document, which has had the macros removed, in the
> spirit of minimalness:
> 
> [...]
> 
> Attached is the output, the last bit of which I find curious.
> 
> Can someone tell me why, inside th \startparagraphs ... \stopparagraphs
> section, \getbuffer treats the content as if the person was from Verdun?
> 
> Thanks.
> 
> (The behaviour is not curious if I use \crlf instead of \\.  While that is
> a work-around, it doesn't satisfy the curiosity aspect.)

You used \\ in your example and expected it to result in a line break 
but this is wrong because \\ has different effects dependant on the 
current scope.


Example 1:

\starttext

\placelist[section]

\section{two\\words}

\stoptext


Example 2:

\starttext

\framed{two\\words}

\framed[align=flushleft]{two\\words}

\stoptext


In your case with the paragraphs environment \\ ends the current columns 
and puts the following content in a new column (which doesn't exist in 
your example).

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________