From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43681 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrQ==?= =?utf-8?B?2KfZhdiv?= Newsgroups: gmane.comp.tex.context Subject: Re: Figures are misplaced with \pagedir TRT\bodydir TRT Date: Tue, 02 Sep 2008 18:11:57 -0600 Organization: Colorado State University Message-ID: References: <20080902183350.GA14798@khaled-laptop> <48BDB6FD.50404@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220403767 22208 80.91.229.12 (3 Sep 2008 01:02:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 01:02:47 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 03 03:03:41 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Kagma-0001Bm-KZ for gctc-ntg-context-518@m.gmane.org; Wed, 03 Sep 2008 03:03:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 449D91FE19; Wed, 3 Sep 2008 03:02:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21540-06-8; Wed, 3 Sep 2008 03:01:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C6571FEE5; Wed, 3 Sep 2008 02:40:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1D7E1FD4E for ; Wed, 3 Sep 2008 02:39:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16324-03-31 for ; Wed, 3 Sep 2008 02:37:15 +0200 (CEST) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id 4FD431FBFB for ; Wed, 3 Sep 2008 02:12:08 +0200 (CEST) Original-Received: (qmail 6151 invoked by uid 1006); 3 Sep 2008 00:12:07 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 0.381533 secs); 03 Sep 2008 00:12:07 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.5) by -v with SMTP; 3 Sep 2008 00:12:06 -0000 Original-Received: (qmail 13022 invoked from network); 3 Sep 2008 00:12:04 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (ishamid@75.104.82.252) by -v with SMTP; 3 Sep 2008 00:12:04 -0000 In-Reply-To: <48BDB6FD.50404@wxs.nl> User-Agent: Opera Mail/9.50 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43681 Archived-At: On Tue, 02 Sep 2008 15:58:21 -0600, Hans Hagen wrote: > Khaled Hosny wrote: >> Figures are shifted to the right (the left edge is where right edge >> should) when I set \pagedir TRT\bodydir TRT. > > \pagedir TRT \bodydir TRT > > \setupheadertexts[from left to right] > > \starttext > > \input tufte > > \placefigure > [here,force] > [fig:Mill] > {Test.} > {\externalfigure[mill]} > > \input tufte > > \stoptext > > i'm wondering ... why do we need pagedir and bodydir? Try this one, and play with commenting lines 1 or 2: \pagedir TRT \bodydir TRT \pardir TRT \textdir TRT \setupheadertexts[from left to right] \starttext \input tufte\footnote{\input ward } \placefigure [here,force] [fig:Mill] {Test.} {\externalfigure[mill]} \input tufte\footnote{\input ward } \stoptext As to the original problem: \textdir TRT \input epsf \epsfbox{fig.eps}\input knuth \bye I don't think this is an omega/aleph/luatex bug, but rather that epsf.tex does not take the global direction change into account. It seems that, for any figure mechanism in TeX, the coordinates of the figure need to be vertically reversed when \pagedir TRT \bodydir TRT in effect. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________