From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43850 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: ifdim ... or ... else ... Date: Wed, 10 Sep 2008 14:12:59 +0200 Message-ID: <1642D804-7AB3-420C-9FC9-BAB2A0E2C1F6@uni-bonn.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221048901 24364 80.91.229.12 (10 Sep 2008 12:15:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 12:15:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 10 14:15:56 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KdObt-00033G-03 for gctc-ntg-context-518@m.gmane.org; Wed, 10 Sep 2008 14:15:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D25661FEA7; Wed, 10 Sep 2008 14:14:46 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10343-01-4; Wed, 10 Sep 2008 14:14:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFED31FE35; Wed, 10 Sep 2008 14:14:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECA0B1FE1E for ; Wed, 10 Sep 2008 14:13:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09031-03-3 for ; Wed, 10 Sep 2008 14:13:08 +0200 (CEST) Original-Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by ronja.ntg.nl (Postfix) with ESMTP id 2FFBE1FE35 for ; Wed, 10 Sep 2008 14:13:08 +0200 (CEST) Original-Received: from fwd06.aul.t-online.de by mailout10.sul.t-online.de with smtp id 1KdOZH-0007Gq-03; Wed, 10 Sep 2008 14:13:07 +0200 Original-Received: from [192.168.0.2] (V8X5JMZbrh4lyFkRmWVAzYdO1MhUdve8BoEm0pE8PtG572wiUiM4bG16dypVKZZgQT@[87.178.78.1]) by fwd06.aul.t-online.de with esmtp id 1KdOZ9-2JdIrg0; Wed, 10 Sep 2008 14:12:59 +0200 In-Reply-To: X-Mailer: Apple Mail (2.926) X-ID: V8X5JMZbrh4lyFkRmWVAzYdO1MhUdve8BoEm0pE8PtG572wiUiM4bG16dypVKZZgQT@t-dialin.net X-TOI-MSGID: 234d9bd2-f327-4854-8f23-ad47cd8d8a8c X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43850 Archived-At: On Sep 10, 2008, at 1:49 PM, Steffen Wolfrum wrote: > Hi, > > > I'd like to change the phrase > > "if lastskip equals \EinsSignal set vskip to 0pt else ..." > > to > > "if lastskip equals \EinsSignal set vskip to 0pt else if lastskip > equals \\ZweiSignal set vskip to -2pt else ... " > > > in the following code ... > > \newsignal\ZweiSignal > \def\EbeneDreibefore {\ifdim\lastskip=\EinsSignal \vskip-0pt \else > \blank[20pt]\fi} > \setuphead[EbeneDrei][...,before=\EbeneDreibefore,...] > > > Some native (tex)speaker can help me translating? > > Steffen I'm not a native texspeaker, but this should wo what you want: \def\EbeneDreibefore% {\ifdim\lastskip=\EinsSignal \vskip-0pt% \else\ifdim\lastskip=\ZweiSignal \vskip-2pt% \else \blank[20pt]% \fi% \fi} You just nest the two \ifdim tests. Thomas ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________