forked from WBH/Mathe-Formelsammlung
Restructure
parent
7921a0ff6b
commit
2384c7f2f9
@ -1,29 +0,0 @@
|
||||
LaTeX4EI Template Date: 2016-01-06
|
||||
|
||||
|
||||
|
||||
LICENSE:
|
||||
|
||||
You are allowed to create and share documents created
|
||||
with this template under the following conditions:
|
||||
|
||||
|
||||
* visible reference to www.latex4ei.de:
|
||||
you have to place a "based on template from www.latex4ei.de" or similar in your documents.
|
||||
|
||||
|
||||
* no commercial use:
|
||||
you are not allowed to sell any part of this template or documents created with this template.
|
||||
|
||||
|
||||
* limited modification:
|
||||
you are allowed to modify the template for personal use.
|
||||
you are NOT allowed to distribute modified versions of this template on your own.
|
||||
Please push back your modifications to us so that we have the chance to integrate it.
|
||||
|
||||
|
||||
If you want to publish your latex code you are allowed to publish the source code
|
||||
of this template as well but you have to make sure that a copy of this license is included.
|
||||
|
||||
|
||||
© 2011-2016, LaTeX4EI
|
@ -1,29 +0,0 @@
|
||||
# LaTeX4EI Template
|
||||
Write beautiful latex cheat sheets with minimal effort.
|
||||
|
||||
## How to use
|
||||
put `latex4ei` folder in `./template-files/` into the same folder as
|
||||
your latex file. Specify \documentclass{latex4ei/latex4ei_sheet} and compile your code.
|
||||
See the documentation for further details.
|
||||
|
||||
## Permanent installation
|
||||
Copy the `latex4ei` folder into your tex-distribution directory
|
||||
|
||||
### Windows
|
||||
Copy files to `C:\texlive\XXXX\texmf-dist\tex\latex\latex4ei`
|
||||
|
||||
### Linux
|
||||
```bash
|
||||
sudo ln -s ./pkg /usr/share/texlive/texmf-dist/tex/latex/latex4ei
|
||||
sudo mktexlsr
|
||||
```
|
||||
|
||||
### Mac OS X
|
||||
```bash
|
||||
ln -s ./pkg /usr/local/texlive/texmf-local/tex/latex/latex4ei
|
||||
```
|
||||
|
||||
If you want to share your documents please refer to the license.txt
|
||||
Read the changelog.txt and known_bugs.txt and check [www.latex4ei.de](http://latex4ei.de) for updates.
|
||||
|
||||
© 2011-2016, LaTeX4EI
|
Binary file not shown.
Binary file not shown.
@ -1,203 +0,0 @@
|
||||
% Technische Formelsammlung by Emu
|
||||
|
||||
% Dokumenteinstellungen
|
||||
\documentclass[8pt,a5paper]{scrartcl}
|
||||
|
||||
% Pakete laden
|
||||
\usepackage[a5paper]{geometry}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[ngerman]{babel} % Deutsche Sprache und Silbentrennung
|
||||
\usepackage{multicol} % ermöglicht Seitenspalten
|
||||
\usepackage{booktabs} % bessere Tabellenlinien
|
||||
\usepackage{enumitem} % bessere Listen
|
||||
\usepackage{graphicx} % Zum Bilder einfügen benötigt
|
||||
\usepackage{pbox} %Intelligent parbox: \pbox{maximum width}{blabalbalb \\ blabal}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{../template-files/latex4ei/scientific} % Eigenes Paket
|
||||
|
||||
% Dokumentbeschreibung
|
||||
% ======================================================================
|
||||
\title{\texttt{scientific.sty}}
|
||||
\author{LaTeX4EI Package}
|
||||
|
||||
|
||||
% Layout
|
||||
% ======================================================================
|
||||
% 15cm Breite(148mm), Höhe (210), Referenzpunkt 2,54cm
|
||||
\setlength{\oddsidemargin}{-1.0cm} %Rand zur Buchmitte von links
|
||||
\setlength{\evensidemargin}{-1.6cm} %Rand zur Buchmitte von links
|
||||
\setlength{\textwidth}{12.2cm} %Rand nach außen
|
||||
|
||||
|
||||
%Überschreibungen
|
||||
\renewcommand{\arraystretch}{1.2}
|
||||
|
||||
|
||||
\renewcommand{\thesection}{}
|
||||
\renewcommand{\thesubsection}{\arabic{subsection}}
|
||||
|
||||
|
||||
|
||||
% Dokumentbeginn
|
||||
\begin{document}
|
||||
|
||||
% Titel
|
||||
\maketitle
|
||||
|
||||
|
||||
% -------------------------------------------
|
||||
% | scientific.sty |
|
||||
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
% =============================================================================================================================
|
||||
|
||||
\begin{quotation}
|
||||
Das Paket \texttt{scientific.sty} erweitert den Funktionsumfang der Mathematikumgebung in \LaTeX.
|
||||
Es läd häufig benötigte Pakete und definiert Abkürzungen und wichtige Funktionen, um den Satz bestehender Befehle wie \verb#\sin, \max, ...# zu vervollständigen.
|
||||
Ziel ist es mit dem Einbinden durch \verb#\usepackage{scientific}# eine solide und einfache Grundlage für wissenschaftliche Dokumentationen zu bieten ohne
|
||||
dass der Autor eigene Macros schreiben muss.
|
||||
Das Paket wurde von \href{www.latex4ei.de}{LaTeX4EI} erstellt. Es besteht keine Garantie auf Kompatibilität und korrekte Funktionsweise.
|
||||
\end{quotation}
|
||||
|
||||
|
||||
|
||||
\subsection{Pakete}
|
||||
Das Paket \verb#scientific# läd automatisch wichtige \LaTeX-Pakete. Diese können nach einbinden der \verb#scientific.sty# direkt verwendet werden und müssen nicht explizit geladen werden.\\
|
||||
\begin{tabular}{ll}
|
||||
\verb#amsmath# & Für erweiterte mahtematische Funktionen\\
|
||||
\verb#amssymb# & Verschiedene Symbole\\
|
||||
\verb#esint# & erweiterte Integralsymbole\\
|
||||
\verb#xcolor# & Ermöglicht farbigen Text und Farbdefinitionen\\
|
||||
\verb#mhchem# & Darstellung von chemischen Strukturformeln\\
|
||||
& Beispiel: $\ce{2H3O+}$ \verb#\ce{2H3O+}#\\
|
||||
\verb#siunitx# & SI gerechte Darstellung von Einheiten\\
|
||||
& Beispiel: $\SI{3.5}{\meter\per\second}$ \verb#\SI{3.5}{\meter\per\second}#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
Für eine genaue Beschreibung der einzelnen Pakete und deren zur Verfügung gestellten Funktionen, gibt es auf \href{www.ctan.org}{www.ctan.org} die entsprechende Dokumentation zu finden.
|
||||
|
||||
|
||||
\subsection{Einheiten}
|
||||
Das Paket \verb#siunitx# stellt Zahlen und Einheiten in SI gerechter Notation dar.
|
||||
Die Hauptbefehle sind \verb#\num{<Zahl>}#, \verb#\si{<Einheit>}# und \verb#\SI{<Zahl>}{<Eineit>}#.
|
||||
\verb#scientific# definiert noch \verb#\unitof{<Symbol>}#
|
||||
Beispiele:\\
|
||||
|
||||
\begin{tabular}{ll}
|
||||
$\num{32334.124e-12}$ & \verb#\num{32334.124e-12}#\\
|
||||
$\si{\kilogram \meter \per \ampere \second \squared }$ & \verb#\si{\kilogram \meter \per \ampere \second \squared}#\\
|
||||
$\SI{3.4e2}{\mega \watt \hour}$ & \verb#\SI{3.4e2}{\mega \watt \hour}#\\
|
||||
$\unitof{n_0} = \si{\per \centi \meter \cubed}$ & \verb#\unitof{n_0} = \si{\per \centi \meter \cubed}#\\
|
||||
\end{tabular}\\
|
||||
\\
|
||||
Als Einheiten können alle SI Einheiten wie \verb#\farad, \angstrom, \day#, \ldots\ sowie alle Prefixe \verb#\kilo, \deka, \micro#, usw.
|
||||
verwendet werden.
|
||||
|
||||
|
||||
|
||||
\subsection{Neue Befehle}
|
||||
Warum neue Befehle?
|
||||
Auch wenn viele Formatierungen recht einfach mit den \LaTeX\ Grundbefehlen erreicht werden können, ist es sinnvoll für jeden Verwendungszweck eines Symbols einen eigene Befehl anzulegen. Viele Zeichen werden mit mehreren Bedeutungen vernküpft.
|
||||
Außerdem ist es dadurch einfach eine Formatierung für das ganze Dokument an einer zentralen Stelle festzulegen. Nachträgliche Anpassungen müssen nicht an jeder Stelle extra geändert werden, sondern es reicht eine Änderung des eigenen Befehls.
|
||||
Sollten Sie im Paket \verb#scientific.sty# noch wichtige Funktionen/Formatierungen vermissen, dann lassen Sie es uns wissen.
|
||||
|
||||
|
||||
\subsection{Differentielles Delta „$\mathrm{d}$“}
|
||||
Das differentielle Delta ist eines der am häufigsten falsch dargestellten Zeichen. Es wird aufrecht geschrieben, mit kleinem Abstand zum vorherigen Term und keinem Abstand zur Variable.
|
||||
Der einfache \LaTeX\ Code: \verb#\int x^2 dx# erzeugt $\int x^2 dx$.
|
||||
Das ist vielleicht noch vertretbar aber spätestens bei mehreren Variablen sieht das nicht mehr schön aus.
|
||||
\verb#\int f(x,y) dx dy# erzeugt $\int f(x,y) dx dy$. Mit dem neuen Befehl \verb#\diff# wird das „d“ immer richtig dargestellt.\\
|
||||
\\
|
||||
Differentielles Delta \quad $\diff x$ \quad \verb#\diff x#\\
|
||||
\\
|
||||
Beispiel: $\diff^3 x \diff y \diff z \frac{\diff f(x)}{\diff x}$ \qquad \verb#\diff^3 x \diff y \diff z \frac{\diff f(x)}{\diff x}#\\
|
||||
|
||||
\subsection{Vektoren und Matrizen}
|
||||
Vektoren und Matrizen werden häufig in mathematischen Formeln genutzt. Deren Symbole sollten zum besseren Verständis durch spezielle Formatierungen von Symbolen für Variablen, Mengen, usw. abgegrenzt werden.\\
|
||||
\\
|
||||
\begin{tabular}{lll}
|
||||
Vektorsymbol & $\vec a$ & \verb#\vec a#\\[0.5em]
|
||||
Vektor & $\vect{ x_1 \\ x_2 }$ & \verb#\vect{ x_1 \\ x_2 }#\\[2em]
|
||||
Matrixsymbol & $\ma A$ & \verb#\ma A#\\[0.5em]
|
||||
Matrix & $\mat{ 1 & 2 \\ 3 & 4}$ & \verb#\mat{ 1 & 2 \\ 3 & 4}#\\[2em]
|
||||
Norm & $\norm{\vec a}$ & \verb#\norm{\vec a}#\\
|
||||
Spur & $\Sp \ma A$ & \verb#\Sp \ma A#\\
|
||||
Determinante & $\det \ma A$ & \verb#\det \ma A#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\subsection{Komplexe Zahlen}
|
||||
\begin{tabular}{lll}
|
||||
Menge der kompl. Zahlen & $\C$ & \verb#\C#\\
|
||||
Komplexe Zahl & $\cx z$ & \verb#\cx z#\\
|
||||
Hyperkomplexe Zahl & $\hx h$ & \verb#\hx h#\\
|
||||
Imaginäre Einheiten & $\i \j \k$ & \verb#\i \j \k#\\
|
||||
Komplex Konjugiert & $\cxc z$ & \verb#\cxc z#\\
|
||||
Realteil & $\Re{a+b\i}$ & \verb#\Re{a+b\i}#\\
|
||||
Imaginärteil & $\Im{a+b\i}$ & \verb#\Im{a+b\i}#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
|
||||
\subsection{Mengen}
|
||||
\begin{tabular}{lll}
|
||||
Natürliche Zahlen & $\N$ & \verb#\N#\\
|
||||
Reele Zahlen & $\R$ & \verb#\R#\\
|
||||
Komplexe Zahlen & $\C$ & \verb#\C#\\
|
||||
allg. Körper & $\K$ & \verb#\K#\\
|
||||
Binäre Zahlen & $\B$ & \verb#\B#\\ \\
|
||||
Vereinigung/OR & $\cupplus A$ & \verb#\cuplus#\\
|
||||
Schnittmenge/AND & $\capdot B$ & \verb#\capdot#\\
|
||||
Komplement & $A^\complement$ & \verb#A^\complement#\\
|
||||
Das Innere & $\interior{A}$ & \verb#\interior{A}#\\
|
||||
Landau & $\O$ & \verb#\O#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
|
||||
|
||||
\subsection{Funktionen}
|
||||
\begin{tabular}{lll}
|
||||
Constant & $\const$ & \verb#\const#\\
|
||||
Sinus Cardinalis & $\sinc$ & \verb#\sinc#\\
|
||||
Triangular & $\tri$ & \verb#\tri#\\
|
||||
Rectangle & $\rect$ & \verb#\rect#\\
|
||||
Dirac & $\dirac$ & \verb#\dirac#\\
|
||||
Heaviside & $\heavi$ & \verb#\heavi#\\
|
||||
Gradient & $\grad$ & \verb#\grad#\\
|
||||
Divergenz & $\div$ & \verb#\div#\\
|
||||
Rotation & $\rot$ & \verb#\rot#\\
|
||||
Laplaceoperator & $\lpo$ & \verb#\lpo#\\
|
||||
Wellenoperator & $\waveop$ & \verb#\waveop#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
\subsection{Stochastik}
|
||||
\begin{tabular}{lll}
|
||||
Wahrscheinlichkeit & $\P$ & \verb#\P#\\
|
||||
Zufallsvariablen & $\X \Y \Z$ & \verb#\X \Y \Z#\\
|
||||
Erwartungswert & $\E$ & \verb#\E#\\
|
||||
Varianz & $\Var$ & \verb#\Var#\\
|
||||
Covarianz & $\Cov$ & \verb#\Cov#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
|
||||
\subsection{Spektralanalyse}
|
||||
\begin{tabular}{lll}
|
||||
Fourier-trans. & $\FT$ & \verb#\FT#\\
|
||||
Zeitdiskrete FT & $\DTFT$ & \verb#\DTFT#\\
|
||||
Laplace-trans. & $\LT$ & \verb#\LT#\\
|
||||
Z-trans & $\ZT$ & \verb#\ZT#\\
|
||||
Diskrete FT & $\DFT$ & \verb#\DFT#\\
|
||||
\end{tabular}
|
||||
|
||||
|
||||
\subsection{Sonstiges}
|
||||
Römische Zahlen \quad $\rom{iv},\rom{IV}$ \quad \verb#\rom{iv},\rom{IV}#
|
||||
|
||||
|
||||
\end{document}
|
File diff suppressed because one or more lines are too long
@ -1,20 +0,0 @@
|
||||
LaTeX4EI Template Date: 2015-04-01
|
||||
|
||||
|
||||
|
||||
Known Bugs: 1
|
||||
|
||||
|
||||
#1 : Misplaced columnbreak between \section and \begin{sectionbox}
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Description: The multicolumn package inserts a column break if a section box
|
||||
will not fit in the actual column. If a \section heading is placed before
|
||||
that box it might remain on the previous column. The heading and the box
|
||||
are split up and placed at different columns.
|
||||
|
||||
Work around: Insert a manual column break with "\columnbreak" BEFORE the
|
||||
\section command.
|
||||
|
||||
|
||||
© 2011-2015, LaTeX4EI
|
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 349 KiB |
Binary file not shown.
@ -1,65 +0,0 @@
|
||||
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
|
||||
% LaTeX4EI Template for Cheat Sheets Version 1.0
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Encode: UTF-8, tabwidth = 4, newline = LF
|
||||
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Document Settings
|
||||
% ======================================================================
|
||||
|
||||
% possible options: color/nocolor, english/german, threecolumn
|
||||
% defaults: color, english
|
||||
\documentclass[english]{latex4ei/latex4ei_sheet}
|
||||
|
||||
% set document information
|
||||
\title{LaTeX4EI \\ Cheat Sheet}
|
||||
\author{LaTeX4EI} % optional, delete if unchanged
|
||||
\myemail{info@latex4ei.de} % optional, delete if unchanged
|
||||
\mywebsite{www.latex4ei.de} % optional, delete if unchanged
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Begin
|
||||
% ======================================================================
|
||||
\begin{document}
|
||||
|
||||
|
||||
% Title
|
||||
% ----------------------------------------------------------------------
|
||||
\maketitle % requires ./img/Logo.pdf
|
||||
|
||||
|
||||
% Section
|
||||
% ----------------------------------------------------------------------
|
||||
\section{Math}
|
||||
|
||||
|
||||
\begin{sectionbox}
|
||||
\subsection{Sinus}
|
||||
|
||||
Text goes here ...
|
||||
|
||||
|
||||
\end{sectionbox}
|
||||
|
||||
|
||||
\begin{sectionbox}
|
||||
\subsection{Cosinus}
|
||||
|
||||
Text goes here ...
|
||||
|
||||
|
||||
\end{sectionbox}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% End
|
||||
% ======================================================================
|
||||
\end{document}
|
Binary file not shown.
@ -0,0 +1,331 @@
|
||||
%
|
||||
% Macros for LaTeX4EI
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Version: 1.0
|
||||
% License: TBD
|
||||
%
|
||||
% © 2011-2015, LaTeX4EI
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{latex4ei}[2013/05/06 Macros for LaTeX4EI]
|
||||
|
||||
% Options
|
||||
% ----------------------------------------------------------------------
|
||||
\newif\ifcolor\colortrue
|
||||
\def\thelanguage{english}
|
||||
|
||||
\DeclareOption{color}{\colortrue}
|
||||
\DeclareOption{nocolor}{\colorfalse}
|
||||
\DeclareOption{german}{\def\thelanguage{ngerman}}
|
||||
\DeclareOption{english}{\def\thelanguage{english}}
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Basic Settings
|
||||
% ======================================================================
|
||||
|
||||
% Identify Compiler
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{ifxetex}
|
||||
|
||||
% Check compiler. Hint: delete aux files if changing the compiler
|
||||
\ifxetex%
|
||||
%\@namedef{ver@fixltx2e.sty}{9999/12/31}%
|
||||
|
||||
%XeLaTeX
|
||||
\PassOptionsToPackage{no-math}{fontspec}
|
||||
\RequirePackage{xltxtra}
|
||||
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
|
||||
|
||||
% for unicode decalarations
|
||||
%\let\DeclareUnicodeCharacter\newunicodechar
|
||||
\setmainfont{Times New Roman}
|
||||
\setromanfont{Times New Roman}
|
||||
\setsansfont{Helvetica}
|
||||
|
||||
% some hacking for scientific.sty
|
||||
\AtBeginDocument{
|
||||
\renewcommand{\C}{\mathbb C}
|
||||
\renewcommand{\B}{\mathbb B}
|
||||
}
|
||||
\else
|
||||
% pdfLaTeX
|
||||
\RequirePackage[utf8]{inputenc} % UTF-8 input
|
||||
\RequirePackage{latex4ei/latex4ei_unicode} % UTF-8 input of math symbols
|
||||
\InputIfFileExists{glyphtounicode}{\pdfgentounicode=1}{} % Glyph-to-Unicode Translation (needs PdfTex >=1.4)
|
||||
%\RequirePackage{textcomp} % get rid of font warnings
|
||||
%\pdfminorversion=6 % for 3D Objects
|
||||
%\RequirePackage[osf]{mathpazo} % old style numbering
|
||||
\fi
|
||||
|
||||
% Basic LaTeX Settings
|
||||
% ----------------------------------------------------------------------
|
||||
\pretolerance=60
|
||||
\tolerance=2000
|
||||
\doublehyphendemerits=10000 % No consecutive line hyphens.
|
||||
\brokenpenalty=10000 % No broken words across columns/pages.
|
||||
\widowpenalty=9999 % Almost no widows at bottom of page.
|
||||
\clubpenalty=9999 % Almost no orphans at top of page.
|
||||
\interdisplaylinepenalty=100
|
||||
\interfootnotelinepenalty=9999 % Almost never break footnotes.
|
||||
|
||||
|
||||
% Save \title, \author, \date before \maketitle
|
||||
\RequirePackage[pagebackref=true,pdfpagelabels]{hyperref}
|
||||
|
||||
% Title
|
||||
\makeatletter
|
||||
\renewcommand{\title}[1]{%
|
||||
\gdef\@title{#1}%
|
||||
\gdef\thetitle{#1}
|
||||
\pdfstringdef{\@pdftitle}{\@title}%
|
||||
\hypersetup{pdftitle=\@pdftitle}%
|
||||
}
|
||||
|
||||
% Institution
|
||||
\providecommand{\institution}[1]{
|
||||
\gdef\theinstitution{#1}
|
||||
}
|
||||
|
||||
% Author
|
||||
\renewcommand{\author}[1]{%
|
||||
\gdef\@author{#1}%
|
||||
\gdef\theauthor{#1}
|
||||
\pdfstringdef{\@pdfauthor}{\@author}%
|
||||
\hypersetup{pdfauthor=\@pdfauthor}%
|
||||
}
|
||||
|
||||
% Date
|
||||
\global\let\thedate\@date
|
||||
\renewcommand{\date}[1]{%
|
||||
\gdef\@date{#1}%
|
||||
\gdef\thedate{#1}
|
||||
}
|
||||
\makeatother
|
||||
|
||||
% Email
|
||||
\providecommand{\myemail}[1]{\gdef\theemail{#1}}
|
||||
% Web page
|
||||
\providecommand{\mywebsite}[1]{\gdef\thewebsite{#1}}
|
||||
% Date with git commit number
|
||||
\providecommand{\mydate}[1]{\gdef\themydate{#1}}
|
||||
|
||||
% set defaults
|
||||
\author{LaTeX4EI}
|
||||
\title{A LaTeX4EI Document}
|
||||
\myemail{info@latex4ei.de}
|
||||
\mywebsite{www.latex4ei.de}
|
||||
\mydate{\today}
|
||||
|
||||
|
||||
\AtBeginDocument{
|
||||
% set pdfoptions
|
||||
\hypersetup{
|
||||
pdftitle={\thetitle},
|
||||
pdfauthor={\theauthor},
|
||||
pdfcreator={LaTeX4EI template (www.latex4ei.de)},
|
||||
pdfkeywords={latex4ei}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
% Language
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\RequirePackage[english, ngerman]{babel}
|
||||
|
||||
\RequirePackage{iflang}
|
||||
\providecommand{\EngGer}[2]{\IfLanguageName{english}{#1}{#2}}
|
||||
\expandafter\selectlanguage\expandafter{\thelanguage}
|
||||
\AtBeginDocument{\expandafter\selectlanguage\expandafter{\thelanguage}}
|
||||
|
||||
% Graphics
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{graphicx} % for including images
|
||||
\graphicspath{ {img/} {gfx/} } % set default search paths for figures
|
||||
|
||||
%\RequirePackage{tikz} % tikz graphics
|
||||
%\RequirePackage{multirow} % multirow text
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Colors
|
||||
% ======================================================================
|
||||
\RequirePackage{latex4ei/latex4ei_colors}
|
||||
|
||||
\ifcolor
|
||||
\colorlet{col_chapter_num}{tum_gray}
|
||||
\colorlet{col_chapter}{tum_blue_dark}
|
||||
\colorlet{col_section}{tum_blue_dark}
|
||||
\colorlet{col_subsection}{tum_blue_dark}
|
||||
\colorlet{col_subsubsection}{black}
|
||||
\colorlet{col_paragraph}{black}
|
||||
|
||||
\colorlet{col_link}{tum_blue_dark}
|
||||
\colorlet{col_table}{tum_blue_dark}
|
||||
\colorlet{col_figure}{tum_blue_dark}
|
||||
\colorlet{col_itemize}{tum_blue_dark}
|
||||
|
||||
\colorlet{col_lst}{tum_blue_dark}
|
||||
\colorlet{col_lst_keyword}{tum_blue}
|
||||
\colorlet{col_lst_comment}{tum_green_leaf}
|
||||
\colorlet{col_lst_string}{tum_orange}
|
||||
\colorlet{col_lst_number}{tum_gray_dark}
|
||||
\else
|
||||
\colorlet{col_chapter_num}{tum_gray}
|
||||
\colorlet{col_chapter}{black}
|
||||
\colorlet{col_section}{black}
|
||||
\colorlet{col_subsection}{black}
|
||||
\colorlet{col_subsubsection}{black}
|
||||
\colorlet{col_paragraph}{black}
|
||||
|
||||
\colorlet{col_ref}{black}
|
||||
\colorlet{col_link}{black}
|
||||
\colorlet{col_table}{black}
|
||||
\colorlet{col_figure}{black}
|
||||
\colorlet{col_itemize}{black}
|
||||
|
||||
\colorlet{col_lst}{black}
|
||||
\colorlet{col_lst_keyword}{black}
|
||||
\colorlet{col_lst_comment}{tum_gray}
|
||||
\colorlet{col_lst_string}{black}
|
||||
\colorlet{col_lst_number}{tum_gray_dark}
|
||||
\fi
|
||||
|
||||
\hypersetup{
|
||||
colorlinks=true,
|
||||
linkcolor=col_link,
|
||||
urlcolor=col_link,
|
||||
citecolor=col_link,
|
||||
}
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Macros
|
||||
% ======================================================================
|
||||
|
||||
|
||||
% Formatting adjustments
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{accents} % accent dots for derivation
|
||||
|
||||
% Thicker dots for derivatives
|
||||
\renewcommand*{\dot}[1]{\accentset{\mbox{\textrm{\large\bfseries .}} }{#1}}
|
||||
\renewcommand*{\ddot}[1]{\accentset{\mbox{\textrm{\large\bfseries .\hspace{-0.25ex}.}}}{#1}}
|
||||
\renewcommand*{\dddot}[1]{\accentset{\mbox{$\overset{\textrm{\large\bfseries .}}{\textrm{\large\bfseries.\hspace{-0.25ex}.}}$}}{#1}}
|
||||
|
||||
% Shortcuts for symbols
|
||||
% ----------------------------------------------------------------------
|
||||
\providecommand{\ul}[1]{\ensuremath{\underline{#1}}} % Underline
|
||||
\providecommand{\ol}[1]{\ensuremath{\overline{#1}}} % Overline
|
||||
\providecommand{\bs}[1]{\ensuremath{\boldsymbol{#1}}} % Bold and italic in mathmode
|
||||
\providecommand{\Ra}{\ensuremath{\Rightarrow}} % Rightarrow
|
||||
\providecommand{\ra}{\ensuremath{\rightarrow}} % Rightarrow
|
||||
\providecommand{\lra}{\ensuremath{\longrightarrow}} % Longrightarrow
|
||||
\providecommand{\upa}{\ensuremath{\uparrow}}
|
||||
\providecommand{\downa}{\ensuremath{\downarrow}}
|
||||
\providecommand{\bdot}{\ensuremath{\boldsymbol \cdot}} % Thick dot for vector product
|
||||
\providecommand{\svdots}{\ensuremath{\olddot :}} % Small vertical dots
|
||||
\providecommand{\shdots}{\ensuremath{\!\cdot \!\cdot\!\cdot\!}} % Small horizontal dots
|
||||
|
||||
% Terms and definitions
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
% Define BibTeX command
|
||||
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
|
||||
|
||||
% ToDo Command
|
||||
\makeatletter
|
||||
\providecommand{\todo}[1]{%
|
||||
\textcolor{red}{\bf ToDo:\@ifundefined{@captype}{\marginpar{\color{red}\bf ToDo!}}{\relax} #1} %check for float environments
|
||||
}
|
||||
\makeatother
|
||||
|
||||
% Special term
|
||||
\providecommand{\term}[1]{\textit{#1}}
|
||||
|
||||
% Related work
|
||||
\providecommand{\work}[1]{\textit{#1}}
|
||||
|
||||
% Email
|
||||
\providecommand{\email}[1]{\href{mailto:#1}{\nolinkurl{#1}}}
|
||||
|
||||
% References and Links
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
% several ref macros
|
||||
\providecommand\figureref[1]{\hyperref[#1]{\figurename~\ref*{#1}}}
|
||||
\providecommand\figurepageref[1]{\figureref{#1}(p.~\pageref{figure:#1})}
|
||||
\providecommand\tableref[1]{\hyperref[#1]{\tablename~\ref*{#1}}}
|
||||
\providecommand\tablepageref[1]{\tableref{#1}(p.~\pageref{table:#1})}
|
||||
\providecommand\sourcecoderef[1]{\hyperref[#1]{\lstlistingname~\ref*{#1}}}
|
||||
\providecommand\sourcecodepageref[1]{\sourcecoderef{#1}(p.~\pageref{sourcecode:#1})}
|
||||
\providecommand\chapterref[1]{\chaptername~\ref*{\chaptername:#1}(p.~\pageref{chapter:#1})}
|
||||
\providecommand\sectionref[1]{\textsection~\ref*{section:#1}(p.~\pageref{section:#1})}
|
||||
\providecommand\appendixref[1]{\appendixname~\ref*{appendix:#1}(p.~\pageref{appendix:#1})}
|
||||
|
||||
|
||||
% break also on hyphens inside the \url command
|
||||
\def\UrlBreaks{\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%
|
||||
\do\)\do\,\do\?\do\'\do+\do\=\do\#\do-} % \do- is new!
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Environments
|
||||
% ======================================================================
|
||||
\RequirePackage{caption}
|
||||
|
||||
% Tables
|
||||
% ----------------------------------------------------------------------
|
||||
\captionsetup[table]{labelfont={color=col_table,sf},textfont={sf,small}}
|
||||
|
||||
% table rules
|
||||
\def\trule{\noalign{\vspace{1pt}\hrule\hrule\vspace{2pt}}} % top rule
|
||||
\def\mrule{\noalign{\vspace{1pt}\hrule\vspace{2pt}}} % middle rule
|
||||
\def\brule{\noalign{\vspace{2pt}\hrule\hrule\vspace{1pt}}} % bottom rule
|
||||
|
||||
% colored table rules
|
||||
%\def\ctrule{\noalign{{\color{col_table}\hrule\hrule}\vspace{2pt}}} % colored top rule
|
||||
%\def\cmrule{\noalign{\vspace{1pt}{\color{col_table}\hrule}\vspace{2pt}}} % colored middle rule
|
||||
%\def\cbrule{\noalign{\vspace{2pt}{\color{col_table}\hrule\hrule}}} % colored bottom rule
|
||||
|
||||
% TDB
|
||||
\def\ctrule{\noalign{\vspace{1pt}\begingroup\color{col_table}\hrule\hrule\endgroup\vspace{2pt}}} % colored top rule
|
||||
\def\cmrule{\noalign{\vspace{1pt}\begingroup\color{col_table}\hrule\endgroup\vspace{2pt}}} % colored middle rule
|
||||
\def\cbrule{\noalign{\vspace{2pt}\begingroup\color{col_table}\hrule\hrule\endgroup\vspace{1pt}}} % colored bottom rule
|
||||
|
||||
% Figures
|
||||
% ----------------------------------------------------------------------
|
||||
\captionsetup[figure]{labelfont={color=col_figure,sf},textfont={sf,small}}
|
||||
|
||||
% Sourcecode listings
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{listings}
|
||||
\lstset{
|
||||
basicstyle=\normalsize\tt\lst@ifdisplaystyle\small\fi,
|
||||
tabsize=4,
|
||||
%gobble=auto, % skip initial tabs %not supported yet
|
||||
numbers=none, % switch numbers on: left
|
||||
numberstyle=\tiny\sf\color{col_lst_number},
|
||||
numbersep=1em,
|
||||
keepspaces=true,
|
||||
keywordstyle=\color{tum_blue_dark},
|
||||
commentstyle=\color{col_lst_comment},
|
||||
stringstyle=\color{col_lst_string},
|
||||
captionpos = t,
|
||||
frame = tb,
|
||||
%framextopmargin={\smallskipamount},
|
||||
%framexbottommargin={\smallskipamount},
|
||||
framerule=1pt,
|
||||
rulecolor = \color{col_lst},
|
||||
}
|
||||
\captionsetup[lstlisting]{labelfont={color=col_figure,sf},textfont={sf,small}}
|
||||
|
||||
% Inline code listings
|
||||
\let\code\lstinline
|
@ -0,0 +1,186 @@
|
||||
%
|
||||
% Boxes for LaTeX4EI
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Version: 1.0
|
||||
% License: TBD
|
||||
%
|
||||
% © 2011-2015, LaTeX4EI
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{latex4ei_boxes}[2015/02/06 Boxes for LaTeX4EI]
|
||||
|
||||
|
||||
% Packages
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{mdframed} % package to make frames for exaples, definitions and theorems
|
||||
\RequirePackage{enumitem}
|
||||
\RequirePackage{latex4ei/latex4ei_colors} % color definitions
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Styles
|
||||
% ======================================================================
|
||||
|
||||
% Basic box
|
||||
% ----------------------------------------------------------------------
|
||||
\mdfdefinestyle{specialbox}{
|
||||
% Outer Margins
|
||||
leftmargin=0mm,
|
||||
rightmargin=0mm,
|
||||
startcode={\vspace{0.4em}}, % FIX: spacing bug on nested frames
|
||||
endcode={\vspace{0.4em}}, % FIX: spacing bug on nested frames
|
||||
skipabove=0mm, % FIX: spacing bug on nested frames
|
||||
skipbelow=0mm, % FIX: spacing bug on nested frames
|
||||
% inner margins
|
||||
innertopmargin=1mm,
|
||||
% frame
|
||||
linewidth=0.3mm
|
||||
}
|
||||
|
||||
% Sectionbox: provides grey boxes for better readablitity of sections
|
||||
% ----------------------------------------------------------------------
|
||||
\global\mdfdefinestyle{sectionbox}{
|
||||
startcode={\makeatother\if@nobreak\vspace{3cm}\null\vspace{-3cm}\fi\makeatletter}, % FIX: breaks 3cm after section
|
||||
nobreak=true, % FIX: unwanted behavior with multicolumn
|
||||
% Margin left, right, bottom and top of the boxes (-1 mm for higher width)
|
||||
leftmargin=-1mm,
|
||||
rightmargin=-1mm,
|
||||
skipbelow=1mm,
|
||||
skipabove=1mm,
|
||||
% Inner margin of the content of the box
|
||||
innerleftmargin=1mm,
|
||||
innerrightmargin=1mm,
|
||||
innertopmargin=1mm,
|
||||
% Colors of lines and background
|
||||
backgroundcolor=col_sectionbox!3,
|
||||
linecolor=col_sectionbox
|
||||
}
|
||||
|
||||
% Emphbox: box with red line around for important definitions
|
||||
% ----------------------------------------------------------------------
|
||||
\global\mdfdefinestyle{emphbox}{
|
||||
% basic style
|
||||
style=specialbox,
|
||||
align=center,
|
||||
% background color
|
||||
backgroundcolor=lightyellow,
|
||||
% frame color
|
||||
linecolor=col_emphbox
|
||||
}
|
||||
|
||||
% Symbolbox
|
||||
% ----------------------------------------------------------------------
|
||||
\global\mdfdefinestyle{symbolbox}{
|
||||
% basic style
|
||||
style=specialbox,
|
||||
% background color
|
||||
backgroundcolor=col_symbolbox!5,
|
||||
% orange outer line
|
||||
linecolor=col_symbolbox
|
||||
}
|
||||
|
||||
% Bluebox
|
||||
% ----------------------------------------------------------------------
|
||||
\global\mdfdefinestyle{bluebox}{
|
||||
% basic style
|
||||
style=specialbox,
|
||||
% show only top and bottom line
|
||||
hidealllines=true,
|
||||
topline=true,
|
||||
bottomline=true,
|
||||
% background
|
||||
backgroundcolor=col_cookbox!5,
|
||||
% Line color
|
||||
linecolor=col_cookbox,
|
||||
% Title
|
||||
frametitlerule=true,
|
||||
frametitlebackgroundcolor=col_cookbox!5,
|
||||
frametitlealignment=\centering,
|
||||
frametitleaboveskip=1mm,
|
||||
frametitlebelowskip=1mm
|
||||
}
|
||||
|
||||
% Tablebox
|
||||
% ----------------------------------------------------------------------
|
||||
\global\mdfdefinestyle{tablebox}{
|
||||
% basic style
|
||||
style=specialbox,
|
||||
% show only top and bottom line
|
||||
hidealllines=true,
|
||||
topline=true,
|
||||
bottomline=true,
|
||||
% inner margin
|
||||
innerleftmargin=0em,
|
||||
innerrightmargin=0em,
|
||||
% Color
|
||||
backgroundcolor=col_table!5,
|
||||
% Title
|
||||
frametitlerule=true,
|
||||
frametitlebackgroundcolor=col_table!5,
|
||||
frametitleaboveskip=1mm,
|
||||
frametitlebelowskip=1mm,
|
||||
% line color
|
||||
linecolor=col_table
|
||||
}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Environments
|
||||
% ======================================================================
|
||||
|
||||
% sectionbox
|
||||
% ----------------------------------------------------------------------
|
||||
\newmdenv[style=sectionbox]{sectionbox}
|
||||
|
||||
% bluebox
|
||||
% ----------------------------------------------------------------------
|
||||
\newmdenv[style=bluebox]{bluebox}
|
||||
|
||||
% emphbox
|
||||
% ----------------------------------------------------------------------
|
||||
\newmdenv[style=emphbox, startinnercode={\centering}]{emphbox}
|
||||
\newmdenv[style=emphbox]{emphbox*}
|
||||
|
||||
% symbolbox
|
||||
% ----------------------------------------------------------------------
|
||||
\newmdenv[style=symbolbox]{symbolbox}
|
||||
|
||||
% tablebox
|
||||
% ----------------------------------------------------------------------
|
||||
\newmdenv[style=tablebox]{tableboxframe}
|
||||
\newenvironment{tablebox}[1]{
|
||||
% beginning
|
||||
\setlength{\tabcolsep}{4pt}
|
||||
\begin{tableboxframe}%[frametitle=\begin{tabular*}{\columnwidth}{@{\extracolsep\fill}#1@{}}#2\end{tabular*}]
|
||||
\begin{tabular*}{\columnwidth}{@{\extracolsep\fill}#1@{}}%
|
||||
}{
|
||||
%ending
|
||||
\end{tabular*}%
|
||||
\end{tableboxframe}
|
||||
}
|
||||
\newenvironment{tablebox*}[1]{
|
||||
% beginning
|
||||
\setlength{\tabcolsep}{4pt}
|
||||
\begin{tableboxframe}
|
||||
\centering
|
||||
\begin{tabular}{@{}#1@{}}%
|
||||
}{
|
||||
%ending
|
||||
\end{tabular}%
|
||||
\end{tableboxframe}
|
||||
}
|
||||
|
||||
% cookbox
|
||||
% ----------------------------------------------------------------------
|
||||
\newenvironment{cookbox}[1]{
|
||||
\begin{bluebox}[frametitle=#1]
|
||||
\begin{enumerate}[label=\bfseries\arabic*.]
|
||||
}{
|
||||
\end{enumerate}
|
||||
\end{bluebox}
|
||||
}
|
||||
|
||||
% Ende von \input
|
||||
\endinput
|
@ -0,0 +1,85 @@
|
||||
%
|
||||
% latex package with color scheme
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Version: 1.0
|
||||
% License: TBD
|
||||
%
|
||||
% © 2011-2015, LaTeX4EI
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{latex4ei_colors}[2015/03/30 Colors for LaTeX4EI]
|
||||
|
||||
% Packages
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{xcolor}
|
||||
|
||||
% Own Macros
|
||||
% ----------------------------------------------------------------------
|
||||
% define command to provide colors
|
||||
\makeatletter
|
||||
\providecommand{\providecolor}[2]{%
|
||||
\@ifundefinedcolor{#1}{\colorlet{#1}{#2}}{}}
|
||||
\makeatother
|
||||
|
||||
% ======================================================================
|
||||
% Color Scheme
|
||||
% ======================================================================
|
||||
|
||||
% TUM Color Palette
|
||||
% ----------------------------------------------------------------------
|
||||
% Note: The following color definitions are copied
|
||||
% from the official TUM Styleguide
|
||||
|
||||
% the tum logo color
|
||||
\definecolor{col_tum_logo}{RGB}{0, 101, 189} % Pantone 300
|
||||
|
||||
% additional blue colors
|
||||
\definecolor{tum_blue_dark2}{RGB}{0, 51, 89} % Pantone 540
|
||||
\definecolor{tum_blue_dark}{RGB}{0, 82, 147} % Pantone 301
|
||||
\definecolor{tum_blue}{RGB}{0, 115, 207} % Pantone 285
|
||||
\definecolor{tum_blue_light}{RGB}{100, 160, 200} % Pantone 542
|
||||
\definecolor{tum_blue_light2}{RGB}{152, 198, 234} % Pantone 283
|
||||
|
||||
% emphasize colors
|
||||
\definecolor{tum_green}{RGB}{162, 173, 0} % Pantone 383
|
||||
\definecolor{tum_orange}{RGB}{227, 114, 34} % Pantone 158
|
||||
\definecolor{tum_elfenbein}{RGB}{218, 215, 203} % Pantone 7527
|
||||
|
||||
% gray colors
|
||||
\definecolor{tum_gray_dark}{RGB}{88, 88, 90}
|
||||
\definecolor{tum_gray}{RGB}{156, 157, 159}
|
||||
\definecolor{tum_gray_light}{RGB}{217, 218, 219}
|
||||
|
||||
|
||||
% advanced colors
|
||||
\definecolor{tum_purple}{RGB}{105, 8, 90}
|
||||
\definecolor{tum_purple_dark}{RGB}{15, 27, 95}
|
||||
|
||||
\definecolor{tum_blue_ocean}{RGB}{0, 119, 138}
|
||||
\definecolor{tum_green_leaf}{RGB}{0, 124, 48}
|
||||
\definecolor{tum_green_grass}{RGB}{103, 154, 029}
|
||||
|
||||
\definecolor{tum_yellow}{RGB}{255, 220, 0}
|
||||
\definecolor{tum_yellow_dark}{RGB}{249, 186, 0}
|
||||
|
||||
\definecolor{tum_orange_dark}{RGB}{214, 76, 19}
|
||||
|
||||
\definecolor{tum_red}{RGB}{196, 7, 27}
|
||||
\definecolor{tum_red_dark}{RGB}{156, 13, 22}
|
||||
|
||||
% Own colors (deprecated)
|
||||
% ----------------------------------------------------------------------
|
||||
\definecolor{lightblue}{RGB}{235,235,255}
|
||||
\definecolor{lightred}{RGB}{255,240,240}
|
||||
\definecolor{lightgreen}{RGB}{240,255,240}
|
||||
\definecolor{lightyellow}{RGB}{255,255,240}
|
||||
\definecolor{lightblue}{RGB}{220, 240, 247}
|
||||
\definecolor{darkblue}{RGB}{23,110,138}
|
||||
\definecolor{notsodarkblue}{RGB}{119,193,214}
|
||||
\definecolor{tablecolor}{RGB}{0,128,0}
|
||||
|
||||
\definecolor{lila}{RGB}{128,0,128}
|
||||
\definecolor{latex4eiblau}{RGB}{86,124,136}
|
||||
\definecolor{latex4eigruen}{RGB}{150,163,110}
|
@ -0,0 +1,297 @@
|
||||
%
|
||||
% Report class from LaTeX4EI
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Version: 1.0
|
||||
% License: TBD
|
||||
%
|
||||
% © 2011-2015, LaTeX4EI
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
|
||||
\ProvidesClass{latex4ei_report}[2015/03/15]
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Options
|
||||
% ======================================================================
|
||||
|
||||
% forward options to latex4ei package
|
||||
\DeclareOption{color}{\PassOptionsToPackage{color}{latex4ei/latex4ei}}
|
||||
\DeclareOption{nocolor}{\PassOptionsToPackage{nocolor}{latex4ei/latex4ei}}
|
||||
|
||||
% define baseclass
|
||||
\def\baseclass{scrartcl}
|
||||
|
||||
% set default options for base class
|
||||
\PassOptionsToClass{a4paper, 11pt}{\baseclass}
|
||||
|
||||
% pass unknown options to base class
|
||||
\DeclareOption*{%
|
||||
\PassOptionsToClass{\CurrentOption}{\baseclass}%
|
||||
}
|
||||
|
||||
% process options
|
||||
\ProcessOptions\relax
|
||||
|
||||
% load baseclass
|
||||
\LoadClass{\baseclass}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Packages
|
||||
% ======================================================================
|
||||
|
||||
% pass options to packages
|
||||
\PassOptionsToPackage{table}{xcolor}
|
||||
|
||||
% load latex4ei packages
|
||||
\RequirePackage{latex4ei/scientific} % scientific macros for LaTeX4EI
|
||||
\RequirePackage{latex4ei/latex4ei} % base definitions for LaTeX4EI (privat)
|
||||
|
||||
|
||||
\RequirePackage{abstract}
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Color Scheme
|
||||
% ======================================================================
|
||||
|
||||
% Set Color Scheme
|
||||
% ----------------------------------------------------------------------
|
||||
\definecolor{url}{gray}{0.6}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Fonts
|
||||
% ======================================================================
|
||||
|
||||
% Font Settings
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
% font
|
||||
%\RequirePackage[osf]{mathpazo} % old style numbering
|
||||
\renewcommand{\rmdefault}{ppl} % cmr, ptm, ppl, pnc, pbk
|
||||
%\renewcommand{\sfdefault}{cmss} % cmss, phv pag
|
||||
|
||||
|
||||
\shorthandoff{"} % don't convert "A to Ä!
|
||||
|
||||
|
||||
% calculate linespacing based on font size
|
||||
% char per line: 85
|
||||
\RequirePackage{setspace}
|
||||
\linespread{1.3}\selectfont
|
||||
|
||||
%\usepackage{microtype} % Verbesserung des Kernings, Achtung kompilezeit!
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Title
|
||||
% ======================================================================
|
||||
\newcommand*{\@chair}{}
|
||||
\newcommand*{\chair}[1]{\gdef\@chair{#1}}
|
||||
|
||||
\newcommand*{\@university}{}
|
||||
\newcommand*{\university}[1]{\gdef\@university{#1}}
|
||||
|
||||
\newcommand*{\@professor}{}
|
||||
\newcommand*{\professor}[1]{\gdef\@professor{#1}}
|
||||
|
||||
\newcommand*{\@supervisors}{}
|
||||
\newcommand*{\supervisors}[1]{\gdef\@supervisors{#1}}
|
||||
|
||||
\newcommand*{\@startdate}{}
|
||||
\newcommand*{\startdate}[1]{\gdef\@startdate{#1}}
|
||||
|
||||
\newcommand*{\@finaldate}{}
|
||||
\newcommand*{\finaldate}[1]{\gdef\@finaldate{#1}}
|
||||
|
||||
\newcommand*{\@matrikelnr}{}
|
||||
\newcommand*{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}
|
||||
|
||||
\newcommand*{\@studentemail}{}
|
||||
\newcommand*{\studentemail}[1]{\gdef\@studentemail{#1}}
|
||||
|
||||
|
||||
\def\maketitle{%
|
||||
\begin{centering}
|
||||
\vspace{1cm}
|
||||
\begin{huge}
|
||||
\textbf{\sffamily\@title}
|
||||
\end{huge}\\[2em]
|
||||
{\large \@author} \\[1em]
|
||||
Registration no. \@matrikelnr \\
|
||||
E-mail: \email{\@studentemail} \\[2em]
|
||||
\end{centering}
|
||||
\thispagestyle{empty}
|
||||
}
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Layout
|
||||
% ======================================================================
|
||||
|
||||
% Page Layout
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\RequirePackage{geometry}
|
||||
\geometry{hmargin=2.5cm, top=3cm, bottom=3.2cm}
|
||||
|
||||
|
||||
\def\mparsetup{%
|
||||
\sffamily\scriptsize %
|
||||
\linespread{0.9}\selectfont%
|
||||
\parindent=0pt \lineskip=0pt \lineskiplimit=0pt %
|
||||
\tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%
|
||||
\doublehyphendemerits=100000%
|
||||
\finalhyphendemerits=\doublehyphendemerits}
|
||||
|
||||
\let\oldmarginpar\marginpar % save old command
|
||||
|
||||
\renewcommand{\marginpar}[1]{\oldmarginpar[\mparsetup\raggedleft\hspace{0pt}{#1}]{\mparsetup\raggedright\hspace{0pt}{#1}}}
|
||||
|
||||
% Footnotes
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\long\def\@makefntext#1{%
|
||||
\leftskip 0pt
|
||||
\parindent 0pt
|
||||
\everypar{\parindent 0pt}%
|
||||
\leavevmode\llap{\@thefnmark\hskip\marginparsep}#1} % footnote number in margin
|
||||
\renewcommand\footnoterule{%
|
||||
\kern-3\p@
|
||||
\hrule\@width \columnwidth
|
||||
\kern2.6\p@}
|
||||
\skip\@mpfootins=4pt
|
||||
|
||||
|
||||
% Sections
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\RequirePackage{titlesec}
|
||||
%\titleformat{ command }[ shape ]{ format }{ label }{ sep }{ before }[ after ]
|
||||
%\titlespacing*{ command }{ left }{ beforesep }{ aftersep }[ right ]
|
||||
|
||||
|
||||
\titleformat{\section}{\sf\bfseries\LARGE\color{col_section}}{\thesection.\ }{0em}{}
|
||||
\titleformat{\subsection}{\sf\bfseries\Large\color{col_subsection}}{\thesubsection.\ }{0em}{}
|
||||
\titleformat{\subsubsection}{\scshape\large\color{col_subsubsection}}{\thesubsubsection.\ }{0em}{}
|
||||
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Lists & Equations
|
||||
% ======================================================================
|
||||
|
||||
%\setlength{\itemsep}{\baselineskip}
|
||||
\setlength{\itemsep}{0pt}
|
||||
|
||||
\RequirePackage{enumitem}
|
||||
\setitemize{itemsep=0pt}
|
||||
\setenumerate{itemsep=0pt}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Float Environments
|
||||
% ======================================================================
|
||||
|
||||
\RequirePackage{caption}
|
||||
% Idea: short caption (for LOF) in bold, rest of caption as normal text
|
||||
|
||||
% Figures
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\RequirePackage{graphicx} % for different input formats
|
||||
\RequirePackage{pdfpages}
|
||||
%\RequirePackage{media9} % for flash and 3D Objects
|
||||
\RequirePackage[sf,SF]{subfigure} % Subfigures, sans-serif counters
|
||||
|
||||
\makeatletter
|
||||
\renewcommand\p@subfigure{\thefigure}
|
||||
\renewcommand{\thefigure}{\@arabic\c@figure}
|
||||
\renewcommand{\thesubfigure}{\alph{subfigure})}
|
||||
\makeatother
|
||||
|
||||
|
||||
\captionsetup[figure]{labelfont={color=col_figure,sf},textfont={sf,small}}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Macros
|
||||
% ======================================================================
|
||||
|
||||
% Names
|
||||
\providecommand{\name}[1]{\mbox{\textsc{#1}}}
|
||||
\providecommand{\Prof}{Prof.~}
|
||||
\providecommand{\Dr}{Dr.~}
|
||||
\providecommand{\DiplIng}{Dipl.-Ing.~}
|
||||
\providecommand{\MSc}{M.~Sc.~}
|
||||
\providecommand{\habil}{habil.~}
|
||||
\providecommand{\PD}{PD~}
|
||||
|
||||
% Abbreviations
|
||||
%\newcommand{\cf}{cf.\@\xspace}
|
||||
\newcommand{\ea}{\& al.\@\xspace}
|
||||
\newcommand{\eg}{e.\,g.\@\xspace}
|
||||
\newcommand{\etc}{etc.\@\xspace}
|
||||
\renewcommand{\iff}{if and only if\xspace}
|
||||
\newcommand{\ie}{i.\,e.\@\xspace}
|
||||
\newcommand{\wrt}{with respect to\xspace}
|
||||
\newcommand{\wlg}{without loss of generality\xspace}
|
||||
\newcommand{\Wlg}{Without loss of generality\xspace}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Others
|
||||
% ======================================================================
|
||||
|
||||
% References and Links
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\hypersetup{
|
||||
pdfcreator={LaTeX2e},
|
||||
pdfborder=0 0 0,
|
||||
breaklinks=true,
|
||||
bookmarksopen=true,
|
||||
bookmarksnumbered=true,
|
||||
linkcolor=col_link,
|
||||
urlcolor=col_link,
|
||||
citecolor=col_link,
|
||||
colorlinks=true
|
||||
}
|
||||
|
||||
% backref style
|
||||
\renewcommand*{\backref}[1]{(cited on p. #1)}
|
||||
|
||||
% Sourcecode listings
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{listings}
|
||||
\lstset{
|
||||
basicstyle=\normalsize\tt\lst@ifdisplaystyle\small\fi,
|
||||
tabsize=4,
|
||||
%gobble=auto, % skip initial tabs %not supported yet
|
||||
numbers=none, % switch numbers on: left
|
||||
numberstyle=\tiny\sf\color{col_lst_number},
|
||||
numbersep=1em,
|
||||
keepspaces=true,
|
||||
keywordstyle=\color{tum_blue_dark},
|
||||
commentstyle=\color{col_lst_comment},
|
||||
stringstyle=\color{col_lst_string},
|
||||
captionpos = t,
|
||||
frame = tb,
|
||||
%framextopmargin={\smallskipamount},
|
||||
%framexbottommargin={\smallskipamount},
|
||||
framerule=1pt,
|
||||
rulecolor = \color{col_lst},
|
||||
}
|
||||
\captionsetup[lstlisting]{labelfont={color=col_figure,sf},textfont={sf,small}}
|
||||
|
||||
% Inline code listings
|
||||
\let\code\lstinline
|
||||
|
||||
\endinput
|
@ -0,0 +1,242 @@
|
||||
%
|
||||
% Layout, Macros for LaTeX4EI
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Version: 1.0
|
||||
% License: CC-BY-NC-SA
|
||||
%
|
||||
% © 2011-2015, LaTeX4EI
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{latex4ei_sheet}[2014/03/30 Cheet Sheet Template from LaTeX4EI]
|
||||
|
||||
% ======================================================================
|
||||
% Options
|
||||
% ======================================================================
|
||||
|
||||
% forward options to latex4ei package
|
||||
% ----------------------------------------------------------------------
|
||||
\newif\ifcolor\colortrue
|
||||
\DeclareOption{color}{\colortrue\PassOptionsToPackage{color}{latex4ei}}
|
||||
\DeclareOption{nocolor}{\colorfalse\PassOptionsToPackage{nocolor}{latex4ei}}
|
||||
\DeclareOption{german}{\colorfalse\PassOptionsToPackage{german}{latex4ei}}
|
||||
\DeclareOption{english}{\colorfalse\PassOptionsToPackage{english}{latex4ei}}
|
||||
|
||||
|
||||
% make three column design possible
|
||||
% ----------------------------------------------------------------------
|
||||
\newcounter{columnnumber}
|
||||
\setcounter{columnnumber}{4}
|
||||
\DeclareOption{threecolumn}{\setcounter{columnnumber}{3}}
|
||||
|
||||
|
||||
% mobile version
|
||||
% ----------------------------------------------------------------------
|
||||
\newif\ifmobile\mobilefalse
|
||||
\DeclareOption{mobile}{\mobiletrue\setcounter{columnnumber}{0}}
|
||||
|
||||
|
||||
% defaults
|
||||
% ----------------------------------------------------------------------
|
||||
% define baseclass
|
||||
\def\baseclass{scrartcl}
|
||||
|
||||
% set default options for base class
|
||||
\PassOptionsToClass{6pt, a4paper, landscape}{\baseclass}
|
||||
|
||||
% forward unknown options to class
|
||||
% ----------------------------------------------------------------------
|
||||
\DeclareOption*{%
|
||||
\PassOptionsToClass{\CurrentOption}{\baseclass}%
|
||||
}
|
||||
|
||||
% process options
|
||||
% ----------------------------------------------------------------------
|
||||
\ProcessOptions\relax
|
||||
|
||||
% load baseclass
|
||||
\LoadClass{\baseclass}
|
||||
|
||||
% ======================================================================
|
||||
% Packages
|
||||
% ======================================================================
|
||||
% load latex4ei packages
|
||||
\RequirePackage{latex4ei/scientific} % scientific macros for LaTeX4EI
|
||||
\RequirePackage{latex4ei/latex4ei} % base definitions for LaTeX4EI
|
||||
\RequirePackage{latex4ei/latex4ei_boxes} % section boxes
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Layout
|
||||
% ======================================================================
|
||||
|
||||
% Geometry
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{geometry}
|
||||
\geometry{a4paper,landscape, left=6mm,right=6mm, top=6mm, bottom=5mm,includefoot, footskip=1.7em}
|
||||
|
||||
|
||||
% Multicolumn
|
||||
% ----------------------------------------------------------------------
|
||||
\ifmobile\else
|
||||
\RequirePackage{multicol} % for columns
|
||||
|
||||
% start multicolumn
|
||||
\AtBeginDocument{
|
||||
\begin{multicols*}{\value{columnnumber}}
|
||||
}
|
||||
\AtEndDocument{
|
||||
\label{LastPage}
|
||||
\end{multicols*}
|
||||
}
|
||||
\fi
|
||||
|
||||
|
||||
% Header and Footer
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{fancyhdr}
|
||||
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
|
||||
\AtBeginDocument{
|
||||
\fancyfoot[C]{\EngGer{from}{von} \theauthor\ -- Mail: \email{\theemail}}
|
||||
}
|
||||
\renewcommand{\headrulewidth}{0.0pt} %obere Linie ausblenden
|
||||
\renewcommand{\footrulewidth}{0.1pt} %obere Linie ausblenden
|
||||
|
||||
\fancyfoot[R]{\EngGer{Last revised}{Stand}: \themydate \qquad \thepage/\pageref{LastPage}}
|
||||
\fancyfoot[L]{Homepage: \url{\thewebsite} -- \EngGer{Please report mistakes \emph{immediately}}{Fehler bitte \emph{sofort} melden}.}
|
||||
|
||||
|
||||
% Title
|
||||
% ----------------------------------------------------------------------
|
||||
\providecommand{\fstitle}[1]{
|
||||
\vspace{-20mm}{
|
||||
\parbox{2.3cm}{
|
||||
\includegraphics[height=1.4cm]{Logo.pdf}
|
||||
}
|
||||
\parbox{4cm}{
|
||||
\huge\textbf{#1}
|
||||
}}
|
||||
}
|
||||
|
||||
\renewcommand{\maketitle}{\fstitle{\thetitle}}
|
||||
|
||||
% Chapters and Sections
|
||||
% ----------------------------------------------------------------------
|
||||
\RequirePackage{titlesec}
|
||||
%\titleformat{ command }[ shape ]{ format }{ label }{ sep }{ before-code }[ after-code ]
|
||||
%\titlespacing*{ command }{ left }{ beforesep }{ aftersep }[ right ]
|
||||
|
||||
\makeatletter
|
||||
\@addtoreset{section}{part}
|
||||
\makeatother
|
||||
|
||||
\titleformat{\part}{\pagebreak\huge \bfseries}{}{0em}{\huge \bfseries}
|
||||
%\providecommand{\chapter}[1]{\vspace{0.5em}\noindent\textbf{\huge{#1}}\vspace{0.5em}}
|
||||
%\titleformat{\chapter}{\huge \bfseries}{\thechapter}{0em}{\huge \bfseries}
|
||||
\titleformat{\section}{\Large\bfseries\color{col_section}}{\thesection .}{0.5em}{\color{col_section}}%[\color{col_section} \hrule \hrule]
|
||||
\titleformat{\subsection}{\large\bfseries\color{col_subsection}}{\thesubsection .}{0.3em}{}
|
||||
\titleformat{\subsubsection}{\bfseries\color{col_subsubsection}}{\thesubsubsection .}{0.2em}{}
|
||||
\titleformat{\paragraph}{\bfseries\color{col_paragraph}}{\theparagraph .}{0.2em}{}
|
||||
|
||||
%\titlespacing{Überschriftart}{keine Ahnung}{Abstand oberhalb}{Abstand unterhalb}
|
||||
\titlespacing{\section}{0em}{1.0em}{0.1em}
|
||||
\titlespacing{\subsection}{0em}{0.2em}{-0.2em}
|
||||
\titlespacing{\subsubsection}{0em}{0em}{-0.3em}
|
||||
\titlespacing{\paragraph}{0em}{0em}{-0.3em}
|
||||
|
||||
% Paragraphs
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
\RequirePackage{parskip} % prevents intend on new paragraph
|
||||
\setlength{\parskip}{1pt}
|
||||
|
||||
% Font Settings
|
||||
% ----------------------------------------------------------------------
|
||||
|
||||
% set sans as default font family
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
|
||||
% stretch linespace in arrays and tables
|
||||
\renewcommand{\arraystretch}{1.2}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Environments
|
||||
% ======================================================================
|
||||
\setlength{\itemindent}{0em}
|
||||
\setlength\leftmargini{1.7em}
|
||||
\setlength\itemsep{0em}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Other
|
||||
% ======================================================================
|
||||
|
||||
% SI-Units Settings
|
||||
% ----------------------------------------------------------------------
|
||||
\sisetup{per-mode=fraction}
|
||||
\sisetup{sticky-per=true}
|
||||
\AtBeginDocument{\sisetup{math-rm=\mathrm, text-rm=\rmfamily}}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Color Scheme
|
||||
% ======================================================================
|
||||
|
||||
\ifcolor
|
||||
\colorlet{col_section}{tum_blue_dark}
|
||||
\colorlet{col_subsection}{black}
|
||||
\colorlet{col_subsubsection}{black}
|
||||
\colorlet{col_sectionbox}{gray}
|
||||
|
||||
\colorlet{col_emphbox}{tum_red}
|
||||
\colorlet{col_topicbox}{tum_blue_dark}
|
||||
\colorlet{col_symbolbox}{tum_orange}
|
||||
\colorlet{col_cookbox}{tum_blue_dark}
|
||||
|
||||
\colorlet{col_table}{tum_blue_dark}
|
||||
\else
|
||||
\colorlet{col_section}{black}
|
||||
\colorlet{col_subsection}{black}
|
||||
\colorlet{col_subsubsection}{black}
|
||||
|
||||
\colorlet{col_sectionbox}{gray}
|
||||
\colorlet{col_emphbox}{black}
|
||||
\colorlet{col_topicbox}{black}
|
||||
\colorlet{col_symbolbox}{black}
|
||||
\colorlet{col_cookbox}{black}
|
||||
|
||||
\colorlet{col_table}{black}
|
||||
\fi
|
||||
|
||||
% Color for listings
|
||||
\lstset{
|
||||
backgroundcolor=\color{col_lst!5},
|
||||
}
|
||||
|
||||
% ======================================================================
|
||||
% Mobile Version
|
||||
% ======================================================================
|
||||
\ifmobile
|
||||
\geometry{
|
||||
paperwidth=7.3cm,
|
||||
paperheight=20cm,
|
||||
portrait,
|
||||
left=1em,right=1em, top=1em, bottom=1em,
|
||||
noheadfoot, footskip=0em
|
||||
}
|
||||
|
||||
% title
|
||||
\renewcommand{\maketitle}{
|
||||
\fstitle{\thetitle}
|
||||
\setcounter{tocdepth}{2}
|
||||
\tableofcontents
|
||||
\pagebreak
|
||||
}
|
||||
\pagestyle{empty}
|
||||
\newcommand{\columnbreak}{\relax}
|
||||
\fi
|
@ -0,0 +1,247 @@
|
||||
%
|
||||
% latex package with useful macros for scientific documents
|
||||
%
|
||||
% Authors: Emanuel Regnath, Martin Zellner
|
||||
% Contact: info@latex4ei.de
|
||||
% Version: 1.0
|
||||
% License: TBD
|
||||
%
|
||||
% © 2011-2015, LaTeX4EI
|
||||
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{scientific}[2015/03/30 Scientific Macros for LaTeX4EI]
|
||||
|
||||
% ======================================================================
|
||||
% Basic
|
||||
% ======================================================================
|
||||
|
||||
% Identify Compiler
|
||||
\RequirePackage{ifxetex}
|
||||
\ifxetex%
|
||||
\relax
|
||||
\else%
|
||||
% load following packages if and only if compiler is pdflatex
|
||||
|
||||
|
||||
|
||||
\fi
|
||||
|
||||
% load packages, order matter
|
||||
\RequirePackage{amsmath} % math symbols and \DeclareMathOperator
|
||||
\RequirePackage{esint} % more integral symbols
|
||||
%\RequirePackage{accents} % accents such as \vec and \ddot
|
||||
% additional packages
|
||||
\RequirePackage{amssymb} % additional math
|
||||
|
||||
|
||||
% save old commands
|
||||
\let\oldvec = \vec
|
||||
\let\olddot = \dot
|
||||
\let\diameter = \O
|
||||
|
||||
% formating indices
|
||||
\newcommand{\ir}[1]{\sf #1} % index roman
|
||||
|
||||
% differential delta
|
||||
\newcommand{\diff}{\mathop{}\!\mathrm{\vphantom( d}}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% SI Units
|
||||
% ======================================================================
|
||||
\RequirePackage{siunitx} % SI package
|
||||
\sisetup{per-mode=reciprocal} % use ^-1 instead of fractals
|
||||
\sisetup{sticky-per=true} % every unit behind "per" is reciprocal
|
||||
\newcommand{\unitof}[1]{\ensuremath{\left[#1\right]}} % unit of
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Vectors and Matrices
|
||||
% ======================================================================
|
||||
|
||||
% Define \utilde: from package undertilde.sty
|
||||
\newlength\knuthian@fdfive
|
||||
\def\mathpal@save#1{\let\was@math@style=#1\relax}
|
||||
\def\utilde#1{\mathpalette\mathpal@save
|
||||
{\setbox124=\hbox{$\was@math@style#1$}%
|
||||
\setbox125=\hbox{$\fam=3\global\knuthian@fdfive=\fontdimen5\font$}
|
||||
\setbox125=\hbox{$\widetilde{\vrule height 0pt depth 0pt width \wd124}$}%
|
||||
\baselineskip=1pt\relax
|
||||
\vtop{\copy124\copy125\vskip -\knuthian@fdfive}}}
|
||||
|
||||
% vectors and matrices
|
||||
\newcommand{\ma}[1]{\ensuremath{\utilde{\boldsymbol {#1}}}} % Matrixsymbol
|
||||
\newcommand{\mat}[1]{\ensuremath{\arraycolsep=0.5em \begin{bmatrix} #1 \end{bmatrix}}} % Matrix
|
||||
\newcommand{\tma}[3]{\ensuremath{{}_{#1} \ma #2_#3 }} % Trafomatrix
|
||||
%\renewcommand{\vec}[1]{\ensuremath{\underline{\boldsymbol \begingroup#1\endgroup}}} % Vector bold and underlined
|
||||
\newcommand{\vect}[1]{\ensuremath{\begin{pmatrix} #1 \end{pmatrix}}} % Vector
|
||||
\newcommand{\mvect}[1]{\ensuremath{\left.\begin{matrix} #1 \end{matrix}\right]}}% Matrixvector
|
||||
\newcommand{\tensor}[1]{\ensuremath{\underline{\underline{\boldsymbol #1}}}} % Tensor
|
||||
\DeclareMathOperator{\diag}{diag} % diagonal matrix
|
||||
|
||||
% vector operations
|
||||
\newcommand{\norm}[1]{\ensuremath{\left\|#1\right\|}} % Norm
|
||||
\DeclareMathOperator{\Sp}{Sp} % Spur (german for trace \tr)
|
||||
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Misc
|
||||
% ======================================================================
|
||||
|
||||
% basic math
|
||||
\providecommand{\hateq}{\ensuremath{\stackrel{\wedge}{=}}} % Entspricht
|
||||
\providecommand{\floor}[1]{\ensuremath{\left\lfloor#1\right\rfloor}} % Abrunden
|
||||
\providecommand{\ceil}[1]{\ensuremath{\left\lceil {#1} \right\rceil}} % Aufrunden
|
||||
\providecommand{\sprod}[2]{\ensuremath{\left\langle #1, #2 \right\rangle }} % scalar product
|
||||
\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % absolute value)
|
||||
\DeclareMathOperator{\const}{const.} % constant
|
||||
\DeclareMathOperator{\sgn}{sgn} % signum
|
||||
\DeclareMathOperator{\ld}{ld} % log_2
|
||||
\DeclareMathOperator{\ggT}{ggT} % ggT (german for gcd)
|
||||
|
||||
% chemistry
|
||||
\newcommand{\chem}[1]{\ensuremath{\displaystyle{\mathrm{#1}}}} % chemistry with \chem (simple)
|
||||
\RequirePackage[version=3]{mhchem} % chemistry with \ce (advanced)
|
||||
|
||||
|
||||
\newcommand{\rom}[1]{\ensuremath{\underline{\overline{\textsc{#1}}}}} % roman numbers
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Important Constants
|
||||
% ======================================================================
|
||||
|
||||
% math
|
||||
\providecommand{\e}{\mathrm{e}}
|
||||
|
||||
% physical
|
||||
\providecommand{\kB}{\ensuremath{\mathrm{k}_{\text{B}}}} % Boltzman
|
||||
\providecommand{\Rgas}{\ensuremath{\mathrm{R}}} % Allg. Gaskonstante
|
||||
\providecommand{\NA}{\ensuremath{\mathrm{N}_{\text{A}}}} % Avogadro
|
||||
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Complex and Hyper-complex Numbers
|
||||
% ======================================================================
|
||||
|
||||
\newcommand{\cx}[1]{\boldsymbol{#1}} % complex number
|
||||
\newcommand{\cxc}[1]{\ensuremath{\boldsymbol #1^*}} % Konjugiert complex number
|
||||
\newcommand{\hx}[1]{\ensuremath{\mathfrak #1}} % hyper-complex number
|
||||
\renewcommand{\i}{\ensuremath{\mathrm{i}}} % imaginary unit
|
||||
\renewcommand{\j}{\ensuremath{\mathrm{j}}} % imaginary unit
|
||||
\renewcommand{\k}{\ensuremath{\mathrm{k}}} % imaginary unit
|
||||
|
||||
% real and imaginary part
|
||||
\renewcommand{\Re}[1]{\ensuremath{\operatorname{Re}\left\{#1\right\}}}
|
||||
\renewcommand{\Im}[1]{\ensuremath{\operatorname{Im}\left\{#1\right\}}}
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Sets
|
||||
% ======================================================================
|
||||
|
||||
% define sets
|
||||
\newcommand{\iset}[2]{\ensuremath{\bigl\{ \bigl. #1 \, \bigr| \, #2 \bigr\}}} % intensional set
|
||||
\newcommand{\eset}[1]{\ensuremath{\bigl\{#1\bigr\}}} % extensional set
|
||||
|
||||
% abbreviations for important sets
|
||||
\DeclareMathOperator{\N}{\mathbb N} % Natürliche Zahlen
|
||||
\DeclareMathOperator{\R}{\mathbb R} % Reele Zahlen
|
||||
\DeclareMathOperator{\C}{\mathbb C} % Komplexe Zahlen
|
||||
\DeclareMathOperator{\K}{\mathbb K} % Reele oder komplexe Zahlen
|
||||
\def\B{\operatorname{\mathbb B}} % Binäre Zahlen 1,0
|
||||
\def\O{\operatorname{\mathcal O}} % Landau
|
||||
|
||||
% set operations
|
||||
\let\cupplus\uplus % Vereinigunsmenge bzw. OR
|
||||
\newlength{\caplength}
|
||||
\setlength{\caplength}{\widthof{$\cap$}}
|
||||
\DeclareMathOperator{\capdot}{\cap\hspace{-0.7\caplength}\text{\textperiodcentered}\hspace{0.4\caplength}} % Schnittmenge bzw. AND
|
||||
|
||||
% topology
|
||||
\newcommand{\interior}[1]{\ensuremath{\overset{{}_\circ}{#1}}} % Das Innere
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Frequency Transformations (Fourier, Laplace, etc.)
|
||||
% ======================================================================
|
||||
|
||||
% Define symbol for Transformations. Source: trfsigns.sty
|
||||
\newcommand{\ftsymbol}{\mbox{\setlength{\unitlength}{0.1em}
|
||||
\begin{picture}(25,4)
|
||||
\put(3,3){\circle{4}} % empty
|
||||
\put(5,3){\line(1,0){13}}
|
||||
\put(19,3){\circle*{4}} % filled
|
||||
\end{picture}}}
|
||||
|
||||
% Define Transformations
|
||||
\DeclareMathOperator{\FT}{\overset{\scriptscriptstyle\mathcal{F}}{\ftsymbol}} % Fourier Transform
|
||||
\DeclareMathOperator{\LT}{\overset{\scriptscriptstyle\mathcal{L}}{\ftsymbol}} % Laplace Transform
|
||||
\DeclareMathOperator{\DFT}{\overset{\scriptscriptstyle\mathcal{DF}}{\ftsymbol}} % Discrete Fourier Transform
|
||||
\DeclareMathOperator{\DTFT}{\overset{\scriptscriptstyle\mathcal{DTF}}{\ftsymbol}} % Discrete Time Fourier Transform
|
||||
\DeclareMathOperator{\ZT}{\overset{\scriptscriptstyle\mathcal{Z}}{\ftsymbol}} % Z-Transform
|
||||
|
||||
% ======================================================================
|
||||
% Differential Geometry
|
||||
% ======================================================================
|
||||
|
||||
\DeclareMathOperator{\grad}{grad} % Gradient
|
||||
\def\div{\operatorname{div}} % Divergence
|
||||
\DeclareMathOperator{\rot}{rot} % rotation
|
||||
\DeclareMathOperator{\lpo}{\Delta} % laplace operator
|
||||
\DeclareMathOperator{\laplace}{\Delta} % laplace operator
|
||||
\DeclareMathOperator{\waveop}{\square} % wave operator
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Signals
|
||||
% ======================================================================
|
||||
|
||||
\DeclareMathOperator{\dirac}{\ensuremath{\delta}} % Dirac Distribution
|
||||
\DeclareMathOperator{\heavi}{\ensuremath{\theta}} % Heaviside Step Function
|
||||
\DeclareMathOperator{\sinc}{sinc} % Sinus Cardinalis
|
||||
\DeclareMathOperator{\rect}{rect} % Rectangular
|
||||
\DeclareMathOperator{\tri}{tri} % Triangular
|
||||
\DeclareMathOperator{\erf}{erf} % Error Function
|
||||
\DeclareMathOperator{\erfc}{erfc} % Error Function
|
||||
|
||||
\providecommand{\SNR}{\mathrm{SNR}} % Signal Noise Ratio
|
||||
\providecommand{\ACF}{\ensuremath{\varphi}} % autocorrelation function
|
||||
\providecommand{\PSD}{\ensuremath{\Phi}} % Power-Spectral-Density
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Stochastic
|
||||
% ======================================================================
|
||||
|
||||
\renewcommand{\P}{\operatorname{\textsf{P}}} % Wahrscheinlichkeitsmaß
|
||||
\DeclareMathOperator{\F}{\mathbb F} % Ereignisalgebra
|
||||
\DeclareMathOperator{\X}{\textsf{\textit{X}}} % Zufallsvariable X
|
||||
\DeclareMathOperator{\Y}{\textsf{\textit{Y}}} % Zufallsvariable Y
|
||||
\DeclareMathOperator{\Z}{\textsf{\textit{Z}}} % Zufallsvariable Z
|
||||
\DeclareMathOperator{\E}{\textsf{E}} % Erwartungswert
|
||||
\newcommand{\ew}[1]{\textit{E} \left[ #1 \right]} % Erwartungswert (mit Parameter)
|
||||
\DeclareMathOperator{\Var}{\textsf{Var}} % Varianz
|
||||
\DeclareMathOperator{\Cov}{\textsf{Cov}} % Kovarianz
|
||||
|
||||
|
||||
% ======================================================================
|
||||
% Logic
|
||||
% ======================================================================
|
||||
|
||||
\renewcommand{\implies}{\ensuremath{\rightarrow}} % →
|
||||
\let\limplies\implies
|
||||
\providecommand{\lequiv}{\ensuremath{\leftrightarrow}} % ↔
|
||||
\providecommand{\lnand}{\ensuremath{|}}
|
||||
\providecommand{\lxor}{\ensuremath{\downarrow}}
|
||||
\providecommand{\ltrue}{w}
|
||||
\providecommand{\lfalse}{f}
|
||||
|
||||
|
||||
% Ende von \input
|
||||
\endinput
|
||||
|
@ -1,6 +0,0 @@
|
||||
\section{Mengenlehre}
|
||||
|
||||
|
||||
\input{devinition.tex}
|
||||
\input{operations.tex}
|
||||
|
Loading…
Reference in New Issue