summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/schule/schuleit.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/schule/schuleit.cls')
-rw-r--r--Master/texmf-dist/tex/latex/schule/schuleit.cls302
1 files changed, 248 insertions, 54 deletions
diff --git a/Master/texmf-dist/tex/latex/schule/schuleit.cls b/Master/texmf-dist/tex/latex/schule/schuleit.cls
index 1747f7e9af2..2d5cdc59d74 100644
--- a/Master/texmf-dist/tex/latex/schule/schuleit.cls
+++ b/Master/texmf-dist/tex/latex/schule/schuleit.cls
@@ -27,8 +27,8 @@
%% This work consists of the files schule.dtx and schule.ins, readme
%% and the derived files schule.sty, schulinf.sty, syntaxdi.sty,
%% relaycircuit.sty, schulphy.sty, schulekl.cls, schuleub.cls,
-%% schullzk.cls, schuleab.cls, schulein.cls, schuleue.cls, schullsg.cls,
-%% schulit.cls, schulekl.sty, schulelzk.sty.
+%% schullzk.cls, schuleab.cls, schulein.cls, schuleue.cls,
+%% schullsg.cls, schulit.cls, schulekl.sty, schulelzk.sty.
%%
%% Dies ist der dokumentierte Makrocode zur Erzeugung und Dokumentation
%% des LaTeX-Paket `schule'.
@@ -53,48 +53,94 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-%% Der folgende kenntlich gemachte Abschnitt ist in der Zusammenarbeit von
-%% Informatikreferendaren und ehemaligen Informatikreferendaren der
-%% Studienseminare (heute ZfsL) Arnsberg, Hamm und Solingen entstanden.
+%% Der folgende kenntlich gemachte Abschnitt ist in der Zusammenarbeit
+%% von Informatikreferendaren und ehemaligen Informatikreferendaren
+%% der Studienseminare (heute ZfsL) Arnsberg, Hamm und Solingen
+%% entstanden.
%%
-%% Der Abschnitt steht unter der Lizenz: Creative Commons by-nc-sa Version 4.0
+%% Der Abschnitt steht unter der Lizenz: Creative Commons by-nc-sa
+%% Version 4.0
%% http://creativecommons.org/licenses/by-nc-sa/4.0/deed.de
%%
-%% Nach dieser Lizenz darf der Abschnitt beliebig kopiert und bearbeitet werden,
-%% sofern das Folgeprodukt wiederum unter gleichen Lizenzbedingungen vertrieben
-%% und auf die ursprünglichen Urheber verwiesen wird.
-%% Eine kommerzielle Nutzung ist ausdrücklich ausgeschlossen.
+%% Nach dieser Lizenz darf der Abschnitt beliebig kopiert und
+%% bearbeitet werden, sofern das Folgeprodukt wiederum unter
+%% gleichen Lizenzbedingungen vertrieben und auf die ursprünglichen
+%% Urheber verwiesen wird. Eine kommerzielle Nutzung ist
+%% ausdrücklich ausgeschlossen.
%%
-%% Die Namensnennung durch einen Verweis und die Lizenzangabe der ursprünglichen
-%% Urheber auf den Materialien für Schülerinnen und Schüler ist erforderlich.
+%% Die Namensnennung durch einen Verweis und die Lizenzangabe der
+%% ursprünglichen Urheber auf den Materialien für Schülerinnen und
+%% Schüler ist erforderlich.
%%
%% Die vollständige Sammlung der Dokumente steht unter
-%% http://ddi.uni-wuppertal.de/material/materialsammlung/
-%% zur Verfügung.
+%% http://ddi.uni-wuppertal.de/material/materialsammlung/ zur
+%% Verfügung.
%%
-%% Das LaTeX-Paket zum Setzen der Dokumente der Sammlung steht
-%% unter http://www.ctan.org/pkg/schule
-%% zur Verfügung.
+%% Das LaTeX-Paket zum Setzen der Dokumente der Sammlung steht unter
+%% http://www.ctan.org/pkg/ zur Verfügung.
%%
-%% ----- BEGIN ------------------------------------------------------------------
+%% ----- BEGIN ------------------------------------------------------
%%
-%% ----- END ------------------------------------------------------------------
+%% ----- END ---------------------------------------------------------
+%% Der folgende kenntlich gemachte Abschnitt ist in der Zusammenarbeit
+%% von Informatikreferendaren und ehemaligen Informatikreferendaren
+%% der Studienseminare (heute ZfsL) Arnsberg, Hamm und Solingen
+%% entstanden.
+%%
+%% Der Abschnitt steht unter der Lizenz: Creative Commons by-nc-sa
+%% Version 4.0
+%% http://creativecommons.org/licenses/by-nc-sa/4.0/deed.de
+%%
+%% Nach dieser Lizenz darf der Abschnitt beliebig kopiert und
+%% bearbeitet werden, sofern das Folgeprodukt wiederum unter
+%% gleichen Lizenzbedingungen vertrieben und auf die ursprünglichen
+%% Urheber verwiesen wird. Eine kommerzielle Nutzung ist
+%% ausdrücklich ausgeschlossen.
+%%
+%% Die Namensnennung durch einen Verweis und die Lizenzangabe der
+%% ursprünglichen Urheber auf den Materialien für Schülerinnen und
+%% Schüler ist erforderlich.
+%%
+%% Die vollständige Sammlung der Dokumente steht unter
+%% http://ddi.uni-wuppertal.de/material/materialsammlung/ zur
+%% Verfügung.
+%%
+%% Das LaTeX-Paket zum Setzen der Dokumente der Sammlung steht unter
+%% http://www.ctan.org/pkg/ zur Verfügung.
+%%
+%% ----- BEGIN ------------------------------------------------------
+%% Der String Version: Version: 0.4 respektive 2014-09-07 wird beim Aufruf
+%% des build-scripts durch die passende Nummer bzw. das passende
+%% Datum ersetzt.
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{schuleit}[2014/05/04 v1.1 %
+\ProvidesClass{schuleit}[2014/09/07 v0.4 %
Vorlage für ein Leitprogramm]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
\ProcessOptions\relax
-\LoadClass[12pt,a4paper,openany,chapterprefix,bibtotoc,numbers=noendperiod,parskip=half]{scrreprt}
+\LoadClass[12pt,a4paper,openany,
+chapterprefix,bibtotoc,
+numbers=noendperiod,
+parskip=half]
+{scrreprt}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
+
+
\RequirePackage{schule}
\RequirePackage{mdframed}
\RequirePackage{scrpage2}
+\RequirePackage{paralist}
+\RequirePackage{xargs}
+\RequirePackage{xparse}
\pagestyle{scrheadings}
\clearscrheadfoot
\cfoot[\pagemark]{\pagemark}
\definecolor{chapter}{rgb}{0,0.25,0.56}
-\definecolor{section}{rgb}{0.54,0.66,0.83}
+\definecolor{section}{rgb}{0.27,0.33,0.90}
+\definecolor{subsection}{rgb}{0.54,0.66,0.90}
+\definecolor{subsubsection}{rgb}{0.14,0.17,0.95}
+\definecolor{paragraph}{cmyk}{0.5,0,.1,.39}
+
\definecolor{LightGrey}{rgb}{0.9,0.9,0.9}
\definecolor{grey1}{rgb}{.1,.1,.1}
@@ -107,25 +153,68 @@
\definecolor{grey9}{rgb}{.9,.9,.9}
\newcommand{\uebungBild}{
-\begin{tikzpicture}[y=0.80pt, x=0.8pt,yscale=-1, inner sep=0pt, outer sep=0pt]
-\path[draw=grey5,fill=grey7,line join=miter,line cap=butt,line width=0.209pt] (12.0208,0.5895) -- (1.3666,3.8375) -- (3.3843,20.6431) -- (20.4113,14.4179) -- cycle;
-\path[draw=grey1,fill=grey9,line join=round,line cap=butt,line width=0.209pt] (7.1932,6.1991) -- (15.9622,12.7759) -- (16.8321,11.7667) -- (7.8544,5.3292) -- cycle;
-\path[draw=grey1,fill=grey3,line join=round,line cap=butt,line width=0.209pt] (7.8544,5.3292) -- (5.9231,4.7550) -- (7.1932,6.1991) -- cycle;
+\begin{tikzpicture}[y=0.80pt, x=0.8pt,yscale=-1, inner sep=0pt, outer
+sep=0pt] \path[draw=grey5,fill=grey7,line join=miter,line
+cap=butt,line width=0.209pt] (12.0208,0.5895) --
+(1.3666,3.8375) -- (3.3843,20.6431) -- (20.4113,14.4179) --
+cycle; \path[draw=grey1,fill=grey9,line join=round,line
+cap=butt,line width=0.209pt] (7.1932,6.1991) --
+(15.9622,12.7759) -- (16.8321,11.7667) -- (7.8544,5.3292) --
+cycle; \path[draw=grey1,fill=grey3,line join=round,line
+cap=butt,line width=0.209pt] (7.8544,5.3292) --
+(5.9231,4.7550) -- (7.1932,6.1991) -- cycle;
\end{tikzpicture}
}
\newcommand{\hinweisBild}{
-\begin{tikzpicture}[y=0.80pt, x=0.8pt,yscale=-1, inner sep=0pt, outer sep=0pt]
-\path[draw=black,fill=grey2,line join=miter,line cap=butt,miter limit=4.00,line width=0.160pt] (6.4521,1.4334) -- (7.4295,0.4560) .. controls (7.9473,0.7196) and (8.1724,0.8553) .. (9.3447,1.4053) .. controls (9.3447,1.4053) and (9.4550,2.1225) .. (9.7278,3.7868) .. controls (9.7547,3.9511) and (10.4938,7.4506) .. (10.4938,7.4506) .. controls (10.4938,7.4506) and (11.0227,10.4067) .. (11.5264,11.8139) .. controls (11.7222,12.3609) and (12.1912,12.8073) .. (12.2925,13.3794) .. controls (12.3294,13.5882) and (12.2747,13.8058) .. (12.2258,14.0122) .. controls (12.1526,14.3214) and (12.0628,14.5394) .. (11.8899,14.9041) .. controls (11.5477,15.6258) and (10.6101,16.3538) .. (10.6271,16.2438);
-\path[draw=black,fill=grey8,line join=round,line cap=butt,line width=0.200pt] (5.8974,0.5893) -- (7.4295,0.4519) .. controls (8.0049,6.9583) and (10.9185,15.1671) .. (10.8935,15.6401) .. controls (10.8820,15.8585) and (10.8157,16.1331) .. (10.6271,16.2438) .. controls (10.4156,16.3680) and (10.0239,16.3854) .. (9.8943,16.1772) .. controls (8.7782,14.3840) and (8.5425,12.9279) .. (8.0291,11.2477) .. controls (7.4491,9.3496) and (7.0458,7.3997) .. (6.6635,5.4522) .. controls (6.3474,3.8419) and (5.8974,0.5893) .. (5.8974,0.5893) -- cycle;
-\path[draw=black,fill=black,line join=round,line cap=butt,miter limit=4.00,line width=0.160pt] (13.0918,15.9107) -- (13.6664,17.7926) -- (13.0575,20.6334) -- (11.7179,19.3081) -- (13.0918,15.9107);
-\path[draw=black,fill=grey4,line join=round,line cap=butt,miter limit=4.00,line width=0.160pt] (13.0918,15.9107) -- (12.1925,18.0424) -- (10.8935,18.0424) -- (12.3258,15.7775) -- cycle;
-\path[draw=black,fill=grey8,line join=round,line cap=butt,miter limit=4.00,line width=0.160pt] (10.8935,18.0424) .. controls (10.8935,18.0424) and (11.1714,19.7148) .. (11.1600,19.6412) .. controls (11.0947,19.2217) and (11.1324,20.0124) .. (11.7262,20.8070) .. controls (11.9101,21.0529) and (12.7921,20.8070) .. (12.9586,20.7403) .. controls (13.1251,20.6737) and (12.9586,19.3414) .. (12.9586,19.3414) -- (12.1925,18.0424) -- cycle;
+\begin{tikzpicture}[y=0.80pt, x=0.8pt,yscale=-1, inner sep=0pt, outer
+sep=0pt] \path[draw=black,fill=grey2,line join=miter,line
+cap=butt,miter limit=4.00,line width=0.160pt] (6.4521,1.4334)
+-- (7.4295,0.4560) .. controls (7.9473,0.7196) and
+(8.1724,0.8553) .. (9.3447,1.4053) .. controls (9.3447,1.4053)
+and (9.4550,2.1225) .. (9.7278,3.7868) .. controls
+(9.7547,3.9511) and (10.4938,7.4506) .. (10.4938,7.4506) ..
+controls (10.4938,7.4506) and (11.0227,10.4067) ..
+(11.5264,11.8139) .. controls (11.7222,12.3609) and
+(12.1912,12.8073) .. (12.2925,13.3794) .. controls
+(12.3294,13.5882) and (12.2747,13.8058) .. (12.2258,14.0122)
+.. controls (12.1526,14.3214) and (12.0628,14.5394) ..
+(11.8899,14.9041) .. controls (11.5477,15.6258) and
+(10.6101,16.3538) .. (10.6271,16.2438);
+\path[draw=black,fill=grey8,line join=round,line cap=butt,line
+width=0.200pt] (5.8974,0.5893) -- (7.4295,0.4519) .. controls
+(8.0049,6.9583) and (10.9185,15.1671) .. (10.8935,15.6401) ..
+controls (10.8820,15.8585) and (10.8157,16.1331) ..
+(10.6271,16.2438) .. controls (10.4156,16.3680) and
+(10.0239,16.3854) .. (9.8943,16.1772) .. controls
+(8.7782,14.3840) and (8.5425,12.9279) .. (8.0291,11.2477) ..
+controls (7.4491,9.3496) and (7.0458,7.3997) ..
+(6.6635,5.4522) .. controls (6.3474,3.8419) and
+(5.8974,0.5893) .. (5.8974,0.5893) -- cycle;
+\path[draw=black,fill=black,line join=round,line
+cap=butt,miter limit=4.00,line width=0.160pt]
+(13.0918,15.9107) -- (13.6664,17.7926) -- (13.0575,20.6334) --
+(11.7179,19.3081) -- (13.0918,15.9107);
+\path[draw=black,fill=grey4,line join=round,line
+cap=butt,miter limit=4.00,line width=0.160pt]
+(13.0918,15.9107) -- (12.1925,18.0424) -- (10.8935,18.0424) --
+(12.3258,15.7775) -- cycle; \path[draw=black,fill=grey8,line
+join=round,line cap=butt,miter limit=4.00,line width=0.160pt]
+(10.8935,18.0424) .. controls (10.8935,18.0424) and
+(11.1714,19.7148) .. (11.1600,19.6412) .. controls
+(11.0947,19.2217) and (11.1324,20.0124) .. (11.7262,20.8070)
+.. controls (11.9101,21.0529) and (12.7921,20.8070) ..
+(12.9586,20.7403) .. controls (13.1251,20.6737) and
+(12.9586,19.3414) .. (12.9586,19.3414) -- (12.1925,18.0424) --
+cycle;
\end{tikzpicture}
}
\addtokomafont{chapter}{\color{chapter}}
\addtokomafont{section}{\color{section}}
+\addtokomafont{subsection}{\color{subsection}}
+\addtokomafont{subsubsection}{\color{subsubsection}}
+\addtokomafont{paragraph}{\color{paragraph}}
\newmdenv[backgroundcolor=LightGrey,linewidth=0pt]{grey@Frame}
@@ -134,43 +223,148 @@
\makeatother% siehe FAQ
\newenvironment{greyFrame}[2]%
-{\begin{grey@Frame}#1\raisebox{+0.9ex}{\begin{large}#2\end{large}}\vspace*{-0.2cm}\headingpar}%
+{\begin{grey@Frame}#1
+ \raisebox{+0.9ex}{
+ \begin{large}#2\end{large}
+ }\vspace*{-0.2cm}\headingpar}%
{\end{grey@Frame}}
\newcounter{aufgabe}[chapter]
\newenvironment{Aufgabe}
{\stepcounter{aufgabe}\label{aufg\arabic{chapter}\arabic{aufgabe}}
-\begin{greyFrame}{\uebungBild{}}{Aufgabe \arabic{chapter}.\arabic{aufgabe}}}
-{\end{greyFrame}}
+\begin{greyFrame}{\uebungBild{}}{Aufgabe %
+\arabic{chapter}.\arabic{aufgabe}}}%
+{\end{greyFrame}}%
-\newcounter{aufgabennr}[chapter]
-\newenvironment{Aufgaben}%
-{\begin{greyFrame}{\uebungBild{}}{Aufgaben}\headingpar\begin{Form}\headingpar\begin{enumerate}\setcounter{enumi}{\theaufgabennr}\renewcommand{\labelenumi}{\arabic{chapter}.\arabic{enumi}}}%
-{\setcounter{aufgabennr}{\theenumi}\end{enumerate}\end{Form}\end{greyFrame}}%
+\NewDocumentEnvironment{Aufgaben}{o o}%
+{%
+ \stepcounter{aufgabe}\label{aufg\arabic{chapter}\arabic{aufgabe}}%
+ %\setcounter{aufgabennr}{1}
+ \begin{greyFrame}{\uebungBild{}}{Aufgaben %
+ \arabic{chapter}.\arabic{aufgabe}}%
+ \headingpar\begin{Form}\headingpar%
+ \IfNoValueTF{#2}{}{#2}%
+ \ifthenelse{\equal{#1}{}}{%
+ \begin{compactenum}[a)]%
+ }{%
+\IfNoValueTF{#1}{%
+ \begin{compactenum}[a)]%
+}{%
+ \begin{compactenum}[#1]%
+}%
+ }%
+ %\setcounter{enumi}{\theaufgabennr}
+ %\renewcommand{\labelenumi}{\arabic{chapter}.\arabic{aufgabe}.\roman{enumi}}
+}%
+{%
+\end{compactenum}%
+\end{Form}%
+\end{greyFrame}%
+}%
\newenvironment{Hinweis}
-{\begin{greyFrame}{\hinweisBild{}}{Hinweis}}
-{\end{greyFrame}}
+{\begin{greyFrame}{\hinweisBild{}}{Hinweis}}%
+{\end{greyFrame}}%
-\newcommand{\TextFeld}[1]{\newline\TextField[width=.93\textwidth, height=#1,multiline=true,borderwidth=0]{}}%
+\newcommand{\TextFeld}[1]{%
+\vspace*{3pt}\newline\TextField[width=.93\textwidth,%
+height=#1,multiline=true,borderwidth=0]{}%
+}%
\newcounter{loesungnr}
-\newcommand{\Loesung}[1]{
-\global\expandafter\edef\csname loesungname\theloesungnr\endcsname{\arabic{chapter}.\arabic{enumi}}
-\global\expandafter\def\csname loesung\theloesungnr\endcsname{#1}
-\addtocounter{loesungnr}{1}
+\newcommand{\AufgabeLoesung}[2][]{%
+ \label{loesungback\theloesungnr}%
+ \global\expandafter\edef\csname%
+ loesungname\theloesungnr\endcsname{%
+ \arabic{chapter}.\arabic{aufgabe}%
+ }%
+\ifthenelse{\isempty{#1}}{%
+\global\expandafter\edef\csname%
+ loesungref\theloesungnr\endcsname{__NONE__}%
+}{%
+\global\expandafter\edef\csname%
+ loesungref\theloesungnr\endcsname{loesungback\theloesungnr}%
+}%
+ \global\expandafter\def\csname loesung\theloesungnr\endcsname{#2}%
+ \hyperref[loesung\theloesungnr]{%
+ \colorbox{black!30}{\color{blue!90}L}%
+ }%
+ \addtocounter{loesungnr}{1}%
}
-\newcounter{zeigenr}%
-\newcommand{\loesungzeigen}{
-\begin{description}
-\whiledo {\value{zeigenr} < \value{loesungnr}}{
-\item[\expandafter\csname loesungname\thezeigenr\endcsname]
-\expandafter\csname loesung\thezeigenr\endcsname\par%
-\stepcounter {zeigenr}
+\newcommand{\AufgabenLoesung}[1]{%
+\AufgabeLoesung[ref]{#1}%
}
-\end{description}}
+\newcounter{zeigenr}%
+\newcommand{\loesungzeigen}{%
+\setcounter{zeigenr}{0}%
+\ifthenelse{\value{loesungnr}>0}{%
+\setboolean{@loesunganzeigen}{true}
+\begin{description}%
+\whiledo {\value{zeigenr} < \value{loesungnr}}{%
+\item[\expandafter\csname loesungname\thezeigenr\endcsname%
+\ifthenelse{%
+ \equal{\expandafter\csname loesungref\thezeigenr\endcsname}%
+ {__NONE__}%
+ }{}{\,\ref{\expandafter\csname loesungref\thezeigenr\endcsname}}%
+ ]%
+\label{loesung\thezeigenr}%
+\expandafter\csname loesung\thezeigenr\endcsname%
+\xspace\hyperref[loesungback\thezeigenr]{%
+\colorbox{black!30}{\color{blue!90}Zurück}%
+}%
+\stepcounter {zeigenr}%
+}%
+\end{description}%
+\setboolean{@loesunganzeigen}{false}
+}{}%
+}%
+
+\newcounter{hinweisnr}
+\newcommand{\AufgabeHinweis}[2][]{%
+\label{hinweisback\thehinweisnr}%
+\ifthenelse{\isempty{#1}}{%
+\global\expandafter\edef\csname%
+ hinweisref\thehinweisnr\endcsname{__NONE__}%
+}{%
+\global\expandafter\edef\csname%
+ hinweisref\thehinweisnr\endcsname{hinweisback\thehinweisnr}%
+}%
+\global\expandafter\edef\csname%
+hinweisname\thehinweisnr\endcsname{\arabic{chapter}.\arabic{aufgabe}}%
+\global\expandafter\def\csname hinweis\thehinweisnr\endcsname{#2}%
+\hyperref[hinweis\thehinweisnr]{%
+\colorbox{black!30}{\color{blue!90}H}%
+}%
+\addtocounter{hinweisnr}{1}%
+}%
+\newcommand{\AufgabenHinweis}[1]{%
+\AufgabeHinweis[ref]{#1}%
+}%
+
+\newcommand{\hinweiszeigen}{%
+\setcounter{zeigenr}{0}%
+\ifthenelse{\value{hinweisnr} > 0}{%
+\begin{description}%
+\whiledo {\value{zeigenr} < \value{hinweisnr}}{%
+\item[\expandafter\csname hinweisname\thezeigenr\endcsname%
+\ifthenelse{%
+ \equal{\expandafter\csname hinweisref\thezeigenr\endcsname}%
+ {__NONE__}%
+ }{}{\,\ref{\expandafter\csname hinweisref\thezeigenr\endcsname}}%
+ ]%
+\label{hinweis\thezeigenr}%
+\expandafter\csname%
+hinweis\thezeigenr\endcsname%
+\xspace\hyperref[hinweisback\thezeigenr]{%
+\colorbox{black!30}{\color{blue!90}Zurück}%
+}%
+\stepcounter {zeigenr}%
+}%
+\end{description}%
+}{}%
+}%
\endinput
%%
%% End of file `schuleit.cls'.