• Welcome to پارسی‌لاتک.
 
از تاریخ ۱۳۹۳/۸/۱۴ به دلیل ارائه خدمات بهتر به سایت جدید پرسش و پاسخ مهاجرت کرده‌ایم؛ از این رو امکان عضویت و ارسال پست در تالار غیرفعال شده است. لطفاً برای پرسیدن سوال‌های خود به سایت جدید مراجعه کنید.

ورود به سایت جدید

تغییر دستور \mytheorem به محیط mytheorem

نویسنده taherkhani, سپتامبر 05, 2013, 01:51:29 بعد از ظهر

« قبلی - بعدی »

taherkhani

سلام

میشه در کد زیر دستور \mytheorem رو به محیط mytheorem تغییر داد؟

‎\tikzstyle{‎my‎theorem} = [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}

سید احمد موسوی