در کد زیر زمانی که از محیط tikzpicture
استفاده میشود مشکلی وجود ندارد و رنگ پشت زمینه با کمک دستور \fill
پر میشود اما زمانی که همین کد در محیط bidi@tikzpicture
استفاده میشود عمل نمیکند!!
پینوشت:
۱- برای رفع مشکلی از بسته زیباپوستر به محیط bidi@tikzpicture
نیاز دارم و نمیتوانم از محیط tikzpicture
استفاده کنم.
۲- دستور \shade
را هم در از کامنت در آورده و تست کنید هیچ مشکلی ندارد!
\documentclass{article}
\usepackage[cmyk]{xcolor}
\usepackage{tikz}
\usetikzlibrary{fadings}
\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
\makeatletter
\begin{bidi@tikzpicture}[remember picture,overlay]
% \shade [top color=yellow,bottom color=red!50] (current page.north west) rectangle (current page.south east);%
\fill [green] {(current page.south east) rectangle (current page.north west)};%
\draw (current page.north west)+(-2em,2em) node[anchor=north west,opacity=.3]
{\includegraphics[width=1.1\textwidth]{logo}};
\end{bidi@tikzpicture}
\makeatother
\centerline{\Huge Hi Parsi\LaTeX{}}
\end{document}
خروجی درست با محیط tikzpicture
:

خروجی عجیب با محیط bidi@tikzpicture
:

ویرایش
تصویر بدست آمد با گذاشتن \setLTR
قبل از \fill
:
