From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54663 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \vspace Date: Mon, 23 Nov 2009 11:21:47 +0100 Message-ID: <4B0A623B.9020607@wxs.nl> References: <01760E86-9173-44D7-B117-49DB4ECA2725@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258971751 7883 80.91.229.12 (23 Nov 2009 10:22:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 10:22:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 23 11:22:24 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 1NCW3c-0004v0-7y for gctc-ntg-context-518@m.gmane.org; Mon, 23 Nov 2009 11:22:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67161C9B41; Mon, 23 Nov 2009 11:19:26 +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 lx5OXb9xoRCQ; Mon, 23 Nov 2009 11:19:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA410C9AF9; Mon, 23 Nov 2009 11:19:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3549C9AE3 for ; Mon, 23 Nov 2009 11:19:13 +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 mMem8A8ZUHeP for ; Mon, 23 Nov 2009 11:19:09 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 02B5EC9AC7 for ; Mon, 23 Nov 2009 11:19:08 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 6310-1713362 for ; Mon, 23 Nov 2009 11:20:52 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <01760E86-9173-44D7-B117-49DB4ECA2725@googlemail.com> X-Authenticated-User: hagen@controller-9 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:54663 Archived-At: Wolfgang Schuster wrote: > Hi Hans, > > can you add a \vspace command which behaves like \hspace but for vertical mode, > there are some cases where \blank is not so well suited (i know the \??vs namespace > is already used by \blank) > > \def\definevspace > {\dotripleempty\dodefinevspace} > > \def\dodefinevspace[#1][#2][#3]% > {\ifthirdargument > \setvalue{\??vs#1:#2}{#3}% > \else > \setvalue{\??vs:#1}{#2}% > \fi} > > \unexpanded\def\vspace > {\dodoubleempty\dohspace} hm, untested ... ^^^^^^^^^ > \def\dovspace[#1][#2]% > {\ifsecondargument > \dodovspace[#1][#2]% > \else\iffirstargument > \vspace[][#1]% > \else > \vspace[][\s!default]% > \fi\fi} > > \def\dodovspace[#1][#2]% > {\vskip\vspaceamount{#1}{#2}} > > \def\vspaceamount#1#2% > {\executeifdefined{\??vs#1:#2}{\executeifdefined{\??vs:#2}\zeropoint}} i'm always a bit relucate to let users mess with vertical spacing ... anyhow, in \hspace we clean up preceding space so vspace should behave the same i.e. there should be a \removelastskip before the vskip \def\dodovspace[#1][#2]% {\par \ifvmode \removelastskip \vskip\vspaceamount{#1}{#2}\relax \fi} i'll add it but we should not encourage too much in using it, that is, i'm *not* going to look into spacing related bug reports that use this command Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________