kvafa / bidi

Bidirectional typesetting in plain TeX and LaTeX, using XeTeX
https://ctan.org/pkg/bidi
6 stars 1 forks source link

Lineno render incorrectly with bidi #40

Open seloumi opened 6 months ago

seloumi commented 6 months ago

Brief outline of the issue

Adding bidi package to 2-column paper with line numbers on the sides using the lineno package with switch option produce line number to appears on the left side of the right column.

https://tex.stackexchange.com/q/712502/54817

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass[11pt,twocolumn]{article}

\usepackage[switch,mathlines]{lineno}

\usepackage{bidi}
\usepackage{lipsum}

\linenumbers

\begin{document}
\lipsum
\end{document}

Expected behavior

image

Log and PDF files

test5.pdf test5.log