-
Notifications
You must be signed in to change notification settings - Fork 4
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
Indentation Lines of algpseudocodex does not work in RTL cases #26
Comments
The package always starts drawing the indentation lines at the beginning of the line. For right-to-left code, it would need to start at the end of the line instead. I don't think there is an easy fix for this; it would require an alternative logic to handle this case. |
Hey Christian, Thanks for your attention and reply. I don't think that it would be too difficult as we already have a case that is working. If you look at the link I provided, you will notice that in case that I use |
Yes, there are some changes required to enable the indent lines and some other features. I have not considered the RTL case at all when doing this, so there are some things that break in this case. It's thus not fully compatible, unfortunately. You are right that it would probably not be too hard to fix the order of text. However, getting the indent lines on the correct side would require some fundamental changes to the logic. In particular, it would require to handle the RTL case specifically and distinguish the two cases in several places. While this could certainly be done, it would require a fair amount of work. |
I am trying to create a template for algorithms in Persian. I have a piece of code given on this stack exchange post, where I am using algpseudocode along with algorithm package. This setup works nicely; however, I would also like to have indentation lines in my algorithms so I tried to use algpseudocodex with noEnd option, which has this feature. Although, this nicely works for algorithms in English, it is totally messed up in Persian. How can I fix this?
The text was updated successfully, but these errors were encountered: