init
This commit is contained in:
151
Infoskript.tex
Normal file
151
Infoskript.tex
Normal file
@@ -0,0 +1,151 @@
|
||||
\documentclass[12pt,a4paper]{scrartcl}% siehe <http://www.komascript.de>
|
||||
\usepackage[a4paper,left=2.5cm,right=2cm,top=2.54cm,bottom=2.54cm]{geometry}
|
||||
%Dieses Werk ist lizenziert unter einer Creative Commons Namensnennung - Weitergabe unter gleichen Bedingungen 4.0 International Lizenz.
|
||||
\usepackage[ngerman]{babel}
|
||||
\usepackage{graphicx}
|
||||
|
||||
\usepackage[
|
||||
type={CC},
|
||||
modifier={by-sa},
|
||||
version={4.0},
|
||||
]{doclicense}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{float}
|
||||
\usepackage{color}
|
||||
\usepackage{colortbl}
|
||||
\usepackage{scratch3}
|
||||
\usepackage{amsthm}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{array}
|
||||
\usepackage{multicol}
|
||||
\usepackage{subfigure}
|
||||
\usepackage{tikz}
|
||||
\usepackage{pgffor, ifthen}
|
||||
|
||||
%Abstände nach den Subsubsections
|
||||
\RedeclareSectionCommand[
|
||||
beforeskip=-.5\baselineskip,
|
||||
afterskip=.25\baselineskip]{subsubsection}
|
||||
|
||||
%Sorgt dafür, dass Bilder in Tabellen nicht die horizontalen Linien überlagern.
|
||||
\newcommand\tabbild[2][]{%
|
||||
\raisebox{0pt}[\dimexpr\totalheight+\dp\strutbox\relax][\dp\strutbox]{%
|
||||
\includegraphics[#1]{#2}%
|
||||
}%
|
||||
}
|
||||
|
||||
% Neues Kommando um Zeilen für handschriftliche Notizen einzufügen.
|
||||
% Beispiele: https://texblog.org/2012/06/25/adding-lines-for-taking-handwritten-notes-in-latex/
|
||||
\newcommand{\notes}[3][\empty]{%
|
||||
\noindent \vspace{10pt}\\
|
||||
\foreach \n in {1,...,#2}{%
|
||||
\ifthenelse{\equal{#1}{\empty}}
|
||||
{\rule{#3}{0.5pt}\\}
|
||||
{\rule{#3}{0.5pt}\vspace{#1}}
|
||||
}
|
||||
}
|
||||
|
||||
%%Definition neuer Befehle für Beispiele Aufgaben usw.
|
||||
\newtheoremstyle{newline}% name
|
||||
{\baselineskip}% Space above
|
||||
{\baselineskip}% Space below
|
||||
{}% Body font
|
||||
{}% Indent amount
|
||||
{\bfseries}% Theorem head font
|
||||
{}% Punctuation after theorem head
|
||||
{\newline}% Space after theorem head
|
||||
{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}:}% Theorem head spec (can be left empty, meaning ‘normal’ )
|
||||
|
||||
\theoremstyle{newline}
|
||||
\newtheorem{bsp}{Beispiel}
|
||||
\newtheorem{aufgabe}{Aufgabe}[section]
|
||||
|
||||
|
||||
\newcommand{\hinweis}{\textbf{Hinweis: }}
|
||||
\newcommand{\tipp}{\textbf{Tipp: }}
|
||||
\newcommand{\info}{\textbf{Info: }}
|
||||
%%Neudefinition der Scratch Blöcke
|
||||
%%Link zur Doku: http://ftp.uni-erlangen.de/ctan/macros/latex/contrib/scratch3/scratch3-fr.pdf
|
||||
%Startflagge
|
||||
\newcommand{\start}{\blockinit{Wenn \greenflag angeklickt wird}}
|
||||
%gehe Block
|
||||
\newcommand{\move}[1]{\blockmove{gehe \ovalnum{#1} er Schritt}}
|
||||
%Drehe links
|
||||
\newcommand{\turnl}[1]{\blockmove{drehe dich \turnleft{} um \ovalnum{#1} Grad}}
|
||||
%Drehe rechts
|
||||
\newcommand{\turnr}[1]{\blockmove{drehe dich \turnright{} um \ovalnum{#1} Grad}}
|
||||
%setze Richtung
|
||||
\newcommand{\set}[1]{\blockmove{setze Richtung auf \ovalnum{#1} Grad}}
|
||||
%gehe zu
|
||||
\newcommand{\setxy}[2]{\blockmove{gehe zu x:\ovalnum{#1} y:\ovalnum{#2}}}
|
||||
%ändere x um
|
||||
\newcommand{\movex}[1]{\blockmove{ändere x um \ovalnum{#1} }}
|
||||
%ändere y um
|
||||
\newcommand{\movey}[1]{\blockmove{ändere y um \ovalnum{#1} }}
|
||||
%Lösche Malspuren
|
||||
\newcommand{\delete}[0]{\blockpen{lösche alles}}
|
||||
%schalte Stift ein
|
||||
\newcommand{\penon}[0]{\blockpen{schalte Stift ein}}
|
||||
%schalte Stift aus
|
||||
\newcommand{\penoff}[0]{\blockpen{schalte Stift aus}}
|
||||
|
||||
%wiederhole n mal
|
||||
\newcommand{\repeatn}[2]{\blockrepeat{wiederhole \ovalnum{#1} mal}{#2}}
|
||||
%while
|
||||
\newcommand{\while}[2]{\blockrepeat{wiederhole bis {#1}}{#2}}
|
||||
|
||||
%if-Anweisung
|
||||
\newcommand{\ifopempty}[2]{\blockif{falls, \boolempty{#1} dann}{#2}}
|
||||
\newcommand{\ifop}[2]{\blockif{falls {#1} dann}{#2}}{}
|
||||
%if-else
|
||||
\newcommand{\ifelseop}[3]{\blockifelse{falls {#1} dann}{#2}{#3}}
|
||||
|
||||
%Set Scratchumgebung
|
||||
\setdefaultscratch{scale=.8}
|
||||
\setdefaultscratch{else word = sonst}
|
||||
|
||||
|
||||
%%Grundrechenarten
|
||||
%plus
|
||||
\newcommand{\plus}[2]{\ovaloperator{\ovalnum{#1} + \ovalnum{#2}}}
|
||||
%minus
|
||||
\newcommand{\minus}[2]{\ovaloperator{\ovalnum{#1} - \ovalnum{#2}}}
|
||||
%mal
|
||||
\newcommand{\mult}[2]{\ovaloperator{\ovalnum{#1} * \ovalnum{#2}}}
|
||||
%geteilt
|
||||
\newcommand{\teilen}[2]{\ovaloperator{\ovalnum{#1} / \ovalnum{#2}}}
|
||||
|
||||
%%Operatoren
|
||||
%and
|
||||
\newcommand{\booland}[2]{\booloperator{{#1} und {#2}}}
|
||||
%not
|
||||
\newcommand{\boolnot}[1]{\booloperator{\boolempty{#1}}}
|
||||
|
||||
%%Variablen
|
||||
%Variable
|
||||
\newcommand{\variable}[1]{\ovalvariable{#1}}
|
||||
%setvariable
|
||||
\newcommand{\setvar}[2]{\blockvariable{setze \selectmenu{#1} auf \ovalnum{#2}}}
|
||||
%changevar
|
||||
\newcommand{\changevar}[2]{\blockvariable{ändere \selectmenu{#1} um \ovalnum{#2}}}
|
||||
|
||||
\begin{document}
|
||||
\input{chapters/titlepage}
|
||||
\pagebreak
|
||||
\input{chapters/bewertungsraster}
|
||||
\pagebreak
|
||||
\tableofcontents
|
||||
\pagebreak
|
||||
\input{chapters/einleitung}
|
||||
\pagebreak
|
||||
\input{chapters/erste_programme}
|
||||
\pagebreak
|
||||
\input{chapters/schleifen}
|
||||
\pagebreak
|
||||
\input{chapters/variablen}
|
||||
\pagebreak
|
||||
\input{chapters/if}
|
||||
\pagebreak
|
||||
\input{chapters/projekt}
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user