From 3511e1749d139ab3248d3fb4add34726a86b8fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 4 Jun 2021 16:30:42 +0200 Subject: modernize tests --- buch/common/test-common.tex | 73 +++++++++++++++++++++++++++++++++++++++++++++ buch/common/test1.tex | 21 +++++++++++++ buch/common/test2.tex | 21 +++++++++++++ buch/common/test3.tex | 21 +++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 buch/common/test-common.tex create mode 100644 buch/common/test1.tex create mode 100644 buch/common/test2.tex create mode 100644 buch/common/test3.tex (limited to 'buch/common') diff --git a/buch/common/test-common.tex b/buch/common/test-common.tex new file mode 100644 index 0000000..289e59c --- /dev/null +++ b/buch/common/test-common.tex @@ -0,0 +1,73 @@ +% +% test.tex -- Gemeinsamer Rahmen für Kurztests +% +% (c) 2021 Prof. Dr. Andreas Mueller, OST Ostschweizer Fachhochschule +% +\documentclass[a4paper,12pt]{article} +\usepackage{geometry} +\geometry{papersize={210mm,297mm},total={165mm,260mm}} +\usepackage{ngerman} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{times} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{amsfonts} +\usepackage{amsthm} +\usepackage{graphicx} +\usepackage{fancyhdr} +\usepackage{textcomp} +\usepackage[all]{xy} +\usepackage{txfonts} +\usepackage{alltt} +\usepackage{verbatim} +\usepackage{paralist} +\usepackage{makeidx} +\usepackage{array} +\usepackage{hyperref} +\usepackage{caption} +\usepackage{subcaption} +\usepackage{standalone} +\usepackage{environ} +\usepackage{tikz} +\input{../common/linsys.tex} +\newcounter{beispiel} +\newenvironment{beispiele}{ +\bgroup\smallskip\parindent0pt\bf Beispiele\egroup + +\begin{list}{\arabic{beispiel}.} + {\usecounter{beispiel} + \setlength{\labelsep}{5mm} + \setlength{\rightmargin}{0pt} +}}{\end{list}} +\newcounter{uebungsaufgabe} +% environment fuer uebungsaufgaben +\newenvironment{uebungsaufgaben}{ +\begin{list}{\arabic{uebungsaufgabe}.} + {\usecounter{uebungsaufgabe} + \setlength{\labelwidth}{2cm} + \setlength{\leftmargin}{0pt} + \setlength{\labelsep}{5mm} + \setlength{\rightmargin}{0pt} + \setlength{\itemindent}{0pt} +}}{\end{list}\vfill\pagebreak} +\newenvironment{teilaufgaben}{ +\begin{enumerate} +\renewcommand{\labelenumi}{\alph{enumi})} +}{\end{enumerate}} +% Loesung +\NewEnviron{loesung}{% +\begin{proof}[Lösung]% +\renewcommand{\qedsymbol}{$\bigcirc$} +\BODY +\end{proof}} +\NewEnviron{bewertung}{\relax} +\NewEnviron{diskussion}{ +\BODY +} +\RenewEnviron{loesung}{\relax} +\RenewEnviron{diskussion}{\relax} +\newenvironment{hinweis}{% +\renewcommand{\qedsymbol}{} +\begin{proof}[Hinweis]}{\end{proof}} + diff --git a/buch/common/test1.tex b/buch/common/test1.tex new file mode 100644 index 0000000..1f5a155 --- /dev/null +++ b/buch/common/test1.tex @@ -0,0 +1,21 @@ +% +% test1.tex -- Test 1 +% +% (c) 2021 Prof. Dr. Andreas Mueller, OST +% +\input{common/test-common.tex} + +\begin{document} +{\parindent0pt\hbox to\hsize{% +Name: \hbox to7cm{\dotfill} Vorname: \dotfill}} +\vspace{0.5cm} + +\section*{Kurztest 1} + +\begin{uebungsaufgaben} + +\input{aufgaben1.tex} + +\end{uebungsaufgaben} + +\end{document} diff --git a/buch/common/test2.tex b/buch/common/test2.tex new file mode 100644 index 0000000..0980e44 --- /dev/null +++ b/buch/common/test2.tex @@ -0,0 +1,21 @@ +% +% test2.tex -- Test 2 +% +% (c) 2012 Prof. Dr. Andreas Mueller, OST +% +\input{common/test-common.tex} + +\begin{document} +{\parindent0pt\hbox to\hsize{% +Name: \hbox to7cm{\dotfill} Vorname: \dotfill}} +\vspace{0.5cm} + +\section*{Kurztest 2} + +\begin{uebungsaufgaben} + +\input{aufgaben2.tex} + +\end{uebungsaufgaben} + +\end{document} diff --git a/buch/common/test3.tex b/buch/common/test3.tex new file mode 100644 index 0000000..8b24262 --- /dev/null +++ b/buch/common/test3.tex @@ -0,0 +1,21 @@ +% +% test3.tex -- Test 3 +% +% (c) 2021 Prof. Dr. Andreas Mueller, OST +% +\input{common/test-common.tex} + +\begin{document} +{\parindent0pt\hbox to\hsize{% +Name: \hbox to7cm{\dotfill} Vorname: \dotfill}} +\vspace{0.5cm} + +\section*{Kurztest 3} + +\begin{uebungsaufgaben} + +\input{aufgaben3.tex} + +\end{uebungsaufgaben} + +\end{document} -- cgit v1.2.1 From 5c7208d21b9dfb6194f690144047b6761d9d260b Mon Sep 17 00:00:00 2001 From: Roy Seitz Date: Sun, 11 Jul 2021 12:27:51 +0200 Subject: Fixing UTF8 support for listings. --- buch/common/lststyles.tex | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'buch/common') diff --git a/buch/common/lststyles.tex b/buch/common/lststyles.tex index b1105ed..15ac379 100644 --- a/buch/common/lststyles.tex +++ b/buch/common/lststyles.tex @@ -12,6 +12,29 @@ \definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue \definecolor{mylilas}{RGB}{170,55,241} +\lstset{ + extendedchars=true, + basicstyle=\ttfamily, + literate=% + {€}{\euro}1% + {§}{\S}1% + {°}{\textdegree{}}1% + {ä}{{\"a}}1% + {ö}{{\"o}}1% + {ü}{{\"u}}1% + {ß}{{\ss}}1% + {Ä}{{\"A}}1% + {Ö}{{\"O}}1% + {Ü}{{\"U}}1% + {µ}{\textmu}1% + {¹}{{\textsuperscript{1}}}1% + {²}{{\textsuperscript{2}}}1% + {³}{{\textsuperscript{3}}}1% + {¼}{\textonequarter}1% + {½}{\textonehalf}1% + {¢}{\textcent}1% +} + \lstdefinestyle{Matlab}{ numbers=left, belowcaptionskip=1\baselineskip, -- cgit v1.2.1 From 332a98bc0f292fa54bc2d72ee0fd9e659b39d09d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 22 Jul 2021 15:22:48 +0200 Subject: add new ziel environment --- buch/common/macros.tex | 1 + 1 file changed, 1 insertion(+) (limited to 'buch/common') diff --git a/buch/common/macros.tex b/buch/common/macros.tex index 2c6eea2..5783122 100644 --- a/buch/common/macros.tex +++ b/buch/common/macros.tex @@ -108,6 +108,7 @@ \newtheorem{forderung}{Forderung}[chapter] \newtheorem{konsequenz}[satz]{Konsequenz} \newtheorem{algorithmus}[satz]{Algorithmus} +\newtheorem{ziel}[satz]{Ziel} \renewcommand{\floatpagefraction}{0.7} \definecolor{darkgreen}{rgb}{0,0.6,0} -- cgit v1.2.1