From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82109 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Heading in setuplayout from a variable Date: Fri, 26 Apr 2013 13:27:06 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366975633 26010 80.91.229.3 (26 Apr 2013 11:27:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 11:27:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 26 13:27:17 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVgo9-0006R9-0I for gctc-ntg-context-518@m.gmane.org; Fri, 26 Apr 2013 13:27:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E30F7101E0; Fri, 26 Apr 2013 13:27:11 +0200 (CEST) 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 Oxm1Pq4dVolK; Fri, 26 Apr 2013 13:27:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1A7F4101E4; Fri, 26 Apr 2013 13:27:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F055B101E4 for ; Fri, 26 Apr 2013 13:27:08 +0200 (CEST) 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 FwYzUnMkcDWC for ; Fri, 26 Apr 2013 13:27:08 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 1FBA0101E0 for ; Fri, 26 Apr 2013 13:27:07 +0200 (CEST) Original-Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3QBR7ZN011032 for ; Fri, 26 Apr 2013 13:27:07 +0200 Original-Received: by mail-wg0-f48.google.com with SMTP id f11so2026957wgh.15 for ; Fri, 26 Apr 2013 04:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=9+fEDBHqeNjZmBQDpr0gtMTkvFq3Kfmb+tGVSDEr0lk=; b=eUEKxaWTBdnkflsrSxBDpMx+gCFr7nLp+rZTD62t7e0v7obIneMKuh+q6Kv8CR7zWQ QZRYIWbAb0lPDtDqfpPkdzRSZirJsO+nZZyEu0CB86T0KLmOqlrWl/EmdukyEcsrjEHb cxWHyvBqUpiF2+dc8y40NwmqP5EiCyheaWmINoRdVflYFdKZf74RUvXk3uGzf43rlLIE Zf2V6epavw7jkq8fyMaamrApghrRgL+XTSDzybKzxSPjmBSE0U1ImbmY8ZMeHq4em4UX Lj+LAXoEoCfrIYOQSGT4tbbLDA/YHKeKnozNywwfAqC72CL1v1M73S/uvoz+Jf8UpNXQ B8jw== X-Received: by 10.194.143.50 with SMTP id sb18mr81390764wjb.44.1366975627042; Fri, 26 Apr 2013 04:27:07 -0700 (PDT) Original-Received: by 10.194.109.233 with HTTP; Fri, 26 Apr 2013 04:27:06 -0700 (PDT) X-Bayes-Prob: 0.8785 (Score 2, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::230; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJszr7ub - 11179763bd25 - 20130426 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82109 Archived-At: It is a long time since I used ConTeXt. I am starting again. I have the following code: \setvariables[meta][type=cecil] \if\getvariable{meta}{type}=cecil \setvariables[meta][ name={Cecil Westerhof}, ] \setvariables[layout][ header=0mm, ] \fi But that does not work. For the conditional I also tried: \ifx\getvariable{meta}{type}\cecil But that does not work either. What is the correct way to define the comparison? -- Cecil Westerhof ___________________________________________________________________________________ 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 ___________________________________________________________________________________