From 2ddf2257dcba7554606ea96b259e81842c5bcbb3 Mon Sep 17 00:00:00 2001
From: Václav Haisman <vhaisman@gmail.com>
Date: Sun, 18 Mar 2018 04:20:57 +0100
Subject: Provide `bidi` package's option using `\PassOptionsToPackage` 
 (#4357).

* Provide `bidi` package's option using `\PassOptionsToPackage`.  This avoid clash when   `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined.

* Adjust test suite for LaTeX template change.
---
 test/writers-lang-and-dir.latex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'test/writers-lang-and-dir.latex')

diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex
index 97c34010c..9a31a7df8 100644
--- a/test/writers-lang-and-dir.latex
+++ b/test/writers-lang-and-dir.latex
@@ -74,8 +74,8 @@
 \fi
 \ifxetex
   % load bidi as late as possible as it modifies e.g. graphicx
-    \usepackage{bidi}
-  \fi
+  \usepackage{bidi}
+\fi
 \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
   \TeXXeTstate=1
   \newcommand{\RL}[1]{\beginR #1\endR}
-- 
cgit v1.2.3

