تالار گفتگوی پارسی‌لاتک

لاتک LATEX => اسلاید Beamer => نويسنده: taherkhani در سپتامبر 05, 2013, 01:51:29 pm

عنوان: تغییر دستور \mytheorem به محیط mytheorem
رسال شده توسط: taherkhani در سپتامبر 05, 2013, 01:51:29 pm
سلام

میشه در کد زیر دستور \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}
عنوان: پاسخ : تغییر دستور \mytheorem به محیط mytheorem
رسال شده توسط: سید احمد موسوی در سپتامبر 05, 2013, 02:33:54 pm
بسته environ  را ببین.