@UlrikeFischer
下面演示了withMWE
的尴尬行为:LuaLaTeX
bidi=basic
Tikz
MWE 1 - 正常行为
\documentclass[tikz,margin=5cm]{standalone}
\usepackage{tikz}
%:Language
\usepackage[nil]{babel}
\babelprovide[import,main]{hebrew}
\babelprovide[import=en]{english}
\begin{document}
\begin{tikzpicture}[]
\node[
draw=red,
minimum size=1cm,
]
(a) at(0,0){A};
\node[
draw=red,
minimum size=1cm,
anchor=south east,
]
at (a.north west) {B};
\end{tikzpicture}
\end{document}
其结果如下:
当我添加到 babel 选项时,bidi=basic
我得到了这个:
MWE 2——行为尴尬
\documentclass[tikz,margin=5cm]{standalone}
\usepackage{tikz}
%:Language
\usepackage[nil, bidi=basic]{babel}
\babelprovide[import,main]{hebrew}
\babelprovide[import=en]{english}
\begin{document}
\begin{tikzpicture}[]
\node[
draw=red,
minimum size=1cm,
]
(a) at(0,0){A};
\node[
draw=red,
minimum size=1cm,
anchor=south east,
]
at (a.north west) {B};
\end{tikzpicture}
\end{document}