diff options
Diffstat (limited to 'latex/common.tex')
| -rw-r--r-- | latex/common.tex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/latex/common.tex b/latex/common.tex new file mode 100644 index 00000000..decebd24 --- /dev/null +++ b/latex/common.tex @@ -0,0 +1,19 @@ +\newcommand{\Signatur}{FIF} +\newcommand{\Schule}{Hans-Sachs-Gymnasium Nürnberg} +\newcommand{\LogoSchule}{images/logoHansSachs.png} + +\newtcolorbox{wiederholung}[1]{colback=orange!5!white,colframe=orange!75!black,fonttitle=\bfseries,title=Wiederholung: #1} + +\newcommand\kariert[2][0.5cm]{% + \begin{tikzpicture}[gray,step=#1] + \pgfmathtruncatemacro\anzahl{(\linewidth-\pgflinewidth)/#1} % maximale Anzahl Kästchen pro Zeile + \draw (0,0) rectangle (\anzahl*#1,#2*#1) (0,0) grid (\anzahl*#1,#2*#1); + \end{tikzpicture} +} + +\newcommand{\liniert}[2][0.5cm]{% + \begin{tikzpicture}[gray] + \path[use as bounding box](0,0)rectangle(\linewidth,-#2*#1-0.5\pgflinewidth); + \foreach \n in {1,...,#2}\draw(0 ,-#1*\n )--(\linewidth,-#1*\n ); + \end{tikzpicture} +} |
