diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-02 15:44:00 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-02 15:44:00 +0200 |
| commit | 3e0fcaf2bea7864235ec415895ecd7b788a1531c (patch) | |
| tree | 2b46035962c688c4bd91fe5d2876eecd8e172f0f /latex/packages.tex | |
| download | unterricht-3e0fcaf2bea7864235ec415895ecd7b788a1531c.tar.gz unterricht-3e0fcaf2bea7864235ec415895ecd7b788a1531c.zip | |
initial commit adding my latex build system
The two classes test and handout are provided.
* test is for setting any kind of test
* handout is for setting any handout sheet
All markdown files in any subdirectory are converted to pdfs using pandoc.
Found tex files are used to generate pdf files using rubber and can use
the latex classes defined in the latex/ directory.
Diffstat (limited to 'latex/packages.tex')
| -rw-r--r-- | latex/packages.tex | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/latex/packages.tex b/latex/packages.tex new file mode 100644 index 00000000..649d3fdc --- /dev/null +++ b/latex/packages.tex @@ -0,0 +1,110 @@ +\renewcommand{\baselinestretch}{1,5} + +\usepackage{geometry} +\geometry{a4paper, top=35mm, left=20mm, right=35mm, bottom=25mm, +headsep=15mm, footskip=10mm} + +\usepackage{floatflt} +\usepackage{footnote} +\usepackage{amsthm} +\usepackage{float} +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\usepackage{underscore} +\usepackage{amssymb,amsmath} +\usepackage{comment} +\usepackage{ifthen} +\usepackage{graphicx} +\newcommand{\Verteilung}{} + +\newtheoremstyle{Aufg}% name of the style to be used +{2pt}% measure of space to leave above the theorem. E.g.: 3pt +{}% measure of space to leave below the theorem. E.g.: 3pt +{}% name of font to use in the body of the theorem +{}% measure of space to indent +{}% name of head font +{}% punctuation between head and body +{\newline }% space after theorem head; " " = normal interword space +{\textbf{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}: \ \Verteilung \hfill {/}\AnzahlPunkte \ BE}} + +\theoremstyle{Aufg} +\newtheorem{Aufg}{Aufgabe} + +\newtheoremstyle{Lsg}% name of the style to be used +{2pt}% measure of space to leave above the theorem. E.g.: 3pt +{}% measure of space to leave below the theorem. E.g.: 3pt +{}% name of font to use in the body of the theorem +{}% measure of space to indent +{}% name of head font +{}% punctuation between head and body +{\newline }% space after theorem head; " " = normal interword space +{\textbf{\thmname{#1}\thmnote{ (#3)}: }} + + + +\theoremstyle{Lsg} +\newtheorem{Lsg}{Lösung} + +\newtheoremstyle{Bearbeitung}% name of the style to be used +{0pt}% measure of space to leave above the theorem. E.g.: 3pt +{25pt}% measure of space to leave below the theorem. E.g.: 3pt +{}% name of font to use in the body of the theorem +{}% measure of space to indent +{}% name of head font +{}% punctuation between head and body +{ }% space after theorem head; " " = normal interword space +{\thmname{#1} } + +\theoremstyle{Bearbeitung} +\newtheorem{Bearbeitung}{} + + +\newcommand{\centeredgraphics}[2][]{\[\includegraphics[#1]{images/#2}\]} +\newcommand{\Ende}{ \ifdefined\PlatzKnapp \makebox(100,25)[c]{} \else \vspace*{\fill} \fi +%\makebox(100,50)[c]{} +\centeredgraphics[height=2.5cm]{Kleeblatt.jpg} +\centerline{\textbf{Viel Erfolg!}} \newline} + +\newcommand{\AnzahlPunkte}{X} %%Anzahl der Punkte festlegen + + + +\makeindex +\usepackage{setspace} + +%\usepackage{showframe} % Seitenlayout anzeigen + +\usepackage{fancyhdr} +\pagestyle{fancy} +\setlength{\headheight}{25 pt} +\fancyhf{} +\fancyhead[L]{\Schule} +\fancyhead[R]{\HeaderText} + + + +\fancypagestyle{ErsteSeite}{% + \fancyhf{}% + \fancyhead[L]{\ifdefined\KeinLogo \else \includegraphics[width=0.3\textwidth]{\LogoSchule} \newline \fi \Schule} + \fancyhead[R]{\Large Name: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } + +} + + +\usepackage{tikz} +\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}} + +\newcommand{\Lehrerversion}{\excludecomment{Bearbeitung}} + +\newcommand{\Schuelerversion}{\excludecomment{Lsg}} |
