From: Andreas Harder <aharder@uni-koblenz.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Contextual spacing
Date: Fri, 18 Dec 2009 00:05:42 +0100 [thread overview]
Message-ID: <C00198D3-602B-4D8C-B546-3F3DA4EE3B1E@uni-koblenz.de> (raw)
In-Reply-To: <1F9B86E7-F949-4CA5-A5EA-366766D1CF96@googlemail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2124 bytes --]
Am 17.12.2009 um 18:19 schrieb Wolfgang Schuster:
>
> Am 17.12.2009 um 17:48 schrieb Andreas Harder:
>
>> Hi all,
>>
>> please have a look at the attached example. Is there a (not manually) possibility to reduce the space of two consecutive headers? Another situation is if a header with ‘before=,’ is followed by an environment with 'before=\blank’ …
>>
>> \setupdelimitedtext[blockquote][before=\blank,after=\blank]
>
> \setupdelimitedtext[...][spacebefore=default,spaceafter=default]
>
> you can now use before/after for different settings
>
>> \setuphead[subject][after=,style=\bfa]
>>
>> \starttext
>> \subject{No space after the header}
>>
>> \input tufte
>
> interesting because it works in MkII when i add \setupinterlinespace[...] to the preamble
>
>> \subject{Space from the \tex{blockquote}-environment} % \vskip-\lineheight
>>
>> \startblockquote
>> \input tufte
>> \stopblockquote
>>
>> \input tufte
>>
>> \startblockquote
>> \input tufte
>> \stopblockquote
>>
>> \startcolumns
>> \section{Section}
>> \input tufte \par
>> \subsection{Subsection}
>> \input tufte \par \column
>> \section{Section} % \vskip-1.25\lineheight
>> \subsection{Subsection}
>> \input tufte \par
>> \input tufte \par
>> \stopcolumns
>>
>> \stoptext
>
> see http://www.ntg.nl/pipermail/ntg-context/2008/034443.html
Hello Wolfgang,
thanks for the hint, but I don’t get it. How can I bind a signal to a heading? If I understand right a signal is a tag that can be attached to a macro …? So I’ve tried the following:
\newsignal\SpaceAfterSection
\def\TestSpace
{\ifdim\lastskip=\SpaceAfterSection \blank[nowhite]
\else \blank[2*big]\fi}
\setuphead[section] [after=\SpaceAfterSection]
\setuphead[subsection] [before=\TestSpace]
\starttext % \showgrid
\startcolumns
\section{Section}
\input tufte \par
\subsection{Subsection}
\input tufte \par \column
\section{Section}
\subsection{Subsection}
\input tufte \par
\input tufte \par
\stopcolumns
\stoptext
I appreciate your help!
Andreas
PS. I use only MkIV
[-- Attachment #1.2: Type: text/html, Size: 4262 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-12-17 23:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 13:05 Some question regarding Layers Erik Margraf
2009-12-17 13:21 ` Wolfgang Schuster
2009-12-17 16:48 ` Contextual spacing Andreas Harder
2009-12-17 17:19 ` Wolfgang Schuster
2009-12-17 23:05 ` Andreas Harder [this message]
2009-12-18 5:31 ` Wolfgang Schuster
2009-12-18 12:34 ` Andreas Harder
[not found] ` <ca5756140912181256i60f90dbcm8dc864337c659a6b@mail.gmail.com>
2009-12-19 14:36 ` Some question regarding Layers Wolfgang Schuster
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=C00198D3-602B-4D8C-B546-3F3DA4EE3B1E@uni-koblenz.de \
--to=aharder@uni-koblenz.de \
--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).