[luatex] luabidi package

وفا خلیقی vafakh9 at gmail.com
Thu Apr 2 13:52:08 CEST 2009


I have written an initial version of the package, the package is located at

You can get the files by the command: svn checkout *http*://
luabidi.googlecode.com/svn/trunk/ luabidi-read-only

only test.tex is the example file. Please report issues, suggestions, ideas
at the google page.

What has been done so far:

1- The main direction of the document is LTR, but \setRTLmain swtich the
main direction of the document to RTL.

2- Paragraph directions: CSs \setRTL and setLTR are provided that make the
directions of the paragraphs RTL and LTR. Also two environments LTR and RTL
are provided for RTL and LTR paragraphs.

Note: in addition to \setRTL and \setLTR, \unsetRTL and \unsetLTR are also

3- By default we have LTR (Persian) maths but if you would like to have RTL
maths, an option namely arabmaths is provided i.e.

4- Footnotes:

a) In the default mode, where \setRTLmain is not declared there is only one
footnote and the footnote rule is in the left hand side.

b) If the main direction is RTL via \setRTLmain, then we have two footnotes,
\footnote and \Footnote for RTL and LTR footnotes respectively. The footnote
rule always appear in the right hand side.

c) there is an option "textwidthfootnoterule" which makes the footnote rule
as wide as the textwidth.

d) (Incomplete): also "autofootnoterule" exist which is for Persian.

5- by default lists are fine, no need to write macros.

What will be done next:
1: Lamport's tabular: RTL inside RTL paragraph and LTR otherwise, also needs
to provide a CS that makes tabular RTL and LTR globally.

2. Check other things and packages and provide extra macros if required to
take care of bidirectional matters but with LuaTeX's bidiirectional
commands, things are mostly done correctly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/luatex/attachments/20090402/0d2fc56b/attachment-0001.html 

More information about the luatex mailing list