From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80670 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Alternative width of figures in different documents (problem with modes?) Date: Tue, 05 Feb 2013 13:50:43 +0100 Message-ID: <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="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360068665 29656 80.91.229.3 (5 Feb 2013 12:51:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 12:51:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 05 13:51:26 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 1U2hzh-00082Y-D3 for gctc-ntg-context-518@m.gmane.org; Tue, 05 Feb 2013 13:51:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BCC7B1024A; Tue, 5 Feb 2013 13:51:05 +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 BAp6yVJUZFTH; Tue, 5 Feb 2013 13:51:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A7E9C10224; Tue, 5 Feb 2013 13:51:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B14A110224 for ; Tue, 5 Feb 2013 13:50:58 +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 NkaFAqVBenUQ for ; Tue, 5 Feb 2013 13:50:54 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 38C94101FC for ; Tue, 5 Feb 2013 13:50:54 +0100 (CET) Original-Received: from h1.cmg2.smtp.forpsi.com (h1.cmg2.smtp.forpsi.com [81.2.195.188]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r15Coq7S024778 for ; Tue, 5 Feb 2013 13:50:53 +0100 Original-Received: from [192.168.1.194] ([188.116.90.238]) by cmg2.smtp.forpsi.com with bizsmtp id wcqr1k00A58ZT5Y01cqrS8; Tue, 05 Feb 2013 13:50:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 X-Bayes-Prob: 0.0002 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.188; 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: 03IUAORbx - fe2758f0a757 - 20130205 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:80670 Archived-At: Hello ConTeXist. I would like use modes alternative to change of image dimensions in different 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. What is problem or eventually. how to solve my problem another way. Thanks Jaroslav Hajtmar Here is my minimal example: \enablemode[presentation] \def\alternativewidth#1#2{ \doifmodeelse{presentation} {width=#1} {width=#2} } \useexternalfigure[COW][cow.pdf][height=5cm, \alternativewidth{3cm}{5cm}] \starttext \input tufte \placefigure[here,force][cowref]{Caption}{\externalfigure[COW]} \input tufte \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________