13.07.2013 Views

Hagen - Pragma ADE

Hagen - Pragma ADE

Hagen - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

However, when we go the other way, we automatically get digits converted to arabic.<br />

\setupmathematics[align=r2l]<br />

\startformula<br />

\sqrt{ف^2\over 4ب} \eqno(1)<br />

\stopformula<br />

\startformula<br />

5 < 6 > 4<br />

\stopformula<br />

\startformula<br />

5 \leq 6 \geq 7<br />

\stopformula<br />

2ف<br />

ب4<br />

√<br />

4 > 6 < 5<br />

7 ≥ 6 ≤ 5<br />

You don’t have to worry about how the font is set up, but not that much is needed because<br />

ConT E Xt does it for you and the Xits typescripts carries the right definitions. Just to give<br />

you an idea, we show a feature definition: The magic is in the rtlm feature combined<br />

with locl.<br />

\definefontfeature<br />

[mathematics-r2l]<br />

[mathematics]<br />

[language=ara,<br />

rtlm=yes,<br />

locl=yes]<br />

Some symbols are mirrored too:<br />

\setupmathematics[align=r2l]<br />

\startformula<br />

\sum^\infty_{س=0} س^2 \eqno(2)<br />

\stopformula<br />

\setupmathematics[align=r2l]<br />

2س<br />

∞<br />

∑<br />

0=<br />

س<br />

) 1(<br />

) 2(<br />

119<br />

Math

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!