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

Right-to-left columns in Latin environment #5

Open
3 of 5 tasks
vafakhalighi opened this issue May 14, 2020 · 0 comments
Open
3 of 5 tasks

Right-to-left columns in Latin environment #5

vafakhalighi opened this issue May 14, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@vafakhalighi
Copy link
Contributor


Brief outline of the issue

Using columns inside a xepersian latin environment, the columns are in the wrong order (i.e., the first column is on the right-hand side of the page). In some cases, adding \LTRdblcol fixes this, but not always.

Specifically, when using makeidx's \printindex command, which prints a two-column index, in a latin environment, the columns are in the wrong order. The same problem occurs when using a multicols environment. In the case of makeidx, this can be resolved by using bidi's \LTRdblcol --- but this should not be necessary. Furthermore, \LTRdblcol does not fix the same issue in the multicols environment.

Check/indicate

  • Relevant to the bidi package
  • The bidi package issue tracker has been searched for similar issues?
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate
  • Links to <qa.parsilatex.com> discussion if appropriate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

\documentclass{article}

\usepackage{makeidx}
\usepackage{multicol}
\usepackage{xepersian}
\settextfont{IRXLotus}
\makeindex

\begin{document} 
\begin{latin}

\index{a}
\index{b}

% \LTRdblcol
\printindex

\begin{multicols}{2}
First column
\vfill\columnbreak
Second column
\end{multicols}

\end{latin}
\end{document}

Expected behavior

The first page should have an automatically generated two-column index, where the columns are populated left-to-right. The second page should have a two-column multicols environment, where the columns are populated left-to-right.

Instead, both are populated right-to-left. The \LTRdblcol command only solves the index, not the multicols environment.

Log and PDF files

xepersiancolumns.log

xepersiancolumns.pdf

Proposed Changes

It was indeed my expectation that any columns started in a latin environment would default to LTR. Using a single global option works fine for my document, where I only need one and the same column order throughout. I can see how switching between different column orders within the same document may actually be really confusing, but a RTL column order with LTR text (and vice versa) is, too. Perhaps it's best to leave the choice to the user, but emphasise that this choice exists --- e.g. \begin{...}[LTRcols] and \begin{...}[RTLcols] as additional, optional arguments for the latin and persian environments.

@vafakhalighi vafakhalighi added bug Something isn't working enhancement New feature or request labels May 14, 2020
@vafakhalighi vafakhalighi self-assigned this May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant