latex3 / babel

The multilingual framework to localize LaTeX, LuaLaTeX and XeLaTeX
https://latex3.github.io/babel/
LaTeX Project Public License v1.3c
130 stars 35 forks source link

Difference in output in case of adding tikz package (graphics layout) #152

Closed seloumi closed 2 years ago

seloumi commented 2 years ago

For this pgfpicture drawing with tikz package the result is fine but without it (just with pgf pkg) we obtain an incorrect result.

\documentclass{book}
\usepackage[showframe]{geometry}
\usepackage{pgf}
%\usepackage{tikz} % uncomment this
\usepackage[bidi=basic,layout=graphics]{babel}
\babelprovide[import,main]{arabic}
\babelfont{rm}{Amiri}

\begin{document}

A{\begin{pgfpicture}
\color{red}
\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{10cm}{2cm}}
\pgfusepath{stroke}
\end{pgfpicture}}B%

\end{document}

image