Re: [NTG-context] Contextual spacing
Am 18.12.2009 um 06:31 schrieb Wolfgang Schuster: Am 18.12.2009 um 00:05 schrieb Andreas Harder: 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: A signal is a (very small) vertical or horizontal skip, to use it you need \vskip or \hskip. \setuphead[section][after=\vskip\SpaceAfterSection] Ah, I see, that did the trick. Thanks you very much! Andreas ___ 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 ___
[NTG-context] Contextual spacing
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] \setuphead[subject][after=,style=\bfa] \starttext \subject{No space after the header} \input tufte \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 Thanks in advance Andreas ___ 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 ___
Re: [NTG-context] Contextual spacing
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 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 ___
Re: [NTG-context] Contextual spacing
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___ 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 ___
Re: [NTG-context] Contextual spacing
Am 18.12.2009 um 00:05 schrieb Andreas Harder: 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: A signal is a (very small) vertical or horizontal skip, to use it you need \vskip or \hskip. \setuphead[section][after=\vskip\SpaceAfterSection] 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 ___