From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80672 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Alternative width of figures in different documents (problem with modes?) Date: Tue, 5 Feb 2013 14:15:26 +0100 Message-ID: References: <51110023.8010000@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1360070133 10927 80.91.229.3 (5 Feb 2013 13:15:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 13:15:33 +0000 (UTC) To: hajtmar@gyza.cz, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 05 14:15:54 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 1U2iNK-0000E9-1p for gctc-ntg-context-518@m.gmane.org; Tue, 05 Feb 2013 14:15:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C3C410234; Tue, 5 Feb 2013 14:15:31 +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 llmSqM0pahx4; Tue, 5 Feb 2013 14:15:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D8C1510224; Tue, 5 Feb 2013 14:15:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5607310224 for ; Tue, 5 Feb 2013 14:15:29 +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 PIUkTjJpd96a for ; Tue, 5 Feb 2013 14:15:28 +0100 (CET) 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 8FD9E101FC for ; Tue, 5 Feb 2013 14:15:28 +0100 (CET) Original-Received: from mail-bk0-f45.google.com (mail-bk0-f45.google.com [209.85.214.45]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r15DFR1T006966 for ; Tue, 5 Feb 2013 14:15:27 +0100 Original-Received: by mail-bk0-f45.google.com with SMTP id i18so63870bkv.18 for ; Tue, 05 Feb 2013 05:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=gYUK5JUzAXag/yoP7bqiSSGffmlMoroDztQFY7rAlQI=; b=vqFhQQqX0ny2RICgTymHHjBDNbXciJrs3cjYGSTKaTVXtF4FxJ4/sq4MsPmBSgzBMQ EB/nOkxr1X5clJChKJJWDUwa1NFwbxmWlp4whC5XEZZ2Ljl3xLIQrtpW3yZajqyDa+pa hDxVfAy4KZJAA5RA8YdmVq8oDUhXreFSdMigxLoUNiEaVheKbPZRUf6wWD8pBL4UhkE7 6GCcysvWxZFJhFvj3lHR7dmj4OZE1pcqsy9JgVRkk2yXv4S9ClFMcXMqUv423/B2hbE2 ofyh2K+jH58tUzYJxZ/gKUKB5E/nCOtQavxj8TAhsJ1+yxMNi+jtS5u7b+YfGUSbb/cf 14dg== X-Received: by 10.204.145.195 with SMTP id e3mr6662414bkv.27.1360070127398; Tue, 05 Feb 2013 05:15:27 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe4528.pool.mediaWays.net. [77.190.69.40]) by mx.google.com with ESMTPS id o9sm6493953bko.15.2013.02.05.05.15.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Feb 2013 05:15:26 -0800 (PST) In-Reply-To: <51110023.8010000@gyza.cz> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TIUBfrEc - 13bf067b429e - 20130205 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80672 Archived-At: Am 05.02.2013 um 13:50 schrieb Jaroslav Hajtmar : > Hello ConTeXist. > = > I would like use modes alternative to change of image dimensions in diffe= rent documents (presentation or print version). > Compilation in ConTeXt TeXLive 2012 version will compile without error, b= ut without visual effect. Compilation with the standalone version fails. Wh= at is problem or eventually. how to solve my problem another way. The \doifmodeelse command isn=92t expandable and can=92t be used in this fo= rm. > Thanks > Jaroslav Hajtmar > = > Here is my minimal example: > = > \enablemode[presentation] > = > \def\alternativewidth#1#2{ > \doifmodeelse{presentation} > {width=3D#1} > {width=3D#2} > } > = > = > \useexternalfigure[COW][cow.pdf][height=3D5cm, \alternativewidth{3cm}{5cm= }] \startmode[presentation] \useexternalfigure[COW][cow.pdf][height=3D5cm,width=3D3cm] \stopmode \startnotemode[presentation] \useexternalfigure[COW][cow.pdf][height=3D5cm,width=3D5cm] \stopnotmode or \startmode[presentation] \definemeasure[alternativewidth][3cm] \stopmode \startnotmode[presentation] \definemeasure[alternativewidth][5cm] \stopnotmode \useexternalfigure[COW][cow.pdf][height=3D5cm,width=3D\measure{alternativew= idth}] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________