我有一个 RTL 文档的示例,我需要用tikzpicture
环境\tikzset{every picture/.style={xscale=-1}}
来还原 x 系统坐标,但是使用pgfpicture
env 我找不到如何对 x 坐标进行全局反转
% lualatex
\documentclass{article}
\usepackage{tikz}
\usepackage[bidi=basic,layout=graphics]{babel}
\babelprovide[import,main]{arabic}
\tikzset{every picture/.style={xscale=-1}}
\begin{document}
before
\begin{tikzpicture}
\pgfpathmoveto{\pgfpoint{0cm}{0cm}}
\pgfpathlineto{\pgfpoint{3cm}{1cm}}
\pgfusepath{stroke}
\end{tikzpicture}
after
\bigskip
before
\begin{pgfpicture}
%\pgftransformxscale{-1}
\pgfpathmoveto{\pgfpoint{0cm}{0cm}}
\pgfpathlineto{\pgfpoint{3cm}{1cm}}
\pgfusepath{stroke}
\end{pgfpicture}
after
\end{document}