It's my example frame definition for Yacas algebra function:
Code: Select all
\begin{frame}[fragile]
\transboxout
\frametitle{Permutations}
\begin{columns}
\column{.475\textwidth}
\begin{block}{Description}
All permutations of list
\end{block}
\begin{block}{Calling}
\texttt{Permutations(list)}
\end{block}
\begin{block}{Parameters}
list – parameters list
\end{block}
\column{.475\textwidth}
\begin{block}{Examples}
\footnotesize
\begin{verbatim}
In> Permutations({a,b,c})
Out> {{a,b,c},{a,c,b},
{c,a,b},{b,a,c},{b,c,a},
{c,b,a}};
\end{verbatim}
\end{block}
\end{columns}
\end{frame}

Code: Select all
\myfunction{Permutations}{All permutations of list}{Permutations(list)}{list – parameters list}{In> Permutations({a,b,c})
Out> {{a,b,c},{a,c,b},{c,a,b},{b,a,c},
{b,c,a},{c,b,a}};}
I tried do it like this, but it doesn't work:
Code: Select all
\newcommand{funkcjaAlgebryLiniowej}[5]{
\begin{frame}[fragile]
\transboxout
\frametitle{#1}
\begin{columns}
\column{.475\textwidth}
\begin{block}{Przeznaczenie funkcji}
#2
\end{block}
\begin{block}{Wywołanie}
\texttt{#3}
\end{block}
\begin{block}{Parametry}
#4
\end{block}
\column{.475\textwidth}
\begin{block}{Przykłady}
\footnotesize
\begin{verbatim}
#5
\end{verbatim}
\end{block}
\end{columns}
\end{frame}
}