From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80673 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: Alternative width of figures in different documents (problem with modes?) Date: Tue, 05 Feb 2013 14:20:53 +0100 Message-ID: <51110735.2050507@gyza.cz> References: <51110023.8010000@gyza.cz> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1360070469 14418 80.91.229.3 (5 Feb 2013 13:21:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 13:21:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 05 14:21:28 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 1U2iSk-0004L7-E3 for gctc-ntg-context-518@m.gmane.org; Tue, 05 Feb 2013 14:21:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB8BE10239; Tue, 5 Feb 2013 14:21:07 +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 MEGMJWowhFJ7; Tue, 5 Feb 2013 14:21:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3CDB910227; Tue, 5 Feb 2013 14:21:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9DA810227 for ; Tue, 5 Feb 2013 14:21:04 +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 6JCGIb36pTU4 for ; Tue, 5 Feb 2013 14:21:04 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E26A6101FC for ; Tue, 5 Feb 2013 14:21:03 +0100 (CET) Original-Received: from h1.cmg1.smtp.forpsi.com (h1.cmg1.smtp.forpsi.com [81.2.195.162]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r15DL274024920 for ; Tue, 5 Feb 2013 14:21:03 +0100 Original-Received: from [192.168.1.194] ([188.116.90.238]) by cmg1.smtp.forpsi.com with bizsmtp id wdM11k00658ZT5Y01dM2gN; Tue, 05 Feb 2013 14:21:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.162; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VIUBl2N3 - 23c3a5311641 - 20130205 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:80673 Archived-At: Thanx Wolfgang. I might have guessed :-). Anyway, thanks for inspiring solutions ... Jaroslav Hajtmar Dne 5.2.2013 14:15, Wolfgang Schuster napsal(a): > Am 05.02.2013 um 13:50 schrieb Jaroslav Hajtmar : > >> Hello ConTeXist. >> >> I would like use modes alternative to change of image dimensions in diff= erent documents (presentation or print version). >> Compilation in ConTeXt TeXLive 2012 version will compile without error, = but without visual effect. Compilation with the standalone version fails. W= hat is problem or eventually. how to solve my problem another way. > The \doifmodeelse command isn=92t expandable and can=92t be used in this = form. > >> 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}{5c= m}] > \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{alternativ= ewidth}] > > 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 ___________________________________________________________________________= ________