ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: spacing
Date: Sat, 10 Nov 2018 12:39:00 +0100	[thread overview]
Message-ID: <b2c49c84-9325-21c7-0f36-2a8db05aa388@gmail.com> (raw)
In-Reply-To: <46c84eb4-c4af-5698-929f-e8be7cf2242a@xs4all.nl>



Hans Hagen schrieb am 09.11.18 um 17:01:
> - the new mixed column code has been around for even longer (and 
> always was default on my machine) btu the old code is available as module

A big difference between the old columns environment and the new mixed 
columns code is that the new environment uses grid snapping by default 
which can result in blank lines in the output.

Below is a simplified version of Henning problems which produces an 
blank line when you use bold text.


\showboxes

\starttext

\startcolumns[balance=no]

\snaptogrid[]\hbox{\setstrut\begstrut Ward\endstrut}

\samplefile{ward}

\snaptogrid[]\hbox{\bf\setstrut\begstrut Ward\endstrut}

\samplefile{ward}

\stopcolumns

\stoptext


Two simple ways to get rid of the blank line are

1. to disable the strut for the section or

2. to disable the grid snapping for the section.


\showboxes

\setuphead[section][before=,after=]
\setuphead[section][style=bold]

\define[1]\Sample
   {\begingroup
      \setuphead[section][#1]
      \section{Ward \doifsomething{#1}{\tttf [#1]}}
      \samplefile{ward}\par
    \endgroup}

\starttext

\startcolumns[balance=no]

\Sample{}

\Sample{style=}

\Sample{strut=no}

\Sample{grid=no}

\stopcolumns

\stoptext


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2018-11-10 11:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-28 19:01 \framed regression Henning Hraban Ramm
2018-10-28 19:37 ` Henning Hraban Ramm
2018-10-28 19:49   ` Herbert Voss
2018-10-29 15:13     ` Henning Hraban Ramm
2018-10-29 15:47       ` Herbert Voss
2018-10-30 13:08         ` Henning Hraban Ramm
2018-10-30 13:16           ` Hans van der Meer
2018-11-07 21:53             ` spacing (was: \framed) regression Henning Hraban Ramm
2018-11-08 17:32               ` spacing Wolfgang Schuster
2018-11-08 22:41                 ` spacing Henning Hraban Ramm
2018-11-08 22:51                   ` spacing Henri Menke
2018-11-09 12:50                     ` spacing Clyde Johnston
2018-11-09 15:14                       ` spacing Hans Hagen
2018-11-09 13:40                     ` spacing Henning Hraban Ramm
2018-11-09 14:05                       ` spacing Tomas Hala
2018-11-09 15:23                         ` spacing Alan Braslau
2018-11-11 21:23                           ` Keeping Ctx versions (was: Re: spacing) Procházka Lukáš Ing.
2018-11-09 16:01                       ` spacing Hans Hagen
2018-11-10 11:39                         ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b2c49c84-9325-21c7-0f36-2a8db05aa388@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).