ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <context@rik.users.panix.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Unwanted whitespace for tables and enumerations after \inmargin headings
Date: Thu, 17 Apr 2014 19:19:46 -0400	[thread overview]
Message-ID: <53506192.4040109@rik.users.panix.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2434 bytes --]

(This appears to be the same issue which was raised by Alexandros 
Frantzis in October 2008; see the thread at 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg32125.html. No 
resolution was proposed at that time, and the problem still exists.)

Extra whitespace occurs before itemizations and tabulations (and quite 
possibly other structures) which appear immediately following an 
in-margin heading. The following example illustrates this.

    \setuplayout [backspace=7cm,leftmargin=6cm]

    \setuphead   [chapter][]

    \setuphead   [subsection]
                  [alternative=normal,command=,distance=1em]

    \setuphead   [subsubsection]
                  [alternative=normal,command=,distance=1em]

    \setuphead   [section][distance=0pt,
                   alternative=text,
                   command=\MarginHead]

    \define[2]\MarginHead{\inmargin{#1 #2}}

    \startbuffer[Item]
       \startitemize
         \item Item
         \item Idem
       \stopitemize
    \stopbuffer
    \startbuffer[Table]
       \starttabulate[|l|l|]
         \FL\NC Entry \NC one \NC\NR
            \NC Entry \NC two \NC\NR\LL
       \stoptabulate
    \stopbuffer

    \starttext

    \chapter{Itemize}

    \section{No extra whitespace}
    With text here there is no extra whitespace before the itemization.
    \getbuffer[Item]

    \subsection{No extra whitespace}
    With text here there is no extra whitespace before the itemization.
    \getbuffer[Item]

    \section{Extra whitespace}
    \getbuffer[Item]
    With no text before the itemization there is extra space after the
    heading.

    \subsection{No extra whitespace}
    \getbuffer[Item]
    With no text before the itemization there is extra space after the
    heading.

    \chapter{Tabulate}

    \section{No extra whitespace}
    With text here there is no extra whitespace before the table.
    \getbuffer[Table]

    \subsection{No extra whitespace}
    With text here there is no extra whitespace before the table.
    \getbuffer[Table]

    \section{Extra whitespace}
    \getbuffer[Table]
    With no text before the table there is extra space after the heading.

    \subsection{No extra whitespace}
    \getbuffer[Table]
    With no text before the table there is extra space after the heading.

    \stoptext

Is this unresolvable? Like Alexandros, I have tried many of the options 
that looked appropriate, but nothing seems to work.

-- 
Rik Kabel

[-- Attachment #1.2: Type: text/html, Size: 4763 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2014-04-17 23:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 23:19 Rik Kabel [this message]
2014-04-18 19:54 ` Thangalin
2014-04-18 21:36   ` Aditya Mahajan
2014-04-19  0:11     ` Rik Kabel
2014-04-19  8:55       ` Wolfgang Schuster
2014-04-19  9:07         ` Thangalin
2014-04-19 15:46         ` Rik

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=53506192.4040109@rik.users.panix.com \
    --to=context@rik.users.panix.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).