
Hi! I've encountered a (to me) unexpected behaviour with the columns environment: the vertical alignment looks slightly different depending on whether the text fits on a single column or not. The following example demonstrates this behaviour (ConTeXt LMTX version 2025.07.08 17:48 on a 64-bits Linux machine): the first line looks slightly higher than the second one. \starttext \startframed[offset=0pt] \startcolumns This is a test \stopcolumns \stopframed \blank[medium] \startframed[offset=0pt] \startcolumns This is a slightly longer test using two columns \stopcolumns \stopframed \stoptext If this is intended, is there a way to get the same vertical alignment independently of whether the text fits on one or two columns? Cheers, Florent

Hi,
Just guessing: Does \startboxedcolumns ... \stopboxedcolumns work?
/Mikael
Den tis 15 juli 2025 11:23Florent Michel
Hi!
I've encountered a (to me) unexpected behaviour with the columns environment: the vertical alignment looks slightly different depending on whether the text fits on a single column or not. The following example demonstrates this behaviour (ConTeXt LMTX version 2025.07.08 17:48 on a 64-bits Linux machine): the first line looks slightly higher than the second one.
\starttext \startframed[offset=0pt] \startcolumns This is a test \stopcolumns \stopframed \blank[medium] \startframed[offset=0pt] \startcolumns This is a slightly longer test using two columns \stopcolumns \stopframed \stoptext
If this is intended, is there a way to get the same vertical alignment independently of whether the text fits on one or two columns?
Cheers, Florent
___________________________________________________________________________________ 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
___________________________________________________________________________________

Hi Mikael,
Thanks a lot for your reply! Yes, using \startboxedcolumns ...
\stopboxedcolums gives (as far as I can see) a consistent alignment.
Cheers,
Florent
On Tue, 15 Jul 2025, 12:14 Mikael Sundqvist,
Hi,
Just guessing: Does \startboxedcolumns ... \stopboxedcolumns work?
/Mikael
Den tis 15 juli 2025 11:23Florent Michel
skrev: Hi!
I've encountered a (to me) unexpected behaviour with the columns environment: the vertical alignment looks slightly different depending on whether the text fits on a single column or not. The following example demonstrates this behaviour (ConTeXt LMTX version 2025.07.08 17:48 on a 64-bits Linux machine): the first line looks slightly higher than the second one.
\starttext \startframed[offset=0pt] \startcolumns This is a test \stopcolumns \stopframed \blank[medium] \startframed[offset=0pt] \startcolumns This is a slightly longer test using two columns \stopcolumns \stopframed \stoptext
If this is intended, is there a way to get the same vertical alignment independently of whether the text fits on one or two columns?
Cheers, Florent
___________________________________________________________________________________ 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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (2)
-
Florent Michel
-
Mikael Sundqvist