\documentclass{tvary}
\usepackage{tkz-euclide}


\begin{document}
  
\rectangle{4cm}{3cm}{a}{b}

\trojuhelnik{3cm}{4cm}{5cm}

\triangleAngles{4cm}{60}{30}

\triangleAngles{4cm}{60}{30}

\begin{tikzpicture}

\draw[red,thick] (-5,5) rectangle +(2,2);

\draw (-5,5) node[anchor=north east] {A};
\draw (-3,5) node[anchor=south east] {B};

\end{tikzpicture}



\begin{tikzpicture}
 \draw[style=help lines,step=0.5cm] (-1,-1) grid (2,2);
    
\end{tikzpicture}

%mříž (tabulka) 5x5 cm na souřadnicích 0,0 až 5,5 s krokem 0,5 cm
\begin{tikzpicture}
 \draw[style=help lines,step=0.5cm] (0,0) grid (5,5);
    
\end{tikzpicture}

\newpage
 \grid{0.5cm}{-1.5,-1.5}{2.5,2.5}
 \grid{0.5cm}{-1.4,-1.4}{2.4,2.4}

\begin{tikzpicture}

 \draw[->] (-1.5,0) -- (1.5,0) node[right] {$x$};
 \draw[->] (0,-1.5) -- (0,1.5) node[above] {$y$}; 

\end{tikzpicture} 

\mrizX[osy]{0.5}{-1.5,-1.5}{1.5,1.5}  
\mrizX{0.5}{-1.5,-1.5}{1.5,1.5}  


\mrizX[osy]{0.5}{-5,-5}{5,5}  


%převzato z https://tex.stackexchange.com/questions/96459/automatically-draw-and-labels-angles-of-a-triangle-in-tikz
\begin{tikzpicture}[thick]
\coordinate (O) at (0,0);
\coordinate (A) at (4,0);
\coordinate (B) at (0,2);
\draw (O)--(A)--(B)--cycle;

\tkzLabelSegment[below=2pt](O,A){\textit{adjacent leg}}
\tkzLabelSegment[left=2pt](O,B){\textit{opposite leg}}
\tkzLabelSegment[above right=2pt](A,B){\textit{hypotenuse}}

\tkzMarkRightAngle[fill=orange,size=0.5,opacity=.4](A,O,B)% square angle here
\tkzLabelAngle[pos = 0.35](A,O,B){$\gamma$}

\tkzMarkAngle[fill= orange,size=0.8cm,%
opacity=.4](B,A,O)
\tkzLabelAngle[pos = 0.6](B,A,O){$\alpha$}

\tkzMarkAngle[fill= orange,size=0.7cm,%
opacity=.4](O,B,A)
\tkzLabelAngle[pos = 0.5](O,B,A){$\beta$}

\end{tikzpicture}
 \end{document}
