From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74391 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Rotation fails in the latest beta Date: Thu, 9 Feb 2012 17:34:39 +0100 Message-ID: References: <20120209155315.75498f15@homerow> <410C10B2-24A8-4639-9BFB-3B03D85A1BFB@googlemail.com> <20120209170935.06a5f574@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328805300 8275 80.91.229.3 (9 Feb 2012 16:35:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2012 16:35:00 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 09 17:34:59 2012 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 1RvWxW-000497-Bd for gctc-ntg-context-518@m.gmane.org; Thu, 09 Feb 2012 17:34:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F485CB271; Thu, 9 Feb 2012 17:34: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 3rnoBH9tC2EV; Thu, 9 Feb 2012 17:34:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76F21CB269; Thu, 9 Feb 2012 17:34:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8ADBCB269 for ; Thu, 9 Feb 2012 17:34:50 +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 EmySdn-GnbGA for ; Thu, 9 Feb 2012 17:34:45 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 252BFCB265 for ; Thu, 9 Feb 2012 17:34:45 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q19GYija005316 for ; Thu, 9 Feb 2012 17:34:44 +0100 Original-Received: by eekc13 with SMTP id c13so744352eek.14 for ; Thu, 09 Feb 2012 08:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=CZYX0zIMatszWT6eEJ2fFYF1gblqFNNYVIDQJh1XKaw=; b=XlR1J+l4dt5nrOgNwLLcOQHAoSgELu5eGu3InYnR1kRPzowgUOTcbWSC4PeyaeoVT+ 964fLC4nJv7dDVgyf51mAlrmNOJw94uFg7W416ZC0qfcdJ/fU/nNvMSpitW5f0jmvtOZ 6gBYanJyaRQBrdGsXXNpTIp+LvhVoSLa27qEs= Original-Received: by 10.213.26.20 with SMTP id b20mr520846ebc.19.1328805284295; Thu, 09 Feb 2012 08:34:44 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB5CB.dip.t-dialin.net. [87.175.181.203]) by mx.google.com with ESMTPS id e12sm11330942eea.5.2012.02.09.08.34.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Feb 2012 08:34:43 -0800 (PST) In-Reply-To: <20120209170935.06a5f574@homerow> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; 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: 03GvQyIIy - f920d868910a - 20120209 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74391 Archived-At: Am 09.02.2012 um 17:09 schrieb Marco: > On 2012-02-09 Wolfgang Schuster wrote: > >> pack-rul.mkiv: >> >> \def\pack_framed_start_orientation >> - {\ifcase\p_framed_orientation\else >> + {\ifcase\p_framed_orientation > > Thanks for the quick fix. > > Why do orientation and rotate produce different results? Example: > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > \startbuffer [te] > \starttext > \framed[width=5cm,height=2cm,rulethickness=3pt,align=right]{\tfd Foo} > \stoptext > \stopbuffer > > \starttext > \startplacefigure [title=Orientation] > \externalfigure [te] [orientation=90, frame=on] > \stopplacefigure > > \startplacefigure [title=Rotation] > \rotate[rotation=90]{\externalfigure [te]} > \stopplacefigure > \stoptext > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I guess it comes from this part in pack-rul.mkiv, when you rotate the box by 90 or 270 degrees context switches the width and height of the framed box (which is also used by \externalfigure) but as you can see he does this first in \pack_framed_start_orientation and a second time in \pack_framed_stop_orientation_odd. \def\pack_framed_start_orientation {\ifcase\p_framed_orientation \let\pack_framed_stop_orientation\relax \else \scratchcounter\p_framed_orientation % weird .. why \divide\scratchcounter\plustwo \ifodd\scratchcounter \swapmacros\framedwidth\framedheight \swapmacros\localwidth\localheight \swapdimens\d_framed_height\d_framed_width \let\pack_framed_stop_orientation\pack_framed_stop_orientation_odd \else \let\pack_framed_stop_orientation\pack_framed_stop_orientation_even \fi \fi} % why are the dimensions swapped again, this was already done above \def\pack_framed_stop_orientation_odd {\swapmacros\framedwidth\framedheight \swapmacros\localwidth\localheight \swapdimens\d_framed_height\d_framed_width \pack_framed_stop_orientation_even} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________