From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55241 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Re: Contextual spacing Date: Fri, 18 Dec 2009 00:05:42 +0100 Message-ID: References: <0BB33254-7E50-4B16-91F3-F175433F5AD2@uni-koblenz.de> <1F9B86E7-F949-4CA5-A5EA-366766D1CF96@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/mixed; boundary="===============0237924026==" X-Trace: ger.gmane.org 1261091217 3409 80.91.229.12 (17 Dec 2009 23:06:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2009 23:06:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 18 00:06:49 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NLPQk-0002F8-6p for gctc-ntg-context-518@m.gmane.org; Fri, 18 Dec 2009 00:06:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B05DC9BFF; Fri, 18 Dec 2009 00:06:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IXBdzAiBIG3d; Fri, 18 Dec 2009 00:06:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20E36C9BA3; Fri, 18 Dec 2009 00:06:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8846AC9BA3 for ; Fri, 18 Dec 2009 00:06:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PDIiPWiduPoI for ; Fri, 18 Dec 2009 00:05:48 +0100 (CET) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by balder.ntg.nl (Postfix) with ESMTP id E1606C9AC7 for ; Fri, 18 Dec 2009 00:05:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 75CC4789B012 for ; Fri, 18 Dec 2009 00:05:44 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09253-02 for ; Fri, 18 Dec 2009 00:05:43 +0100 (CET) X-CHKRCPT: Envelopesender noch aharder@uni-koblenz.de Original-Received: from [192.168.1.112] (77-23-29-238-dynip.superkabel.de [77.23.29.238]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 643047811245 for ; Fri, 18 Dec 2009 00:05:43 +0100 (CET) In-Reply-To: <1F9B86E7-F949-4CA5-A5EA-366766D1CF96@googlemail.com> X-Mailer: Apple Mail (2.1077) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55241 Archived-At: --===============0237924026== Content-Type: multipart/alternative; boundary=Apple-Mail-1--683898726 --Apple-Mail-1--683898726 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 17.12.2009 um 18:19 schrieb Wolfgang Schuster: >=20 > Am 17.12.2009 um 17:48 schrieb Andreas Harder: >=20 >> Hi all, >>=20 >> 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 =91before=3D,=92 is followed by an = environment with 'before=3D\blank=92 =85 >>=20 >> \setupdelimitedtext[blockquote][before=3D\blank,after=3D\blank] >=20 > \setupdelimitedtext[...][spacebefore=3Ddefault,spaceafter=3Ddefault] >=20 > you can now use before/after for different settings >=20 >> \setuphead[subject][after=3D,style=3D\bfa] >>=20 >> \starttext >> \subject{No space after the header} >>=20 >> \input tufte >=20 > interesting because it works in MkII when i add = \setupinterlinespace[...] to the preamble >=20 >> \subject{Space from the \tex{blockquote}-environment} % = \vskip-\lineheight >>=20 >> \startblockquote >> \input tufte >> \stopblockquote >>=20 >> \input tufte >>=20 >> \startblockquote >> \input tufte >> \stopblockquote >>=20 >> \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 >>=20 >> \stoptext >=20 > see http://www.ntg.nl/pipermail/ntg-context/2008/034443.html Hello Wolfgang, thanks for the hint, but I don=92t 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 =85? So I=92ve tried the following: \newsignal\SpaceAfterSection \def\TestSpace {\ifdim\lastskip=3D\SpaceAfterSection \blank[nowhite] \else \blank[2*big]\fi} \setuphead[section] [after=3D\SpaceAfterSection] \setuphead[subsection] [before=3D\TestSpace] \starttext % \showgrid \startcolumns \section{Section} \input tufte \par \subsection{Subsection} \input tufte \par \column \section{Section}=20 \subsection{Subsection} \input tufte \par \input tufte \par \stopcolumns \stoptext I appreciate your help! =20 Andreas PS. I use only MkIV= --Apple-Mail-1--683898726 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252

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 =91before=3D,=92 is followed by an environment with = 'before=3D\blank=92 =85

\setupdelimitedtext[blockquote][before=3D\blank,after=3D\bla= nk]

\setupdelimitedtext[...][spacebefore=3Ddefault,spa= ceafter=3Ddefault]

you can now use before/after for different = settings

\setuphead[subject][after=3D,style=3D\bfa]
<= blockquote type=3D"cite">
\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://w= ww.ntg.nl/pipermail/ntg-context/2008/034443.html

Hello Wolfgang,

thanks for the = hint, but I don=92t 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 =85? = So I=92ve tried the = following:

\newsignal\SpaceAfterSection

\def\TestSpace
  {\ifdim\lastskip= =3D\SpaceAfterSection \blank[nowhite]
   \else = \blank[2*big]\fi}

\setuphead[section]   =  [after=3D\SpaceAfterSection]
\setuphead[subsection] = [before=3D\TestSpace]

\starttext  % = \showgrid
\startcolumns
  \section{Section}<= /div>
  \input tufte = \par
  \subsection{Subsection}
  \= input tufte \par = \column
  \section{Section} 
 &nbs= p;\subsection{Subsection}
  \input tufte = \par
  \input tufte = \par
\stopcolumns
\stoptext

I= appreciate your help!  

= Andreas

PS. I use only = MkIV
= --Apple-Mail-1--683898726-- --===============0237924026== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0237924026==--