From 8cbf4666d05c8c85610eb759bb548df6ea8ac86c Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 24 Oct 2013 16:13:10 +0200 Subject: [PATCH] GDB-1: Initialversion von Blatt 1 samt Vorlage. --- gdb/G62B1_Dittrich-Lindemann-Martens.tex | 32 ++ gdb/gdb-aufgabenblatt.cls | 22 ++ gdb/sfmath.sty | 469 +++++++++++++++++++++++ gdb/vsis-aufgabenblatt.cls | 101 +++++ gdb/vsis-gdb.sty | 139 +++++++ 5 files changed, 763 insertions(+) create mode 100644 gdb/G62B1_Dittrich-Lindemann-Martens.tex create mode 100644 gdb/gdb-aufgabenblatt.cls create mode 100644 gdb/sfmath.sty create mode 100644 gdb/vsis-aufgabenblatt.cls create mode 100644 gdb/vsis-gdb.sty diff --git a/gdb/G62B1_Dittrich-Lindemann-Martens.tex b/gdb/G62B1_Dittrich-Lindemann-Martens.tex new file mode 100644 index 0000000..cd9f144 --- /dev/null +++ b/gdb/G62B1_Dittrich-Lindemann-Martens.tex @@ -0,0 +1,32 @@ +\documentclass[ngerman]{gdb-aufgabenblatt} +\renewcommand{\Aufgabenblatt}{1} +\renewcommand{\Ausgabedatum}{Mi. 16.10.2013} +\renewcommand{\Abgabedatum}{Fr. 01.11.2013} +\renewcommand{\Gruppe}{Tim Dittrich, Sebastian Lindemann, Jim Martens} + +% define how the sections are rendered +\def\thesection{Aufgabe \arabic{section}:} +\def\thesubsection{\alph{subsection})} +\def\thesubsubsection{(\roman{subsubsection})} + +\begin{document} + + +\section{Informationssysteme} + \subsection{} %a + \subsection{} %b + \subsection{} %c + +\section{Miniwelt} + \subsection{} %a + \subsection{} %b + +\section{Transaktionen} + + +\section{Warm-Up MySQL} + \subsection{} %a + \subsection{} %b + \subsection{} %c + +\end{document} \ No newline at end of file diff --git a/gdb/gdb-aufgabenblatt.cls b/gdb/gdb-aufgabenblatt.cls new file mode 100644 index 0000000..5dd1ce5 --- /dev/null +++ b/gdb/gdb-aufgabenblatt.cls @@ -0,0 +1,22 @@ +% VSIS-Aufgabenblatt +% +% LaTeX-Klasse zur Erstellung von Aufgabenblaettern inkl. optionaler Musterloesung im VSIS-Stil. +% +% Entworfen von Wolfram Wingerath auf Grundlage eines existierenden Designs von Kristof Hamann + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{gdb-aufgabenblatt}[2009/11/08 v1.0 VSIS-Aufgabenblaetter] + +\LoadClass{vsis-aufgabenblatt} + + +\newcommand{\Gruppe}{*Teilnehmernamen*} + + +\renewcommand{\Vorlesung}{Grundlagen von Datenbanken} +\renewcommand{\Semester}{WS 2013/14} +\renewcommand{\Punktezahl}{40} + + +\renewcommand{\PunktezahlTitel}{Gruppe} +\renewcommand{\Punktezahl}{\Gruppe} \ No newline at end of file diff --git a/gdb/sfmath.sty b/gdb/sfmath.sty new file mode 100644 index 0000000..82a29a9 --- /dev/null +++ b/gdb/sfmath.sty @@ -0,0 +1,469 @@ +% sfmath.sty, copyright 2001-2007 by Olaf Dietrich (olaf@dtrx.de) +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Olaf Dietrich. +% +% This work consists of the file sfmath.sty. + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{sfmath}[2007/08/27 v0.8 sans serif maths] + + +% This is a simple package for sans serif maths in documents. +% +% Usage: \usepackage{sfmath} or \usepackage[OPTIONS]{sfmath} +% +% After including the package sfmath.sty, all maths of the current +% document is displayed with sans serif fonts; there is no way to +% switch back to the original behavior. +% +% The default sans serif font for maths is the sans serif font +% selected for sans serif text (i.e., \sfdefault) when sfmath.sty +% is loaded. Therefore, you must include sfmath.sty after having +% changed \sfdefault, e.g., by a package such as helvet.sty or +% manually. Alternatively, use one of the font options described +% below (cm, helvet, cmbright, tx, px, or lm) in order to override +% the default sans serif font. +% +% Package OPTIONS (options marked with (+) are experimental): +% +% * slantedGreek: for slanted uppercase Greek letters +% +% * cm: use Computer Modern (cmss) for maths (explicitly) +% * helvet: use Postscript Helvetica (phv) for maths (explicitly) +% * cmbright: use CM-Bright fonts (cmbr) for maths (explicitely) +% * tx: use Postscript txfonts (tx) for maths (explicitly) +% * px: use Postscript pxfonts (tx) for maths (explicitly) +% * lm: use Latin Modern (lmss) for maths (explicitly) (+) +% +% * T1experimental: use T1 font encoding for standard maths (+) +% * AlphT1experimental: use T1 font encoding for \math*{...} commands (+) +% +% * mathrmOrig: do not change the behavior of the \mathrm command +% * mathbfOrig: do not change the behavior of the \mathbf command +% * mathitOrig: do not change the behavior of the \mathit command +% * mathsfOrig: do not change the behavior of the \mathsf command +% +% (+): Known limitations of experimental options: +% T1experimental produces a warning about the encoding of the +% operators font. +% AlphT1experimental DOES NOT WORK with uppercase Greek letters +% within the \math*{...} command! +% These options should only be used with the ec fonts. +% +% lm includes T1experimental and AlphT1experimental with the +% limitations mentioned above. +% +% RECOMMENDATION: +% use the fix-cm package instead of the experimental +% T1 options: with fix-cm.sty, the chosen ec fonts +% harmonize much better with the cm sans serif math fonts. +% Add \RequirePackage{fix-cm} _before_ \documentclass{...}. +% +% +% Some new macros are defined by sfmath.sty: +% +% * \mathsl{...}: A new math alphabet that is by default identical +% with \mathit{...}; useful in combination with the option mathitOrig. +% +% * \upOmega, \upDelta: upright versions of \Omega and \Delta; +% useful when the option slantedGreek is selected. +% +% +% More documentation can currently be found at: +% + + +% CHANGES: +% +% v0.8: +% +% * Update documentation and add license details for CTAN upload. +% +% +% v0.7: +% +% * Add (experimental) support for latin modern (lmodern) fonts. +% +% +% v0.6: +% +% * Add some artificial intelligence to use slanted bold letters +% if available (e.g., for phv, txfonts, or pxfonts). +% Add options to select txfonts, pxfonts, and cmbright (probably +% not very useful) explicitely. +% (Thanks to Alberto Lusiani who asked for slanted bold letters.) +% +% +% v0.5: +% +% * Add experimental options for T1 font encoding of maths fonts. +% Using these options can be useful with ec fonts which look +% slightly different from the standard cm maths fonts (especially +% at large font size). About limitations see above. +% +% +% v0.4: +% +% * Add \upDelta, \upOmega command (to be a little more compatible +% with other packages that provide the slantedGreek option) +% +% +% v0.3: +% +% * Add sans serif shapes for "," and ".", "\ldotp" +% +% * Modified documentation +% +% +% v0.2: +% +% * New option slantedGreek for slanted greek capitals +% +% * Options helvet and cm to select explicitly the sans serif font +% for maths. Without any of these options, the current \sfdefault +% is chosen. +% +% * Options mathxxOrig: don't change the alphabet command \mathxx; +% available for \mathrm, \mathbf, \mathit, and \mathsf +% +% * Provide dotlessi and dotlessj (if available) +% + + +% BUGS/LIMITATIONS/PROBLEMS: +% +% * Functionality is limited by the intention to work without +% additionally defined (virtual) fonts; instead, only standard +% fonts are used. +% +% * The font metrics are not adjusted to maths usage (this may +% result in typographically unsatisfying results). +% +% * In many constellations with Postscript fonts (helvet.sty, +% pslatex.sty, ...) the upper-case greek letters are not chosen +% correctly within \mathrm, \mathbf, \mathit, ... (because +% they should be part of OT1-encoded fonts but are not included +% in these standard postscript fonts). +% +% * Bold math symbols are not always available (e.g. with pslatex.sty) +% or at least not slanted (e.g. with cmss fonts), so better don't +% use bold maths with this package. (This has been partially improved +% in version 0.6.) +% +% * There is a visual difference between the ec sans serif text fonts +% and the cm sans serif maths fonts, especially at larger font sizes. +% The fix-cm package might help to reduce the ugliness of the ec +% sans serif fonts and the differences between the ec text fonts +% and the cm math fonts. +% Alternatively, the experimental options T1experimental and +% AlphT1Experimental might help by using the ec fonts for maths as well. +% +% * The txfonts and pxfonts are reported to have several deficiencies +% with respect to font metrics and macro implementation; using +% these fonts is not recommended by the package author. +% +% * The set symbols \mathbb{N} or \mathbbm{N} (from bbm.sty) are not +% changed. You might like to use \mathbbmss{N} (from bbm.sty). +% +% * Some symbols have serifish shapes (\sum, \prod, probably more) and +% are not changed. +% +% * Lower-case greek letters are not available in sans serif shape +% (they don't have real serifs, but cannot be expected to harmonize +% with the sans serif latin letters). +% +% +% TODO: +% +% * Improve documentation. +% +% * Provide LaTeX .ins/.dtx files instead of naked .sty file. +% + + +% HERE WE GO: + +% Declare options and defaults and process options + +\DeclareOption{slantedGreek}{% + \renewcommand{\greek@shape}{sl}% + \renewcommand{\greek@bold@shape}{\greek@bold@sl}% +} + +\DeclareOption{cm}{\renewcommand{\math@sfdefault}{cmss}} +\DeclareOption{lm}{\renewcommand{\math@sfdefault}{lmss}} +\DeclareOption{helvet}{\renewcommand{\math@sfdefault}{phv}} +\DeclareOption{cmbright}{\renewcommand{\math@sfdefault}{cmbr}} +\DeclareOption{tx}{\renewcommand{\math@sfdefault}{txss}} +\DeclareOption{px}{\renewcommand{\math@sfdefault}{pxss}} + +\DeclareOption{T1experimental}{\renewcommand{\math@encoding}{T1}} +\DeclareOption{AlphT1experimental}{\renewcommand{\math@lph@encoding}{T1}} + +\DeclareOption{mathrmOrig}{\renewcommand{\mathrm@lph}{cmr}} +\DeclareOption{mathbfOrig}{\renewcommand{\mathbf@lph}{cmr}} +\DeclareOption{mathitOrig}{\renewcommand{\mathit@lph}{cmr}} +\DeclareOption{mathsfOrig}{\renewcommand{\mathsf@lph}{cmss}} + + +\newcommand{\math@sfdefault}{\sfdefault} +\newcommand{\math@encoding}{OT1} +\newcommand{\math@lph@encoding}{OT1} + +\newcommand{\mathrm@lph}{\math@sfdefault} +\newcommand{\mathbf@lph}{\math@sfdefault} +\newcommand{\mathit@lph}{\math@sfdefault} +\newcommand{\mathsf@lph}{\math@sfdefault} + + +% \math@sfGreek: Font for capital greeks: cmss or other? +% \greek@shape: Capital greeks: normal or slanted? [slantedGreek] +% \greek@bold@shape: Bold capital greeks: normal or slanted? [slantedGreek] +% \greek@bold@sl: Bold capital greeks: "sl" if slanted possible +% +% \mathnormal@bold@shape: Bold letters: normal or slanted? (always bold) +% \mathit@bold@series: Bold \mathit (\mathsl): medium or bold? (always slanted) + +\newcommand{\math@sfGreek}{cmss} +\newcommand{\greek@shape}{n} +\newcommand{\greek@bold@shape}{n} +\newcommand{\greek@bold@sl}{n} +\newcommand{\mathnormal@bold@shape}{n} +\newcommand{\mathit@bold@series}{m} + + + +\ProcessOptions + + + +% check the current value of \math@sfdefault + +\edef\tmp@sfdefault{\math@sfdefault} + +\def\tmp@compare{cmss} +\ifx\tmp@sfdefault\tmp@compare + % \sfdefault is cmss + % no slanted bold letters + % no slanted bold capital Greeks + \renewcommand{\math@sfGreek}{cmss} + \renewcommand{\greek@bold@sl}{n} + \renewcommand{\mathnormal@bold@shape}{n} + \renewcommand{\mathit@bold@series}{m} +\fi + +\def\tmp@compare{phv} +\ifx\tmp@sfdefault\tmp@compare + % \sfdefault is phv (helvet.sty) + % slanted bold letters + % no capital Greeks + \renewcommand{\math@sfGreek}{cmss} + \renewcommand{\greek@bold@sl}{n} + \renewcommand{\mathnormal@bold@shape}{sl} + \renewcommand{\mathit@bold@series}{bx} +\fi + +\def\tmp@compare{txss} +\ifx\tmp@sfdefault\tmp@compare + % \sfdefault is txss (txfonts.sty) + % slanted bold letters + % slanted bold capital Greeks + \renewcommand{\math@sfGreek}{txss} + \renewcommand{\greek@bold@sl}{sl} + \renewcommand{\mathnormal@bold@shape}{sl} + \renewcommand{\mathit@bold@series}{bx} +\fi + +\def\tmp@compare{pxss} +\ifx\tmp@sfdefault\tmp@compare + % \sfdefault is pxss (pxfonts.sty) + % slanted bold letters + % slanted bold capital Greeks + \renewcommand{\math@sfGreek}{pxss} + \renewcommand{\greek@bold@sl}{sl} + \renewcommand{\mathnormal@bold@shape}{sl} + \renewcommand{\mathit@bold@series}{bx} +\fi + +\def\tmp@compare{cmbr} +\ifx\tmp@sfdefault\tmp@compare + % \sfdefault is cmbr (cmbright.sty) + % no slanted bold letters + % no slanted bold capital Greeks + \renewcommand{\math@sfGreek}{cmbr} + \renewcommand{\greek@bold@sl}{n} + \renewcommand{\mathnormal@bold@shape}{n} + \renewcommand{\mathit@bold@series}{m} +\fi + +\def\tmp@compare{lmss} +\ifx\tmp@sfdefault\tmp@compare + % \sfdefault is lmss (lmodern.sty sans serif) + % T1 encoding only + % slanted bold letters + % no slanted bold capital Greeks + \renewcommand{\math@encoding}{T1} + \renewcommand{\math@lph@encoding}{T1} + \renewcommand{\math@sfGreek}{cmss} + \renewcommand{\greek@bold@sl}{n} + \renewcommand{\mathnormal@bold@shape}{sl} + \renewcommand{\mathit@bold@series}{bx} +\fi + + + +% Change font for digits and "operators" (\sin, \exp, ...) +% to default sans serif font + +\SetSymbolFont{operators}{normal}{\math@encoding}{\math@sfdefault}{m}{n} +\SetSymbolFont{operators}{bold}{\math@encoding}{\math@sfdefault}{bx}{n} + + +% Most special math symbols remain unmodified (and many of those +% don't have serifs); however all letters (A-Z, a-z) are +% explicitely changed to the sans serif version (again +% default sans serif font). +% +% Unfortunately, there is no standard slanted+bold sans serif font +% available (as Postscript Type 1 font), so try an upright +% version (may be better than nothing). + +\DeclareSymbolFont{SFMath}{\math@encoding}{\math@sfdefault}{m}{sl} +\SetSymbolFont{SFMath}{normal}{\math@encoding}{\math@sfdefault}{m}{sl} +\SetSymbolFont{SFMath}{bold}{\math@encoding}{\math@sfdefault}{bx}{\mathnormal@bold@shape} +\DeclareMathSymbol{A}{\mathalpha}{SFMath}{`A} +\DeclareMathSymbol{B}{\mathalpha}{SFMath}{`B} +\DeclareMathSymbol{C}{\mathalpha}{SFMath}{`C} +\DeclareMathSymbol{D}{\mathalpha}{SFMath}{`D} +\DeclareMathSymbol{E}{\mathalpha}{SFMath}{`E} +\DeclareMathSymbol{F}{\mathalpha}{SFMath}{`F} +\DeclareMathSymbol{G}{\mathalpha}{SFMath}{`G} +\DeclareMathSymbol{H}{\mathalpha}{SFMath}{`H} +\DeclareMathSymbol{I}{\mathalpha}{SFMath}{`I} +\DeclareMathSymbol{J}{\mathalpha}{SFMath}{`J} +\DeclareMathSymbol{K}{\mathalpha}{SFMath}{`K} +\DeclareMathSymbol{L}{\mathalpha}{SFMath}{`L} +\DeclareMathSymbol{M}{\mathalpha}{SFMath}{`M} +\DeclareMathSymbol{N}{\mathalpha}{SFMath}{`N} +\DeclareMathSymbol{O}{\mathalpha}{SFMath}{`O} +\DeclareMathSymbol{P}{\mathalpha}{SFMath}{`P} +\DeclareMathSymbol{Q}{\mathalpha}{SFMath}{`Q} +\DeclareMathSymbol{R}{\mathalpha}{SFMath}{`R} +\DeclareMathSymbol{S}{\mathalpha}{SFMath}{`S} +\DeclareMathSymbol{T}{\mathalpha}{SFMath}{`T} +\DeclareMathSymbol{U}{\mathalpha}{SFMath}{`U} +\DeclareMathSymbol{V}{\mathalpha}{SFMath}{`V} +\DeclareMathSymbol{W}{\mathalpha}{SFMath}{`W} +\DeclareMathSymbol{X}{\mathalpha}{SFMath}{`X} +\DeclareMathSymbol{Y}{\mathalpha}{SFMath}{`Y} +\DeclareMathSymbol{Z}{\mathalpha}{SFMath}{`Z} +\DeclareMathSymbol{a}{\mathalpha}{SFMath}{`a} +\DeclareMathSymbol{b}{\mathalpha}{SFMath}{`b} +\DeclareMathSymbol{c}{\mathalpha}{SFMath}{`c} +\DeclareMathSymbol{d}{\mathalpha}{SFMath}{`d} +\DeclareMathSymbol{e}{\mathalpha}{SFMath}{`e} +\DeclareMathSymbol{f}{\mathalpha}{SFMath}{`f} +\DeclareMathSymbol{g}{\mathalpha}{SFMath}{`g} +\DeclareMathSymbol{h}{\mathalpha}{SFMath}{`h} +\DeclareMathSymbol{i}{\mathalpha}{SFMath}{`i} +\DeclareMathSymbol{j}{\mathalpha}{SFMath}{`j} +\DeclareMathSymbol{k}{\mathalpha}{SFMath}{`k} +\DeclareMathSymbol{l}{\mathalpha}{SFMath}{`l} +\DeclareMathSymbol{m}{\mathalpha}{SFMath}{`m} +\DeclareMathSymbol{n}{\mathalpha}{SFMath}{`n} +\DeclareMathSymbol{o}{\mathalpha}{SFMath}{`o} +\DeclareMathSymbol{p}{\mathalpha}{SFMath}{`p} +\DeclareMathSymbol{q}{\mathalpha}{SFMath}{`q} +\DeclareMathSymbol{r}{\mathalpha}{SFMath}{`r} +\DeclareMathSymbol{s}{\mathalpha}{SFMath}{`s} +\DeclareMathSymbol{t}{\mathalpha}{SFMath}{`t} +\DeclareMathSymbol{u}{\mathalpha}{SFMath}{`u} +\DeclareMathSymbol{v}{\mathalpha}{SFMath}{`v} +\DeclareMathSymbol{w}{\mathalpha}{SFMath}{`w} +\DeclareMathSymbol{x}{\mathalpha}{SFMath}{`x} +\DeclareMathSymbol{y}{\mathalpha}{SFMath}{`y} +\DeclareMathSymbol{z}{\mathalpha}{SFMath}{`z} + +\DeclareMathSymbol{\imath}{\mathalpha}{SFMath}{"10} +\DeclareMathSymbol{\jmath}{\mathalpha}{SFMath}{"11} + + +% The symbols ",", ".", and "\ldotp" should be sans serif +% but upright. + +\DeclareSymbolFont{SFMathUp}{\math@encoding}{\math@sfdefault}{m}{n} +\SetSymbolFont{SFMathUp}{normal}{\math@encoding}{\math@sfdefault}{m}{n} +\SetSymbolFont{SFMathUp}{bold}{\math@encoding}{\math@sfdefault}{bx}{n} +\DeclareMathSymbol{,}{\mathpunct}{SFMathUp}{`,} +\DeclareMathSymbol{.}{\mathord}{SFMathUp}{`.} +\DeclareMathSymbol{\ldotp}{\mathord}{SFMathUp}{`.} + + +% Take capital greek letters from cmss or [tp]xss; other sans serif fonts +% like helvetica don't have capital greeks, so here cmss is +% taken instead of \sfdefault. Unfortunately, this does not work +% within the alphabet commands \mathrm, \mathsf, ... + +\DeclareSymbolFont{SFMathGreek}{OT1}{\math@sfGreek}{m}{\greek@shape} +\SetSymbolFont{SFMathGreek}{normal}{OT1}{\math@sfGreek}{m}{\greek@shape} +\SetSymbolFont{SFMathGreek}{bold}{OT1}{\math@sfGreek}{bx}{\greek@bold@shape} + +\DeclareMathSymbol{\Gamma}{\mathalpha}{SFMathGreek}{"00} +\DeclareMathSymbol{\Delta}{\mathalpha}{SFMathGreek}{"01} +\DeclareMathSymbol{\Theta}{\mathalpha}{SFMathGreek}{"02} +\DeclareMathSymbol{\Lambda}{\mathalpha}{SFMathGreek}{"03} +\DeclareMathSymbol{\Xi}{\mathalpha}{SFMathGreek}{"04} +\DeclareMathSymbol{\Pi}{\mathalpha}{SFMathGreek}{"05} +\DeclareMathSymbol{\Sigma}{\mathalpha}{SFMathGreek}{"06} +\DeclareMathSymbol{\Upsilon}{\mathalpha}{SFMathGreek}{"07} +\DeclareMathSymbol{\Phi}{\mathalpha}{SFMathGreek}{"08} +\DeclareMathSymbol{\Psi}{\mathalpha}{SFMathGreek}{"09} +\DeclareMathSymbol{\Omega}{\mathalpha}{SFMathGreek}{"0A} + + +\DeclareSymbolFont{SFMathUpGreek}{OT1}{\math@sfGreek}{m}{n} +\SetSymbolFont{SFMathUpGreek}{normal}{OT1}{\math@sfGreek}{m}{n} +\SetSymbolFont{SFMathUpGreek}{bold}{OT1}{\math@sfGreek}{bx}{n} + +\DeclareMathSymbol{\upDelta}{\mathalpha}{SFMathUpGreek}{"01} +\DeclareMathSymbol{\upOmega}{\mathalpha}{SFMathUpGreek}{"0A} + + +% Define new behavior for math alphabet commands + + +\SetMathAlphabet{\mathnormal}{normal}{\math@lph@encoding}{\math@sfdefault}{m}{sl} +\SetMathAlphabet{\mathnormal}{bold}{\math@lph@encoding}{\math@sfdefault}{bx}{\mathnormal@bold@shape} + +\SetMathAlphabet{\mathrm}{normal}{\math@lph@encoding}{\mathrm@lph}{m}{n} +\SetMathAlphabet{\mathrm}{bold}{\math@lph@encoding}{\mathrm@lph}{bx}{n} + +\SetMathAlphabet{\mathbf}{normal}{\math@lph@encoding}{\mathbf@lph}{bx}{n} +\SetMathAlphabet{\mathbf}{bold}{\math@lph@encoding}{\mathbf@lph}{bx}{n} + +\SetMathAlphabet{\mathit}{normal}{\math@lph@encoding}{\mathit@lph}{m}{sl} +\SetMathAlphabet{\mathit}{bold}{\math@lph@encoding}{\mathit@lph}{\mathit@bold@series}{sl} + +\SetMathAlphabet{\mathsf}{normal}{\math@lph@encoding}{\mathsf@lph}{m}{n} +\SetMathAlphabet{\mathsf}{bold}{\math@lph@encoding}{\mathsf@lph}{bx}{n} + + + +% Define new math alphabet command \mathsl + +\DeclareMathAlphabet{\mathsl}{\math@lph@encoding}{\math@sfdefault}{m}{sl} +\SetMathAlphabet{\mathsl}{bold}{\math@lph@encoding}{\math@sfdefault}{\mathit@bold@series}{sl} + + +\endinput diff --git a/gdb/vsis-aufgabenblatt.cls b/gdb/vsis-aufgabenblatt.cls new file mode 100644 index 0000000..c66bb76 --- /dev/null +++ b/gdb/vsis-aufgabenblatt.cls @@ -0,0 +1,101 @@ +% VSIS-Aufgabenblatt +% +% LaTeX-Klasse zur Erstellung von Aufgabenblaettern inkl. optionaler Musterloesung im VSIS-Stil. +% +% Entworfen von Kristof Hamann auf Grundlage eines existierenden Designs aus aelteren Semestern. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{vsis-aufgabenblatt}[2009/11/08 v1.0 VSIS-Aufgabenblaetter] + +\LoadClass[a4paper,parskip=half-,numbers=noenddot]{scrartcl} + +% Kodierung der Schriftarten wegen Umlauten +\RequirePackage[T1]{fontenc} + +% Silbentrennung +\RequirePackage[ngerman]{babel} + +% Einbinden von Grafiken (z.B. VSIS-Logo) +\RequirePackage{graphicx} +% Definieren von Farben +\RequirePackage{xcolor} +\definecolor{shadecolor}{gray}{0.9} +% Rahmen (z.B. fuer Musterloesungen) +\RequirePackage{framed} +% Erweiterte Tabellen (z.B. fuer Kopfzile) +\RequirePackage{tabularx} +% Tabellenzellen ueber mehrere Zeilen (z.B. fuer Kopfzeile) +\RequirePackage{multirow} + +\renewcommand{\familydefault}{\sfdefault} +\RequirePackage{sfmath} + +\RequirePackage{uri} + +% Seitenlayout +\RequirePackage{scrpage2} +\setlength{\headsep}{3.5cm} +\setlength{\oddsidemargin}{-1cm} +\setlength{\textwidth}{18cm} +\setkomafont{pageheadfoot}{\small} + + +% Section = Aufgabe +% \othersectionlevelsformat{Gliederungsname}{}{Zaehlerausgabe} +%\renewcommand*{\othersectionlevelsformat}[3]{\AufgabeTitel~#3:\enskip} +% Aufzaehlungen fuer Teilaufgaben +%\renewcommand{\labelenumi}{\alph{enumi})} +%\renewcommand{\labelenumii}{\roman{enumii})} + + + +% Optionales Einblenden von Musterloesungen, Layout von Musterloesungen +\newif\ifmusterloesung +\musterloesungfalse +\newcommand{\aufgabe}[2]{\section{#1\hfill\normalfont(#2)}} +\newenvironment{musterloesung}{\begin{shaded}\textbf{\MusterloesungTitel:}\\[0.5em]}{\end{shaded}} + + +% Kopfzeile mit VSIS-Logo und Vorlesungsdaten +\pagestyle{scrheadings} +\chead{ +\begin{tabularx}{\textwidth}{|p{2.2cm}|X|X|X|X|} +\cline{1-5} +& & \multicolumn{3}{l|}{}\\[-0.95em] +\multirow{4}{*}{\includegraphics[width=2.2cm]{vsis.pdf}} & \VorlesungTitel & \multicolumn{3}{l|}{\textbf{\Vorlesung}\hfill\Semester} \\ +& & \multicolumn{3}{l|}{}\\[-0.95em] +\cline{2-5} +& & \multicolumn{3}{l|}{}\\[-0.95em] +& \AufgabenblattTitel & \multicolumn{3}{l|}{\bfseries\Aufgabenblatt{} \ifmusterloesung(\MusterloesungTitelblatt)\fi} \\ +& & \multicolumn{3}{l|}{}\\[-0.95em] +\cline{2-5} +& & \multicolumn{3}{l|}{}\\[-0.95em] +& \PunktezahlTitel & \multicolumn{3}{l|}{\bfseries\Punktezahl} \\ +& & \multicolumn{3}{l|}{}\\[-0.95em] +\cline{2-5} +& & & &\\[-0.95em] +& \AusgabedatumTitel & \bfseries\Ausgabedatum & \AbgabedatumTitel & \bfseries\Abgabedatum \\[0.25em] +\cline{1-5} +\end{tabularx} +} + + + +% GDB-Makros laden +\RequirePackage{vsis-gdb} + +% Variablen fuer Seitenkopf: Setzen mit \renewcommand{\Variable}{Wert} +\newcommand{\Vorlesung}{} +\newcommand{\Semester}{} +\newcommand{\Ausgabedatum}{} +\newcommand{\Abgabedatum}{} +\newcommand{\Aufgabenblatt}{} +\newcommand{\Punktezahl}{} +\newcommand{\MusterloesungTitel}{L\"osungsvorschlag} +\newcommand{\MusterloesungTitelblatt}{L\"osungsvorschl\"age} +\newcommand{\VorlesungTitel}{Lehrveranstaltung} +\newcommand{\AufgabenblattTitel}{Aufgabenzettel} +\newcommand{\PunktezahlTitel}{Gesamtpunktzahl} +\newcommand{\AusgabedatumTitel}{Ausgabe} +\newcommand{\AbgabedatumTitel}{Abgabe} +\newcommand{\AufgabeTitel}{Aufgabe} diff --git a/gdb/vsis-gdb.sty b/gdb/vsis-gdb.sty new file mode 100644 index 0000000..d12abac --- /dev/null +++ b/gdb/vsis-gdb.sty @@ -0,0 +1,139 @@ +% +% Nuetzliche Makros und Einstellungen fuer GDB +% +% von Kristof Hamann, teilweise basierend auf Aufgabenzettel vergangener Jahre +% +% Changelog: +% +% v1.2: +% 2009-11-27 KH: Makro \wert angepasst (Schriftart) +% +% v1.1: +% 2009-11-11 KH: Neues Makro \SF +% 2009-11-11 KH: Makro \wert angepasst (Anführungszeichen) +% +% v1.0: +% 2009-11-09 KH: Erste Version der Makro-Sammlung +\usepackage{ulsy} + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{vsis-gdb}[2009/11/27 v1.2 Nuetzliche Makros fuer GDB] + +% Gestricheltes Unterstreichen, z.B. für Relationales Datenbankmodell (Fremdschlüssel) +\RequirePackage[normalem]{ulem} +\def\dashuline{\bgroup + \ifdim\ULdepth=\maxdimen % Set depth based on font, if not set already + \settodepth\ULdepth{(j}\advance\ULdepth.4pt\fi + \markoverwith{\kern.1em + \vtop{\kern\ULdepth \hrule width .3em}% + \kern.1em}\ULon} +\def\soliduline{\bgroup \markoverwith{\hbox + {\vtop{\kern.3ex\hrule width.2em}}}\ULon} + +% Operatoren der relationalen Algebra +\newcommand*{\projektion}[1]{\pi_{#1}} +\newcommand*{\selektion}[1]{\sigma_{#1}} +\newcommand*{\symdiff}{\triangleright} +\newcommand*{\natverbund}{\bowtie} +\newcommand*{\verbund}[1]{\raisebox{-1ex}{\(\stackrel{\textrm{\large$\natverbund$}}{_{#1}}\)}} +\newcommand*{\wert}[1]{\mathrm{``#1``}} +\newcommand*{\SF}{\textup{SF}} + +% textsubscript +\newcommand{\ts}{\textsubscript} + + +% TikZ fuer Grafiken, wie ER-Diagramme +\RequirePackage{tikz} +\usetikzlibrary{arrows,positioning,calc,fit,shapes} +% the vsis blue color +% RGB value / 255 +\definecolor{vsisBlue}{rgb}{0.596078,0.7176471,0.937254922} +\definecolor{arrowBlue}{rgb}{0.15294117,0.31372549,0.7725490196} + +\tikzset{ +% Layout fuer ER-Diagramme + er-element/.style={ + draw, + fill=white, + top color=white, + bottom color=vsisBlue, + minimum width=2cm, + minimum height=0.8cm, + }, + entity/.style={ + er-element, + rectangle, + }, + weakentity/.style={ + er-element, + rectangle, + double distance=1pt + }, + relationship/.style={ + er-element, + diamond, + aspect=2, + inner sep=2pt, + font=\footnotesize, + }, + weakrelationship/.style={ + er-element, + diamond, + aspect=2, + inner sep=2pt, + double distance=1pt, + font=\footnotesize, + }, + multivalentattribut/.style={ + er-element, + ellipse, + inner sep=0, + double distance=1pt, + font=\footnotesize, + }, + attribut/.style={ + er-element, + ellipse, + inner sep=0, + font=\footnotesize, + }, + erbt/.style={ + draw, + >=open triangle 45, + ->, + }, +% Layout fuer referenzgraphen + refGraph/.style={ + draw, + fill=white, + minimum width=2cm, + minimum height=0.8cm, + }, + tabelle/.style={ + refGraph, + rectangle, + }, +} + +% Layouts fuer Grafiken +\tikzset{ + smalll/.style={ + font=\scriptsize, + align=left, + }, + smallr/.style={ + font=\scriptsize, + align=right, + }, +} + + + + + + +\RequirePackage[utf8]{inputenc} + +\RequirePackage{vsis-gdb} % Nuetzliche Makros fuer GDB +\RequirePackage{booktabs} % Linien für Tabellen