سلام
میشه در کد زیر دستور \mytheorem رو به محیط mytheorem تغییر داد؟
\tikzstyle{mytheorem} = [draw=red!80, fill=none, very thick,
rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\tikzstyle{fancytitletheorem} =[fill=yellow!20, text=red]
%%%%%%%
\newcommand{\mytheorem}[1]{
\begin{tikzpicture}\node [mytheorem] (box){\setRTL\begin{minipage}{0.95\textwidth}
{#1}
\end{minipage}};\node[fancytitletheorem, left=10pt] at (box.north east) {\hboxR{{\Large{قضیه }}}};\end{tikzpicture}
\AddToShipoutPicture*{\put(-40,0){\includegraphics[height=\paperheight, width=194mm]{gra4.jpg}}}
}
یعنی به جای نوشتن
\mytheorem{قضیه اول}
این رو بنویسیم:
\begin{mytheorem}
قضیه اول
\end{mytheorem}