Hi,

I have encountered another issue with columns: it seems that in some cases
the height of the content is not entirely accounted for. From the small
experiments I made, the problem seems to only occur when the content of the
left column is larger than the content of the right one by a fraction of
the line height.
The example below demonstrates the issue.

The same issue seems to occur with \startboxedcolumns ... \stopboxedcolumns
but not with \startsimplecolumns ... \stopsimplecolumns.

Is there a way to have a frame or hrules around the full content of
\startcolumns ... \stopcolumns?
_______________________________________________________________________

\starttext
  % The left frame is slightly too small
  \startcolumns[n=2,frame=on]
    Line \par
    \blank[1.5ex]
    Line \par
    Line \par
    Line
  \stopcolumns

  \blank[big]

  % Same issue with hrules: the lower one overlaps with the content of the
left column
  \hrule
  \startcolumns[n=2]
    Line \par
    \blank[1.5ex]
    Line \par
    Line \par
    Line
  \stopcolumns
  \hrule

  \blank[big]

  % Same issue with \startframed ... \stopframed
  \startframed[offset=none]
    \startcolumns[n=2]
      Line \par
      \blank[1.5ex]
      Line \par
      Line \par
      Line
    \stopcolumns
  \stopframed

  \blank[big]

  % Using strut=local seems to fix the issue in this case...
  \startframed[offset=none,strut=local]
    \startcolumns[n=2]
      Line \par
      \blank[1.5ex]
      Line \par
      Line \par
      Line
    \stopcolumns
  \stopframed

  \blank[big]

  % ... but becomes a problem on this example...
  \startframed[offset=none,strut=local]
    \startcolumns[n=2]
      A longer phrase which does not fit on one single line \par
      Line \par
    \stopcolumns
  \stopframed

  \blank[big]

  % ... which works fine without strut=local
  \startframed[offset=none]
    \startcolumns[n=2]
      A longer phrase which does not fit on one single line \par
      Line \par
    \stopcolumns
  \stopframed

  \blank[big]

  % Using \startsimplecolumns ... \stopsimplecolumns seems to consistently
give a good enough frame
  % (although with maybe a bit too much white space at the bottom in this
case)
  \startframed[offset=none]
    \startsimplecolumns[n=2]
      Line \par
      \blank[1.5ex]
      Line \par
      Line \par
      Line
    \stopsimplecolumns
  \stopframed
\stoptext
_______________________________________________________________________

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
___________________________________________________________________________________

Reply via email to