% EXPLANATION AND EXAMPLES OF NEWCOMMANDS
% CREATED FOR THE NMM WORKSHOP AT PZI

% COULD YOU PLEASE TRANSLATE THE EXPLANATIONS IN YOUR NATIVE LANGUAGE

\section{gridpage}

\subsection{use}

This command creates a 3x3 grid. 9 is the maximum number \LaTeX takes by default.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CODE BLOCK USING THE PACKAGE LSTLISTING %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% THIS IS THE CODE FOR THE COMMAND AND    %
% INCLUDED AS EXAMPLE                     %
% SPECIAL CHARACTERS ESCAPED              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\codeline{language=TeX}{\\grid\{einmal\}\{zweimal\}\{dreimal\}\{viermal\}\{f\"unfmal\}\{sechsmal\}\{siebenmal\}\{achtmal\}\{neunmal\}}

\codeline{language=TeX}{\\gridpage\{1\}\{2\}\{3\}\{4\}\{5\}\{6\}\{7\}\{8\}\{9\}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{itemize}
\item \textbf{1} is left top 
\item \textbf{2} is left center
\item \textbf{3} is left right
\item \textbf{4} is center top
\item \textbf{5} is center center
\item \textbf{6} is center bottom
\item \textbf{7} is right top
\item \textbf{8} is right center
\item \textbf{9} is right bottom
\end{itemize}

\subsection{macro code}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CODE BLOCK USING THE PACKAGE LSTLISTING %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% THIS IS THE CODE FOR THE COMMAND AND    %
% INCLUDED AS EXAMPLE                     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\lstset{language=TeX}
\begin{lstlisting}
\newcommand{\grid}[9]{%
\hspace{-.5\universalgrid}
\begin{picture}(0,0)%
\put(0.2,-2.4){#1}% |}
\put(0.2,-1.2){#4}% |}
\put(0.2,-3.6){#7}% |}
\put(1.3,-2.4){#2}% |}
\put(1.3,-1.2){#5}% |}
\put(1.3,-3.6){#8}% |}
\put(2.4,-2.4){#3}% |}
\put(2.4,-1.2){#6}% |}
\put(2.4,-3.6){#9}% |}
\end{picture}%
\twocolumn[] % DEATH PROOF PAGEBREAK
}
\end{lstlisting}














%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\grid{einmal}{zweimal}{dreimal}{viermal}{f\"unfmal}{sechsmal}{siebenmal}{achtmal}{neunmal}

\newpage
\grid
{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{50}{50}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}


\newpage
\grid
{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
\rotatebox{60}
 {
  \graphic{i/a/utils/graphics/blank/black.pdf}
  {0}{0}{500}{500}{\universalgrid}
  {0pt}
 }
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}

\newpage
\grid
{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{

}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{
 \graphic{i/a/utils/graphics/blank/black.pdf}
 {0}{0}{500}{500}{\universalgrid}
 {0pt}
}{

}

% TRY CHANGING GRAPHIC SIZE
% TRY CHANGING UNIVERSALGRID WITH SETLENGTH


