Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect order for side by side figures/ tables in list of figures / list of tables with RTL document #19

Open
2 tasks done
seloumi opened this issue Aug 14, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@seloumi
Copy link

seloumi commented Aug 14, 2020

Brief outline of the issue

Order of figures (tables) appears in reverse order for side by side figures (tables) in LoF and LoT

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass{report} 
\usepackage{caption} 
\usepackage{fontspec} 
\usepackage[rldocument] {bidi}
\setmainfont[Script=Arabic] {Amiri}

\begin{document} 

\listoffigures
\begin{figure} 
\begin{minipage} {.48\textwidth} 
\centering
\rule{4cm} {4cm} 
\captionof{figure} {right} 
\end{minipage} 
\hfill
\begin{minipage} {.48\textwidth} 
\centering
\rule{4cm} {4cm} 
\captionof{figure} {left} 
\end{minipage} 
\end{figure} 

\end{document}

Contents of LOF file

\contentsline {figure}{\numberline {2}{\ignorespaces left\relax }}{1}%
\contentsline {figure}{\numberline {1}{\ignorespaces right\relax }}{1}%

If we add \beginL at the begenning of figure environment pictures inside figure env appears from left to right and order in LoF is correct.

Log and PDF files

test.log
test.pdf

@seloumi seloumi added the bug Something isn't working label Aug 14, 2020
@vafa-khalighi
Copy link

vafa-khalighi commented Feb 2, 2022

I sincerely apologize for being very slow and get to this issue quite late. This is not an issue of the bidi package but how the TeX--XeT algorithm behaves in the e-TeX engine which is also shared by XeTeX. You need to fool TeX. For instance, see this solution.

Please also note that I had to move the GitHub repository to a new place. The new repository can be found here. If you have reported any issues in the old repository, there is no need to re-report it in the new one but for the new issues, please kindly use the new repository.

There is also a Discussions section on the new repository which you can use to ask questions that need my attention. The announcements for future versions of the bidi package also will appear in Discussions under Announcements.

Finally, if you ever need to contact me directly, you can find my email address in the PDF documentation on the second title page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants