ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* RTL problem with figure numbers
@ 2016-01-03 19:46 Mohammad Hossein Bateni
  2016-01-03 22:27 ` Hans Hagen
  2016-01-09 16:17 ` Wolfgang Schuster
  0 siblings, 2 replies; 10+ messages in thread
From: Mohammad Hossein Bateni @ 2016-01-03 19:46 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1387 bytes --]

Hi,

Again this has been partly discussed on the list and solutions were already
there but I didn't see anyone mention the issue with figures.

In the following MWE we have 20 pages of a simple text with a section, a
footnote and a figure on each page.  The page numbers and footnote numbers
are fine.  Section numbers need some care to appear correctly.  I couldn't
figure out a similar mechanism for figure numbers, though.  The example
does not use Indic numbers, which does not have any effect on the problem.


\setupdirections[bidi=global,method=two]
\setupalign[r2l]

%% If we don't provide the numbercommand, we'll see reverse numbering
starting from 10.
\setuphead[chapter,title,section,subject][numbercommand=\righttoleft]
%% The following does not accept any numbercommand but it has
numberconversion.
%% As a result figure numbers are shown in reverse.
\setupcaptions[numberstopper={:}]
%% Footnotes are fine and accept conversion.
%% Page numbers are also okay.

\starttext

\dorecurse{20}{

\section{Test}
This is a very simple text.
And we have a footnote\footnote{Footnote text}.

\placefigure
[][]
{Test figure.}
{\centerline{FIGURE BODY}}

\page
}

\stoptext


I use TeXLive 2015 on Mac OS X,
         CONTEXT 2015.05.18 12:26, and
         LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238).

Thanks a lot!
—MHB

[-- Attachment #1.2: Type: text/html, Size: 1890 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-01-18 18:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-03 19:46 RTL problem with figure numbers Mohammad Hossein Bateni
2016-01-03 22:27 ` Hans Hagen
2016-01-04  4:56   ` Mohammad Hossein Bateni
2016-01-09  2:37     ` Mohammad Hossein Bateni
2016-01-09 13:09       ` Hans Hagen
2016-01-09 16:17 ` Wolfgang Schuster
2016-01-18  6:01   ` Mohammad Hossein Bateni
2016-01-18  6:12     ` Mohammad Hossein Bateni
2016-01-18 10:13       ` Hans Hagen
2016-01-18 18:24         ` Mohammad Hossein Bateni

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).