ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: "T. Kurt Bond" <tkurtbond@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace
Date: Mon, 23 Mar 2020 20:15:56 +0100	[thread overview]
Message-ID: <2439a687-1478-ce26-8021-c4b6fbcdd2d1@gmail.com> (raw)
In-Reply-To: <CAN1EhV--rrzdTUbH7nubqUOR7BbaeoxV+4tP3kg9yYKNCSraGw@mail.gmail.com>

T. Kurt Bond schrieb am 23.03.2020 um 16:50:
> It turns out that the extra whitespace before and after the section 
> headers in the body appears when I put \startcolumns[n=2] before the 
> body text and \stopcolumns after it.  Here's the MWE, just slightly 
> modified from your example:
> 
> %%%% begin example
> [...]
> %%%% end example

The old columns environment was replaced a while ago with the newer 
(although available since a few years) mixedcolumns environment.

A big difference between the old columns code and new code is that the 
new code relies on a page grid which can lead to extra lines in the 
output, because ConTeXt adds extra space to put text on the grid.

When you don't care about the grid you can disable it for the columns 
environment but this has to be done also for headers which have their 
own grid option.

Another option is to try the pagecolumns environment, which is another 
environment for multi columns text but it's a very recent addition and 
lacks some features like column balancing.

%%%% begin columns
\setuphead
   [chapter,section,subsection,subsubsection]
   [before={\blank[nowhite]},
    after={\blank[nowhite]},
    grid=no]

\setupwhitespace
   [medium]

\setuplist
   [chapter,section,subsection,subsubsection]
   [before={\blank[nowhite]},
    after={\blank[nowhite]}]

\setupcolumns
   [grid=no]

\starttext

\startcolumns

\completecontent

\chapter{Chapter}

\samplefile{knuth}

\section{Section}

\samplefile{weisman}

\subsection{Subsection}

\samplefile{weisman}

\subsubsection{Subsubsection}

\samplefile{weisman}

\stopcolumns

\stoptext
%%%% end columns

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:[~2020-03-23 19:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-22 22:37 T. Kurt Bond
2020-03-23  2:07 ` Wolfgang Schuster
2020-03-23 15:50   ` T. Kurt Bond
2020-03-23 19:15     ` Wolfgang Schuster [this message]
2020-03-23 21:20       ` T. Kurt Bond

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=2439a687-1478-ce26-8021-c4b6fbcdd2d1@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=tkurtbond@gmail.com \
    /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).