ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Marginal heads and non-text sections
@ 2010-10-12 14:39 Brian Sniffen
  2010-10-13  7:07 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Sniffen @ 2010-10-12 14:39 UTC (permalink / raw)
  To: ntg-context

I'm having trouble understanding space inserted around itemize and
TABLE objects.  I found some great advice from the mailing list
archives, and managed to cobble together a setup that *almost* works.
Now I have only two problems.  I welcome any help.

First: In the example below, the word "monkey" creates no vertical
space---even if it's commented out, there's no change in the space
between "Title" and "alpha".  I'd like to tighten that space up---I've
been resorting to \vskip{-10ex}, but surely there's a way to not put
that space there in the first place.  I'm already using
packed,intro,joinedup for the itemize in an attempt to shove it as
high as possible; is there another way?

Second: in the same example, the "Second" subject does not appear.
Uncommenting the llama doesn't make any surprising difference (well,
it moves the table down, showing that tables don't have the
space-filling property of itemizes), but uncommenting the apricot does
cause the "Second" subject to appear.  How can I force the "Second"
subject to appear next to the table?

Thank you for any help.

\setuphead[subject][alternative=text,distance=0pt,command=\MyHead]
\setupinmargin[style=\setupinterlinespace]
\def\MyHead#1#2{\margintitle[low]{\rotate{#1 #2}}}

\setupitemize[packed,intro,joinedup,KR]

\starttext
\title{Title}

\subject{First}

monkey

\startitemize[columns]
\item alpha
\item beta
\item gamma
\stopitemize


\subject{Second}

%llama

\bTABLE
\bTR \bTD One \eTD \eTR
\eTABLE

\stoptext



-- 
Brian Sniffen
http://evenmere.org/~bts/
<bts@evenmere.org>
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Marginal heads and non-text sections
  2010-10-12 14:39 Marginal heads and non-text sections Brian Sniffen
@ 2010-10-13  7:07 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-10-13  7:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.10.2010 um 16:39 schrieb Brian Sniffen:

> I'm having trouble understanding space inserted around itemize and
> TABLE objects.  I found some great advice from the mailing list
> archives, and managed to cobble together a setup that *almost* works.
> Now I have only two problems.  I welcome any help.
> 
> First: In the example below, the word "monkey" creates no vertical
> space---even if it's commented out, there's no change in the space
> between "Title" and "alpha".  I'd like to tighten that space up---I've
> been resorting to \vskip{-10ex}, but surely there's a way to not put
> that space there in the first place.  I'm already using
> packed,intro,joinedup for the itemize in an attempt to shove it as
> high as possible; is there another way?

The position of the itemize doesn’t change because \subject starts
a new line and “monkey” is only the first visible word in this line,
change the subject definition to

\setuphead[subject][alternative=command,command=\MyHead]

and the position of the itemize is now correct.

> Second: in the same example, the "Second" subject does not appear.
> Uncommenting the llama doesn't make any surprising difference (well,
> it moves the table down, showing that tables don't have the
> space-filling property of itemizes), but uncommenting the apricot does
> cause the "Second" subject to appear.  How can I force the "Second"
> subject to appear next to the table?

Force horizontal mode for the table with

\dontleavehmode\bTABLE

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-13  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-12 14:39 Marginal heads and non-text sections Brian Sniffen
2010-10-13  7:07 ` Wolfgang Schuster

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).