aboutsummaryrefslogtreecommitdiffstats
path: root/buch/common
diff options
context:
space:
mode:
authorAndreas Müller <andreas.mueller@hsr.ch>2020-12-03 17:18:03 +0100
committerAndreas Müller <andreas.mueller@hsr.ch>2020-12-03 17:18:03 +0100
commitac4b80be810fc615b426557ad86f0cb8092f5304 (patch)
tree2afe81a7f8a178fa479a91bec4cf61a54f8eae9f /buch/common
parentsome more ideas (diff)
downloadSeminarMatrizen-ac4b80be810fc615b426557ad86f0cb8092f5304.tar.gz
SeminarMatrizen-ac4b80be810fc615b426557ad86f0cb8092f5304.zip
add files
Diffstat (limited to 'buch/common')
-rw-r--r--buch/common/3dimagetemplate.tex37
-rwxr-xr-xbuch/common/Makefile.inc52
-rw-r--r--buch/common/farbseiten.sh217
-rw-r--r--buch/common/lststyles.tex139
-rw-r--r--buch/common/macros.tex115
-rw-r--r--buch/common/packages.tex72
-rw-r--r--buch/common/teilnehmer.tex25
-rw-r--r--buch/common/tikztemplate.tex21
-rw-r--r--buch/common/titlepage.tex34
9 files changed, 712 insertions, 0 deletions
diff --git a/buch/common/3dimagetemplate.tex b/buch/common/3dimagetemplate.tex
new file mode 100644
index 0000000..5706a42
--- /dev/null
+++ b/buch/common/3dimagetemplate.tex
@@ -0,0 +1,37 @@
+%
+% 3dimagetemplate.tex
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+\documentclass[tikz]{standalone}
+\usepackage{times}
+\usepackage{amsmath}
+\usepackage{txfonts}
+\usepackage[utf8]{inputenc}
+\usepackage{graphics}
+\usetikzlibrary{arrows,intersections,math}
+\usepackage{ifthen}
+\begin{document}
+
+\newboolean{showgrid}
+\setboolean{showgrid}{false}
+\def\breite{7}
+\def\hoehe{4}
+
+\begin{tikzpicture}[>=latex,thick]
+
+% Povray Bild
+\node at (0,0) {\includegraphics[width=14cm]{3dimage.jpg}};
+
+% Gitter
+\ifthenelse{\boolean{showgrid}}{
+\draw[step=0.1,line width=0.1pt] (-\breite,-\hoehe) grid (\breite, \hoehe);
+\draw[step=0.5,line width=0.4pt] (-\breite,-\hoehe) grid (\breite, \hoehe);
+\draw (-\breite,-\hoehe) grid (\breite, \hoehe);
+\fill (0,0) circle[radius=0.05];
+}{}
+
+\end{tikzpicture}
+
+\end{document}
+
diff --git a/buch/common/Makefile.inc b/buch/common/Makefile.inc
new file mode 100755
index 0000000..fec5a33
--- /dev/null
+++ b/buch/common/Makefile.inc
@@ -0,0 +1,52 @@
+#
+# Makefile.inc -- gemeinsame Teile des Makefiles für das Buchprojekt
+#
+# (c) 2021 Prof Dr Andreas Mueller, OST Ostschweizer Fachhochschule
+#
+
+
+SUBDIRECTORIES = chapters
+
+.PHONY: images
+
+images:
+ for d in $(SUBDIRECTORIES); \
+ do \
+ (cd $${d}; make images); \
+ done
+
+BUCHFILES = \
+ common/macros.tex \
+ common/lststyles.tex \
+ common/packages.tex \
+ common/titlepage.tex \
+ common/teilnehmer.tex \
+ $(CHAPTERS) \
+ chapters/references.bib \
+ $(PAPERFILES)
+
+THEMA_FILES =
+
+TEXFILES = $(BUCHFILES) $(THEMA_FILES)
+
+# References des ersten Teils
+
+buch.bbl: buch.aux
+ bibtex buch
+
+clean: cleansubdir
+ rm -f *.bbl *.aux *.log *.out *.run.xml *.pdf *.blg *.idx *.ind \
+ *.ilg *.toc *.synctex.gz *.auxlock *.bak *-blx.bib *.dvi
+
+cleansubdir:
+ for d in $(SUBDIRECTORIES); \
+ do \
+ if [ -f $${d}/Makefile ]; \
+ then \
+ cd $${d}; make clean; cd ..; \
+ fi; \
+ done
+
+farbseiten.csv: farbseiten.txt
+ awk '{ printf("%d,", $$1) } END {printf("\n")}' farbseiten.txt \
+ > farbseiten.csv
diff --git a/buch/common/farbseiten.sh b/buch/common/farbseiten.sh
new file mode 100644
index 0000000..afccf66
--- /dev/null
+++ b/buch/common/farbseiten.sh
@@ -0,0 +1,217 @@
+#! /bin/bsh
+#
+# farbseiten.sh -- Formattierung der Farbseiteninfo für die Druckerei
+#
+# (c) 2020 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+#
+awk 'BEGIN {
+ result = ""
+ counter = 0
+}
+{
+ if (length(result) == 0) {
+ result = $1
+ } else {
+ result = sprintf("%s,%d", result, $1)
+ }
+ counter++
+}
+END {
+ printf("%s\n", result)
+ printf("Anzahl Farbseiten: %d\n", counter)
+}' <<EOF
+13
+16
+17
+19
+21
+23
+24
+25
+29
+30
+31
+34
+37
+42
+45
+49
+50
+52
+53
+55
+59
+65
+71
+72
+74
+76
+77
+78
+84
+85
+87
+88
+90
+91
+95
+100
+104
+107
+109
+110
+111
+113
+114
+116
+117
+120
+122
+123
+125
+140
+149
+150
+154
+155
+161
+162
+163
+165
+167
+170
+177
+187
+189
+190
+191
+192
+197
+204
+209
+210
+216
+217
+219
+220
+224
+225
+226
+228
+229
+230
+232
+233
+235
+236
+239
+241
+245
+246
+251
+266
+268
+269
+270
+271
+272
+273
+276
+278
+281
+284
+285
+286
+287
+288
+293
+300
+304
+305
+306
+307
+309
+310
+311
+312
+313
+316
+318
+319
+321
+324
+326
+328
+329
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+345
+347
+348
+349
+350
+352
+353
+357
+358
+359
+360
+365
+369
+370
+378
+387
+388
+389
+390
+391
+401
+404
+405
+406
+407
+408
+410
+411
+412
+414
+415
+416
+418
+420
+422
+423
+424
+425
+426
+427
+428
+434
+435
+436
+443
+447
+448
+449
+452
+455
+456
+457
+458
+460
+461
+469
+473
+474
+475
+481
+EOF
diff --git a/buch/common/lststyles.tex b/buch/common/lststyles.tex
new file mode 100644
index 0000000..b1105ed
--- /dev/null
+++ b/buch/common/lststyles.tex
@@ -0,0 +1,139 @@
+%
+% lststyles.tex -- styles for the listings package
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+
+%
+% lststyle for Matlab
+%
+\usepackage{listings}
+\usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
+\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
+\definecolor{mylilas}{RGB}{170,55,241}
+
+\lstdefinestyle{Matlab}{
+ numbers=left,
+ belowcaptionskip=1\baselineskip,
+ breaklines=true,
+ frame=L,
+ linewidth=13cm,
+ xleftmargin=1cm,
+ language=Matlab,
+ showstringspaces=false,
+ basicstyle=\footnotesize\ttfamily,
+ keywordstyle=\bfseries\color{green!40!black},
+ commentstyle=\itshape\color{purple!40!black},
+ identifierstyle=\color{blue},
+ stringstyle=\color{orange},
+ numberstyle=\ttfamily\tiny,
+ morestring=*[d]{"},
+ numbersep=9pt,
+ captionpos=b
+}
+\lstdefinelanguage{Matlab}{
+ keywords={function,global,zeros,switch,case,otherwise,end,sin,cos,cot,%
+ floor,ode45,hold,polarplot,for,if,else,norm,abs,diag,sqrt,randn,hess,format,short,long},
+ sensitive=true
+}
+
+%
+% lst style for Maxima
+%
+\lstdefinelanguage{Maxima}{
+ keywords={addrow,addcol,zeromatrix,ident,augcoefmatrix,ratsubst,sum,diff,%
+ ev,tex,with_stdout,nouns,express,depends,load,length,submatrix,div,grad,%
+ curl,matrix,invert,lambda,facsum,expand,false,then,if,else,subst,%
+ batchload,rootscontract,solve,part,assume,sqrt,integrate,abs,inf,exp,%
+ sin,cos,sinh,cosh,taylor,ratsimp},
+ sensitive=true,
+ comment=[n][\itshape]{/*}{*/}
+}
+\lstdefinestyle{Maxima}{
+ numbers=left,
+ belowcaptionskip=1\baselineskip,
+ breaklines=true,
+ frame=L,
+ linewidth=13cm,
+ xleftmargin=1cm,
+ language=Maxima,
+ showstringspaces=false,
+ basicstyle=\footnotesize\ttfamily,
+ keywordstyle=\bfseries\color{green!40!black},
+ commentstyle=\itshape\color{purple!40!black},
+ identifierstyle=\color{blue},
+ stringstyle=\color{orange},
+ numberstyle=\ttfamily\tiny
+ captionpos=b
+}
+
+%
+% lst style for Octave
+%
+\lstdefinelanguage{Octave}{
+ keywords={function,global,size,zeros,switch,case,otherwise,end,sin,cos,cot,%
+ floor,ode45,hold,polarplot,endfunction,size,endswitch,cat,printf,%
+ for,endfor,if,return,endif,abs,while,endwhile},
+ sensitive=true,
+}
+
+\lstdefinestyle{Octave}{
+ numbers=left,
+ abovecaptionskip=1\baselineskip,
+ captionpos=b,
+ breaklines=true,
+ frame=L,
+ linewidth=13cm,
+ xleftmargin=1cm,
+ language=Octave,
+ showstringspaces=false,
+ basicstyle=\footnotesize\ttfamily,
+ keywordstyle=\bfseries\color{green!40!black},
+ commentstyle=\itshape\color{purple!40!black},
+ identifierstyle=\color{blue},
+ stringstyle=\color{orange},
+ numberstyle=\ttfamily\tiny,
+}
+
+%
+% lst style for C
+%
+\lstdefinestyle{C}{
+ numbers=left,
+ abovecaptionskip=1\baselineskip,
+ captionpos=b,
+ breaklines=true,
+ frame=L,
+ linewidth=13cm,
+ xleftmargin=1cm,
+ language=C,
+ showstringspaces=false,
+ basicstyle=\footnotesize\ttfamily,
+ keywordstyle=\bfseries\color{green!40!black},
+ commentstyle=\itshape\color{purple!40!black},
+ identifierstyle=\color{blue},
+ stringstyle=\color{orange},
+ numberstyle=\ttfamily\tiny,
+}
+
+%
+% lst style for Python
+%
+\lstdefinestyle{Python}{
+ numbers=left,
+ abovecaptionskip=1\baselineskip,
+ captionpos=b,
+ breaklines=true,
+ frame=L,
+ linewidth=13cm,
+ xleftmargin=1cm,
+ language=Python,
+ showstringspaces=false,
+ basicstyle=\footnotesize\ttfamily,
+ keywordstyle=\bfseries\color{green!40!black},
+ commentstyle=\itshape\color{purple!40!black},
+ identifierstyle=\color{blue},
+ stringstyle=\color{orange},
+ numberstyle=\ttfamily\tiny
+}
+
diff --git a/buch/common/macros.tex b/buch/common/macros.tex
new file mode 100644
index 0000000..bc1c6ea
--- /dev/null
+++ b/buch/common/macros.tex
@@ -0,0 +1,115 @@
+%
+% macros.tex -- some common macro definitions
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+\hypersetup{
+ linktoc=all,
+ linkcolor=blue
+}
+\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{uebungsaufgabezaehler}
+% environment fuer uebungsaufgaben
+\newenvironment{uebungsaufgaben}{%
+}{%
+\vfill\pagebreak}
+\newenvironment{teilaufgaben}{
+\begin{enumerate}
+\renewcommand{\labelenumi}{\alph{enumi})}
+}{\end{enumerate}}
+% Aufgabe
+\newcounter{problemcounter}[chapter]
+\def\aufgabenpath{chapters/uebungsaufgaben/}
+\def\ainput#1{\input\aufgabenpath/#1}
+\def\verbatimainput#1{\expandafter\verbatiminput{\aufgabenpath/#1}}
+\def\aufgabetoplevel#1{%
+\expandafter\def\expandafter\inputpath{#1}%
+\let\aufgabepath=\inputpath
+}
+\def\includeagraphics[#1]#2{\expandafter\includegraphics[#1]{\aufgabepath#2}}
+% \aufgabe
+\renewcommand\theproblemcounter{\thechapter.\arabic{problemcounter}}
+\newcommand{\uebungsaufgabe}[1]{%
+\refstepcounter{problemcounter}%
+\label{#1}%
+\bigskip{\parindent0pt\strut}\hbox{\bf\theproblemcounter. }%
+\expandafter\def\csname aufgabenpath\endcsname{\inputpath/}%
+\expandafter\input{\aufgabenpath/#1.tex}
+}
+% linsys
+\newcolumntype{\linsysR}{>{$}r<{$}}
+\newcolumntype{\linsysL}{>{$}l<{$}}
+\newcolumntype{\linsysC}{>{$}c<{$}}
+\newenvironment{linsys}[1]{%
+\begin{tabular}{*{#1}{\linsysR@{\;}\linsysC}@{\;}\linsysR}}%
+{\end{tabular}}
+
+% Loesung
+\def\swallow#1{
+%nothing
+}
+\NewEnviron{loesung}[1][Lösung]{%
+\begin{proof}[#1]%
+\renewcommand{\qedsymbol}{$\bigcirc$}
+\BODY
+\end{proof}
+}
+\NewEnviron{bewertung}{%
+\begin{proof}[Bewertung]%
+\renewcommand{\qedsymbol}{}
+\BODY
+\end{proof}
+}
+\NewEnviron{diskussion}{%
+\begin{proof}[Diskussion]%
+\renewcommand{\qedsymbol}{}
+\BODY
+\end{proof}
+}
+\NewEnviron{hinweis}{%
+\begin{proof}[Hinweis]%
+\renewcommand{\qedsymbol}{}
+\BODY
+\end{proof}
+}
+\def\keineloesungen{%
+\RenewEnviron{loesung}{\relax}
+\RenewEnviron{bewertung}{\relax}
+\RenewEnviron{diskussion}{\relax}
+}
+\newenvironment{beispiel}{%
+\begin{proof}[Beispiel]%
+\renewcommand{\qedsymbol}{$\bigcirc$}
+}{\end{proof}}
+
+\allowdisplaybreaks
+
+\lhead{Inhaltsverzeichnis}
+\rhead{}
+\tableofcontents
+\newtheorem{satz}{Satz}[chapter]
+\newtheorem{hilfssatz}[satz]{Hilfssatz}
+\newtheorem{korollar}[satz]{Korollar}
+\newtheorem{lemma}[satz]{Lemma}
+\newtheorem{definition}[satz]{Definition}
+\newtheorem{annahme}[satz]{Annahme}
+\newtheorem{problem}[satz]{Problem}
+\newtheorem{aufgabe}[satz]{Aufgabe}
+\newtheorem*{problem*}{Problem}
+\newtheorem{forderung}{Forderung}[chapter]
+\newtheorem{konsequenz}[satz]{Konsequenz}
+\newtheorem{algorithmus}[satz]{Algorithmus}
+\renewcommand{\floatpagefraction}{0.7}
+
+\definecolor{darkgreen}{rgb}{0,0.6,0}
+\definecolor{darkred}{rgb}{0.8,0,0}
+\definecolor{orange}{rgb}{1,0.6,0}
+
diff --git a/buch/common/packages.tex b/buch/common/packages.tex
new file mode 100644
index 0000000..f3c0bb8
--- /dev/null
+++ b/buch/common/packages.tex
@@ -0,0 +1,72 @@
+%
+% packages.tex -- common packages
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+\usepackage{etex}
+\usepackage{geometry}
+\geometry{papersize={170mm,240mm},total={140mm,200mm},top=21mm,bindingoffset=10mm}
+\usepackage[english,ngerman]{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{cancel}
+\usepackage{times}
+\usepackage{amsmath,amscd}
+\usepackage{amssymb}
+\usepackage{amsfonts}
+\usepackage{amsthm}
+\usepackage{graphicx}
+\usepackage{fancyhdr}
+\usepackage{textcomp}
+\usepackage{txfonts}
+\newcommand\hmmax{0}
+\newcommand\bmmax{0}
+\usepackage{bm}
+\usepackage{epic}
+\usepackage{verbatim}
+%\usepackage{suffix}
+\usepackage{paralist}
+\usepackage{makeidx}
+\usepackage{array}
+\usepackage{hyperref}
+\usepackage{subfigure}
+\usepackage{tikz}
+\usepackage{pgfplots}
+\usepackage{pgfplotstable}
+\usepackage{pdftexcmds}
+\usepackage{pgfmath}
+\usepackage[autostyle=false,english=american]{csquotes}
+\usepackage{wasysym}
+\usepackage{environ}
+\usepackage{appendix}
+\usepackage{placeins}
+\usepackage[all]{xy}
+\usetikzlibrary{calc,intersections,through,backgrounds,graphs,positioning,shapes,arrows,fit,math}
+\usetikzlibrary{patterns,decorations.pathreplacing}
+\usetikzlibrary{decorations.pathreplacing}
+\usetikzlibrary{external}
+\usetikzlibrary{datavisualization}
+\usepackage[europeanvoltages,
+ europeancurrents,
+ europeanresistors, % rectangular shape
+ americaninductors, % "4-bumbs" shape
+ europeanports, % rectangular logic ports
+ siunitx, % #1<#2>
+ emptydiodes,
+ noarrowmos,
+ smartlabels] % lables are rotated in a smart way
+ {circuitikz} %
+\usepackage{siunitx}
+\usepackage{tabularx}
+\usetikzlibrary{arrows}
+\usepackage{algpseudocode}
+\usepackage{algorithm}
+\usepackage{gensymb}
+\usepackage{mathtools}
+
+% import the listing styles
+\input{common/lststyles.tex}
+
+\usepackage{caption}
+\usepackage[mode=buildnew]{standalone}
+\usepackage[backend=bibtex]{biblatex}
diff --git a/buch/common/teilnehmer.tex b/buch/common/teilnehmer.tex
new file mode 100644
index 0000000..b2100b2
--- /dev/null
+++ b/buch/common/teilnehmer.tex
@@ -0,0 +1,25 @@
+%
+% teilnehmer.tex -- Liste der Seminarteilnehmer auf der Titelseite
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+
+Joshua Baer, % E
+Marius Baumann, % E
+Reto Fritsche, % E
+Ahmet Güzel%, % E
+\\
+Pascal Honegger, % I
+Alain Keller, % E
+Jan Marbach%, % E
+\\
+Andrea Mozzin Vellen, % E
+Naoki Pross, % E
+Pascal Andreas Schmid%, % B
+\\
+Thierry Schwaller, % E
+Michael Steiner, % E
+Tim Tönz, % E
+Fabio Viecelli%, % B
+\\
+Lukas Zogg%, % B
diff --git a/buch/common/tikztemplate.tex b/buch/common/tikztemplate.tex
new file mode 100644
index 0000000..72d0f34
--- /dev/null
+++ b/buch/common/tikztemplate.tex
@@ -0,0 +1,21 @@
+%
+% tikztemplate.tex -- template for standalon tikz images
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+\documentclass[tikz]{standalone}
+\usepackage{amsmath}
+\usepackage{times}
+\usepackage{txfonts}
+\usepackage{pgfplots}
+\usepackage{csvsimple}
+\usetikzlibrary{arrows,intersections,math}
+\begin{document}
+\def\skala{1}
+\begin{tikzpicture}[>=latex,thick,scale=\skala]
+
+% add image content here
+
+\end{tikzpicture}
+\end{document}
+
diff --git a/buch/common/titlepage.tex b/buch/common/titlepage.tex
new file mode 100644
index 0000000..f4f833f
--- /dev/null
+++ b/buch/common/titlepage.tex
@@ -0,0 +1,34 @@
+%
+% titlepage.tex
+%
+\pagestyle{fancy}
+\frontmatter
+\newcommand\HRule{\noindent\rule{\linewidth}{1.5pt}}
+\begin{titlepage}
+\vspace*{\stretch{1}}
+\HRule
+\vspace*{5pt}
+\begin{flushright}
+{
+\LARGE
+Mathematisches Seminar\\
+\vspace*{20pt}
+\Huge
+Matrizen%
+}%
+\vspace*{5pt}
+\end{flushright}
+\HRule
+\begin{flushright}
+\vspace{60pt}
+\Large
+Leitung: Andreas Müller und Roy Seitz\\
+\vspace{40pt}
+\Large
+\input{common/teilnehmer.tex}
+\end{flushright}
+\vspace*{\stretch{2}}
+\begin{center}
+OST Ostschweizer Fachhochschule, Rapperswil, 2021
+\end{center}
+\end{titlepage}