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:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttext

\startbuffer[lim]
There was a young
man from Cartoo\\
Whose limericks
ended at line two.
\stopbuffer

typebuffer output:
\typebuffer[lim]

getbuffer output:

\getbuffer[lim]

\hairline

startcolumns output:
\startcolumns[
    n=2,
    tolerance=verytolerant,
    distance=0.5cm,
    separator=rule,
]
\typebuffer[lim]
\switchtobodyfont[small]
\column
\getbuffer[lim]
\stopcolumns

\hairline

paragraphs output:
\defineparagraphs[paras]
                 [n=2, rule=on, distance=0.7cm]
\startparagraphs[paras]
    \typebuffer[lim]
    \nextparas
    \switchtobodyfont[small]
    \getbuffer[lim]
\stopparagraphs

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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.)

                                Jim
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to