ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس سماوي حامد" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Figures are misplaced with \pagedir TRT\bodydir TRT
Date: Tue, 02 Sep 2008 18:11:57 -0600	[thread overview]
Message-ID: <op.ugvph7m0fkrasx@your-b27fb1c401> (raw)
In-Reply-To: <48BDB6FD.50404@wxs.nl>

On Tue, 02 Sep 2008 15:58:21 -0600, Hans Hagen <pragma@wxs.nl> 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
___________________________________________________________________________________


  parent reply	other threads:[~2008-09-03  0:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 18:33 Khaled Hosny
2008-09-02 20:50 ` Khaled Hosny
2008-09-02 21:34   ` Khaled Hosny
2008-09-02 21:45     ` Hans Hagen
2008-09-03  6:54   ` Hans Hagen
2008-09-02 21:58 ` Hans Hagen
2008-09-02 22:17   ` Idris Samawi Hamid ادريس سماوي حامد
2008-09-03  6:52     ` Hans Hagen
2008-09-03  6:55     ` Hans Hagen
2008-09-03  0:11   ` Idris Samawi Hamid ادريس سماوي حامد [this message]
2008-09-03  1:56     ` Khaled Hosny
2008-11-27  1:31 ` Khaled Hosny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.ugvph7m0fkrasx@your-b27fb1c401 \
    --to=ishamid@colostate.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).