@@ -0,0 +1,48 @@ | |||
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % | |||
% ELK2 Formelsammlung | |||
% | |||
% @encode: UTF-8, tabwidth = 4, newline = LF | |||
% @author: Mario Fleischmann | |||
% @source: http://www.latex4ei.de | |||
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % | |||
% ====================================================================== | |||
% Document Settings | |||
% ====================================================================== | |||
% possible options: color/nocolor, english/german, threecolumn | |||
% default: color, english | |||
\documentclass[color,german]{latex4ei/latex4ei_sheet} | |||
\usepackage{gensymb} | |||
\usepackage{cancel} | |||
% set document information | |||
\title{Elektronik 2} | |||
\author{Mario Fleischmann} | |||
\myemail{fleischmannma75068@th-nuernberg.de} | |||
\fancyfoot[L]{Keine Gewähr auf Vollständigkeit oder Richtigkeit!} | |||
% DOCUMENT_BEGIN =============================================================== | |||
\begin{document} | |||
\IfFileExists{git.id}{\input{git.id}}{} | |||
\ifdefined\GitRevision\mydate{\GitNiceDate\ (git \GitRevision)}\fi | |||
\maketitle % requires ./img/Logo.pdf | |||
% SECTION ==================================================================================== | |||
\input{./thema3_transistor.tex} | |||
% ============================================================================================ | |||
% SECTION ==================================================================================== | |||
\input{./thema4_linearer_OPV.tex} | |||
% ============================================================================================ | |||
% SECTION ==================================================================================== | |||
\input{./thema5_nichtlinearer_OPV.tex} | |||
% ============================================================================================ | |||
% DOCUMENT_END =============================================================================== | |||
\end{document} |
@@ -0,0 +1,344 @@ | |||
% | |||
% Macros for LaTeX4EI | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, LaTeX4EI | |||
\NeedsTeXFormat{LaTeX2e} | |||
\ProvidesPackage{latex4ei/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} | |||
\usepackage{unicode-math} | |||
\providecommand{\ocirc}{o} | |||
\providecommand{\mathring}{o} | |||
%\RequirePackage{xltxtra} | |||
% for unicode decalarations | |||
%\let\DeclareUnicodeCharacter\newunicodechar | |||
\setmainfont{Times New Roman} % Libertinus Serif | |||
\setromanfont{Times New Roman} % Libertinus Serif | |||
\setsansfont{Helvetica} | |||
% some hacking for scientific.sty | |||
\AtBeginDocument{ | |||
% scale fonts to same x height | |||
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} | |||
\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 | |||
\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{{\rmfamily 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}{\bfseries ToDo:\@ifundefined{@captype}{\marginpar{\color{red}\bfseries ToDo!}}{\relax} #1} %check for float environments | |||
} | |||
\makeatother | |||
% Special term | |||
\providecommand{\term}[1]{\textit{#1}} | |||
% small note | |||
\providecommand{\note}[1]{\textit{Note: #1}} | |||
% Related work | |||
\providecommand{\work}[1]{\textit{#1}} | |||
\providecommand{\email}[1]{\href{mailto:#1}{\nolinkurl{#1}}} | |||
% References and Links | |||
% ---------------------------------------------------------------------- | |||
\providecommand{\sectionname}{Section} | |||
% several ref macros | |||
\providecommand\figureref[1]{\hyperref[#1]{\figurename~\ref*{#1}}} | |||
\providecommand\figurepageref[1]{\figureref{#1}~(p.~\pageref{#1})} | |||
\providecommand\tableref[1]{\hyperref[#1]{\tablename~\ref*{#1}}} | |||
\providecommand\tablepageref[1]{\tableref{#1}~(p.~\pageref{#1})} | |||
\providecommand\listingref[1]{\hyperref[#1]{\lstlistingname~\ref*{#1}}} | |||
\providecommand\listingpageref[1]{\listingref{#1}~(p.~\pageref{#1})} | |||
\providecommand\chapterref[1]{\chaptername~\ref*{#1}~(p.~\pageref{#1})} | |||
\providecommand\sectionref[1]{\hyperref[#1]{\sectionname~\ref*{#1}~(p.~\pageref{#1})}} | |||
\providecommand\appendixref[1]{\appendixname~\ref*{#1}~(p.~\pageref{#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\ttfamily\lst@ifdisplaystyle\small\fi, | |||
tabsize=4, | |||
%gobble=auto, % skip initial tabs %not supported yet | |||
numbers=none, % switch numbers on: left | |||
numberstyle=\tiny\sffamily\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,187 @@ | |||
% | |||
% Boxes for LaTeX4EI | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, 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, % grey | |||
backgroundcolor=col_sectionbox!0, % white | |||
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,86 @@ | |||
% | |||
% latex package with color scheme | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, LaTeX4EI | |||
\NeedsTeXFormat{LaTeX2e} | |||
\ProvidesPackage{latex4ei/latex4ei_colors}[2016/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, 55%: 204, 210, 115 | |||
\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} % 55%: 173, 119, 164 | |||
\definecolor{tum_purple_dark}{RGB}{15, 27, 95} % 55%: 123, 130, 167 | |||
\definecolor{tum_blue_ocean}{RGB}{0, 119, 138} % 55%: 115, 180, 191 | |||
\definecolor{tum_green_leaf}{RGB}{0, 124, 48} % 55%: 115, 183, 141 | |||
\definecolor{tum_green_grass}{RGB}{103, 154, 029} % 55%: 172, 200, 131 | |||
\definecolor{tum_yellow}{RGB}{255, 220, 0} % 55%: 255, 236, 115 | |||
\definecolor{tum_yellow_dark}{RGB}{249, 186, 0} | |||
\definecolor{tum_orange_dark}{RGB}{214, 76, 19} | |||
\definecolor{tum_red}{RGB}{196, 7, 27} % 55%: 223, 119, 130 | |||
\definecolor{tum_red_dark}{RGB}{156, 13, 22} % 55%: 201, 122, 127 | |||
% 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,125 @@ | |||
% common abbreviations: | |||
% ====================================================================== | |||
\renewcommand*\acronymname{List of Abbreviations} | |||
\newacronym{AGL}{AGL}{Above Ground Level} | |||
\newacronym{AMSL}{AMSL}{Above Mean Sea Level} | |||
\newacronym{API}{API}{Application Programming Interface} | |||
\newacronym{BIOS}{BIOS}{Basic Input/Output System} | |||
\newacronym{CPU}{CPU}{Central Processing Unit} | |||
\newacronym{FSM}{FSM}{Finite State Machine} | |||
\newacronym{GDB}{GDB}{GNU Debugger} | |||
\newacronym{GPS}{GPS}{Global Positioning System} | |||
\newacronym{GUI}{GUI}{Graphical User Interface} | |||
\newacronym{IEEE}{IEEE}{Institute of Electrical and Electronic Engineers} | |||
\newacronym{IDE}{IDE}{Integrated Development Environment} | |||
\newacronym{IRQ}{IRQ}{Interrupt Request} | |||
\newacronym{ISR}{ISR}{Interrupt Service Routine} | |||
\newacronym{JTAG}{JTAG}{Joint Test Action Group} | |||
\newacronym{LUT}{LUT}{Look-Up Table} | |||
\newacronym{MCU}{MCU}{Micro Controller Unit} | |||
\newacronym{RAM}{RAM}{Random Access Memory} | |||
\newacronym{ROM}{ROM}{Read-Only Memory} | |||
\newacronym{OOP}{OOP}{Object Oriented Programming} | |||
\newacronym{OS}{OS}{Operating System} | |||
\newacronym{PCB}{PCB}{Printed Circuit Board} | |||
\newacronym{RTOS}{RTOS}{Real-Time Operating System} | |||
\newacronym{RTE}{RTE}{Run-Time Environment} | |||
\newacronym{SIL}{SIL}{Safety Integrity Level} | |||
\newacronym{USB}{USB}{Universal Serial Bus} | |||
\newacronym{WCET}{WCET}{Worst Case Execution Time} | |||
% special abbreviations | |||
\newacronym{FAA}{FAA}{Federal Aviation Administration} | |||
\newacronym{ESC}{ESC}{Electronic speed control} | |||
% hardware abbr | |||
\newacronym{FC}{FC}{Flight Controller} | |||
\newacronym{DMA}{DMA}{Direct Memory Access} | |||
\newacronym{GPIO}{GPIO}{General Purpose Input Output} | |||
\newacronym{I2C}{I2C}{Inter-Integrated Circuit} | |||
\newacronym{SPI}{SPI}{Serial Peripheral Interface} | |||
\newacronym{SWD}{SWD}{Serial Wire Debug} | |||
\newacronym{UART}{UART}{Universal Asynchronous Receiver Transmitter} | |||
\newacronym{PWM}{PWM}{Pulse Width Modulation} | |||
\newacronym{HAA}{HAA}{Hardware Abstraction Architecture} | |||
\newacronym{HAL}{HAL}{Hardware Abstraction Layer} | |||
\newacronym{HPL}{HPL}{Hardware Presentation Layer} | |||
\newacronym{HIL}{HIL}{Hardware Interface Layer} | |||
% software development | |||
\newacronym{LSP}{LSP}{Liskov Substitution Principle} | |||
\newacronym{HLR}{HLR}{High Level Requirements} | |||
\newacronym{LLR}{LLR}{Low Level Requirements} | |||
\newacronym{VV}{V\;\&\;V}{Validation and Verification} | |||
\newacronym{}{}{} | |||
% move some terms to hidden | |||
\newignoredglossary{hidden} | |||
\glsmoveentry{DMA}{hidden} | |||
\glsmoveentry{GUI}{hidden} | |||
\glsmoveentry{VV}{hidden} | |||
\glsmoveentry{ISR}{hidden} | |||
\glsmoveentry{GDB}{hidden} | |||
\glsmoveentry{PCB}{hidden} | |||
% nomenclature: | |||
% ====================================================================== | |||
\newglossary{symbols}{sym}{sbl}{List of Symbols} | |||
% add unit column | |||
\glsaddkey{unit}{\glsentrytext{\glslabel}}{\glsentryunit}{\GLsentryunit}{\glsunit}{\Glsunit}{\GLSunit} | |||
\newglossaryentry{kb}{ | |||
type=symbols, | |||
name=$\mathrm{k}_{\mathrm{B}}$, | |||
unit={}, | |||
description={Boltzmann Constant, $\mathrm{k}_{\mathrm{B}} = \SI{1.38064852e-23}{\meter\squared\kilo\gram\per\second\squared\kelvin}$}, | |||
} | |||
% glossary terms | |||
% ====================================================================== | |||
\newglossary{terms}{ter}{tms}{List of Terms} | |||
\newglossaryentry{ARM}{ | |||
type=terms, | |||
name=ARM, | |||
description={is a software design company and supplies intellectual property for microprocessors.}, | |||
} | |||
\newglossaryentry{firmware}{ | |||
type=terms, | |||
name=firmware, | |||
description={Software that is required to interface (one) specific hardware (e.g. BIOS).}, | |||
} | |||
\newglossaryentry{subprogram}{ | |||
type=terms, | |||
name=subprogram, | |||
description={an encapsulated part of the whole program.}, | |||
} | |||
@@ -0,0 +1,297 @@ | |||
% | |||
% Report class from LaTeX4EI | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, 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}{\sffamily\bfseries\LARGE\color{col_section}}{\thesection.\ }{0em}{} | |||
\titleformat{\subsection}{\sffamily\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.1 | |||
% License: CC-BY-NC-SA | |||
% | |||
% © 2011-2019, 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,671 @@ | |||
% | |||
% Thesis class from LaTeX4EI | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, LaTeX4EI | |||
% ToDo: | |||
% * create \listofabbreviations \listoflistings | |||
% * Screen_version und print_version | |||
% * create title page | |||
% TUM Styleguide: Liniebasis 0.3pt Linie Pfeil 0.6pt | |||
% options: frontmatter, colors, ornaments, margin | |||
\NeedsTeXFormat{LaTeX2e}[1996/12/01] | |||
\ProvidesClass{latex4ei/latex4ei_thesis}[2014/03/15] | |||
% ====================================================================== | |||
% Options | |||
% ====================================================================== | |||
% forward options to latex4ei package | |||
\DeclareOption{color}{\PassOptionsToPackage{color}{latex4ei}} | |||
\DeclareOption{nocolor}{\PassOptionsToPackage{nocolor}{latex4ei}} | |||
% define baseclass | |||
\def\baseclass{scrreprt} | |||
% Options | |||
\newif\ifmarginnumbers\marginnumbersfalse | |||
\DeclareOption{marginnumbers}{\marginnumberstrue} | |||
\newcommand{\chapterallign}{\raggedright} | |||
\DeclareOption{rightchapter}{% | |||
\let\chapterallign\raggedleft | |||
} | |||
\newif\ifoptionbiblatex\optionbiblatexfalse | |||
\DeclareOption{biblatex}{\optionbiblatextrue} | |||
\newif\ifoptionglossaries\optionglossariesfalse | |||
\DeclareOption{glossaries}{\optionglossariestrue} | |||
% 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 biblatex if specified | |||
\ifoptionbiblatex | |||
\RequirePackage[style=ieee, backend=biber, datamodel=ieeestandard]{biblatex} | |||
\fi | |||
% \makeatletter | |||
% \@ifpackagewith{biblatex}{backend=biber}{} | |||
% \makeatother | |||
% load latex4ei packages | |||
\RequirePackage{latex4ei/scientific} % scientific macros for LaTeX4EI | |||
\RequirePackage{latex4ei/latex4ei} % base definitions for LaTeX4EI (privat) | |||
% packages needed | |||
\RequirePackage{xspace} % For spacing behind commands | |||
\RequirePackage{remreset} % For removing counters from resets | |||
% fix for footnotes in tables | |||
\RequirePackage{footnote} | |||
\makesavenoteenv{tabular} | |||
\makesavenoteenv{table} | |||
%\shorthandoff{"} % don't convert "A to Ä! | |||
% font | |||
%\RequirePackage[osf]{mathpazo} % old style numbering | |||
%\renewcommand{\rmdefault}{ppl} % cmr, ptm, ppl, pnc, pbk | |||
%\renewcommand{\sfdefault}{cmss} % cmss, phv pag | |||
% ====================================================================== | |||
% Color Scheme | |||
% ====================================================================== | |||
% Set Color Scheme | |||
% ---------------------------------------------------------------------- | |||
\definecolor{url}{gray}{0.6} | |||
\definecolor{chapnum}{gray}{0.6} | |||
\definecolor{ornament}{gray}{0.85} | |||
%\definecolor{col_chapter}{gray}{0.6} | |||
\colorlet{col_chapter}{tum_gray} | |||
\colorlet{col_section}{tum_blue_dark2} | |||
\colorlet{col_subsection}{tum_blue_dark2} | |||
\colorlet{col_subsubsection}{tum_blue_dark2} | |||
\colorlet{col_table}{tum_blue_dark} | |||
\colorlet{col_figure}{tum_blue_dark} | |||
\colorlet{col_link}{tum_blue} | |||
\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} | |||
% ====================================================================== | |||
% Fonts | |||
% ====================================================================== | |||
% Font Settings | |||
% ---------------------------------------------------------------------- | |||
% Initials with lettrine | |||
\RequirePackage{lettrine} | |||
% calculate linespacing based on font size | |||
% char per line: 85 | |||
\RequirePackage{setspace} | |||
% \setlength{\baselineskip}{3pt} | |||
% \renewcommand{\baselinestretch}{1.5} | |||
%\linespread{1.3}\selectfont | |||
%\setstretch{1.3} | |||
\onehalfspacing | |||
%\usepackage{microtype} % Verbesserung des Kernings, Achtung kompilezeit! | |||
% ====================================================================== | |||
% Bibtex | |||
% ====================================================================== | |||
% Define BibTeX command | |||
\def\BibTeX{{\rmfamily B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} | |||
%\usepackage{natbib} | |||
%\bibliographystyle{natdin} | |||
% ====================================================================== | |||
% Title | |||
% ====================================================================== | |||
\newcommand*{\thedoctype}{} | |||
\newcommand*{\doctype}[1]{\gdef\thedoctype{#1}} | |||
% hierarchy: | |||
% university, faculty, department, institute, chair | |||
\newcommand*{\theuniversity}{} | |||
\newcommand*{\university}[1]{\gdef\theuniversity{#1}} | |||
\newcommand*{\thedepartment}{} | |||
\newcommand*{\department}[1]{\gdef\thedepartment{#1}} | |||
\newcommand*{\thechair}{} | |||
\newcommand*{\chair}[1]{\gdef\thechair{#1}} | |||
\newcommand*{\theprofessor}{} | |||
\newcommand*{\professor}[1]{\gdef\theprofessor{#1}} | |||
\newcommand*{\theadvisor}{} | |||
\newcommand*{\advisor}[1]{\gdef\theadvisor{#1}} | |||
\newcommand*{\thecoadvisor}{} | |||
\newcommand*{\coadvisor}[1]{\gdef\thecoadvisor{#1}} | |||
\newcommand*{\thesubmitdate}{} | |||
\newcommand*{\submitdate}[1]{\gdef\thesubmitdate{#1}} | |||
\newcommand*{\theauthorsaddress}{} | |||
\newcommand*{\authorsaddress}[1]{\gdef\theauthorsaddress{#1}} | |||
\newcommand*{\thestudentnumber}{} | |||
\newcommand*{\studentnumber}[1]{\gdef\thestudentnumber{#1}} | |||
\newcommand*{\thelogoheader}{} | |||
\newcommand*{\logoheader}[1]{\gdef\thelogoheader{#1}} | |||
\def\maketitle{{% | |||
\sffamily | |||
% ------------------------------------------------------------------------ | |||
% Deckblatt | |||
% ------------------------------------------------------------------------ | |||
\pagestyle{empty} | |||
\let\footnotesize\small\let\footnoterule\relax | |||
\thelogoheader | |||
\vspace*{8cm} | |||
\begin{center}\begin{minipage}[c]{0.8\textwidth}\begin{center} | |||
{\huge \bfseries{\@title} \par}% | |||
\vskip 3em% | |||
{\LARGE\@author} | |||
\end{center}\end{minipage}\end{center} | |||
\par | |||
\vfill | |||
\begin{center}{\LARGE \bfseries{\thedoctype}}\end{center}\par | |||
\cleardoublepage | |||
% ------------------------------------------------------------------------ | |||
% Das ganze etwas genauer | |||
% ------------------------------------------------------------------------ | |||
\vspace*{100pt} | |||
\begin{center}\begin{minipage}{0.7\textwidth}\centering% | |||
\vfil | |||
{\LARGE \bfseries{\@title} \par}% | |||
\vfil \vskip 2.5em | |||
{\Large \thedoctype \par}% | |||
\vfil | |||
\end{minipage}\end{center}\par | |||
\vfill \large | |||
\begin{center}% | |||
{{Supervised by \theprofessor \\ \thechair \\ \thedepartment \\ \theuniversity \\ }} | |||
\end{center}\par | |||
\vskip 1.5em | |||
\vfill | |||
\begin{tabular}{@{}l@{\hspace{1cm}}l}% | |||
\bfseries{Advisor} & \parbox[t]{9cm}{\theadvisor}\\[1.3em] | |||
\bfseries{Co-Advisor} & \parbox[t]{9cm}{{\thecoadvisor}}\\[1.3em] | |||
\bfseries{Author} & \parbox[t]{9cm}{{\@author\\ \theauthorsaddress}} \\ | |||
\end{tabular}\\[2em] | |||
Submitted on \thesubmitdate | |||
}} | |||
% ====================================================================== | |||
% Additional title pages | |||
% -------------------------------------------------------------------- | |||
\newenvironment{acknowledgment}{% | |||
\clearpage | |||
\thispagestyle{empty} | |||
\@makeschapterhead{Acknowledgment} | |||
\sffamily | |||
}{ | |||
} | |||
\newenvironment{authordecl}{% | |||
\cleardoublepage | |||
\thispagestyle{empty} | |||
\@makeschapterhead{Declaration of Authorship} | |||
\sffamily | |||
}{ | |||
} | |||
% ====================================================================== | |||
% Abstract | |||
% ====================================================================== | |||
\def\abstract{ | |||
\clearpage | |||
\thispagestyle{plain} | |||
\@makeschapterhead{\abstractname} | |||
\sffamily | |||
}{ | |||
} | |||
\def\endabstract{ | |||
} | |||
% ====================================================================== | |||
% Glossaries | |||
% ====================================================================== | |||
\ifoptionglossaries | |||
% Nomenclature with glossary, nomencl, acronym, acroterm | |||
\RequirePackage[toc, acronym, style=long, nolist, nomain, nopostdot, nogroupskip]{glossaries} | |||
\newglossarystyle{acronym}{% | |||
\renewenvironment{theglossary}{ | |||
\setlength\LTleft{0pt} | |||
\setlength\LTright{0pt} | |||
\setlength{\glsdescwidth}{0.7\textwidth} | |||
\setlength{\extrarowheight}{0em}% | |||
\renewcommand*{\glossaryheader}{}% have nothing after \begin{theglossary} | |||
\renewcommand*{\glsgroupheading}[1]{}% | |||
\renewcommand*{\glsgroupskip}{}% have nothing between glossary groups | |||
\begin{longtable}{@{}ll@{}}}{\end{longtable}}% | |||
\renewcommand*{\glossaryentryfield}[5]{% | |||
\textbf{\glstarget{##1}{##2}}% the entry name | |||
##4% the symbol | |||
& ##3% the description | |||
\space\space ##5\\}% the number list | |||
} | |||
% darker color for glossary links | |||
\renewcommand*{\glstextformat}[1]{\textcolor{tum_blue_dark2}{#1}} | |||
\fi | |||
% ====================================================================== | |||
% Structure | |||
% ====================================================================== | |||
\newcommand\frontmatter{% | |||
\setcounter{page}{1} % set page counter to 1 | |||
\pagenumbering{Roman} % roman figures | |||
\loadgeometry{frontmatter} % | |||
\pagestyle{empty} % no numbering in the frontmatter | |||
\makeatletter | |||
\let\ps@oldplain\ps@plain % backup | |||
\let\ps@plain\ps@empty % set plain pagestyle to empty | |||
\makeatother | |||
} | |||
\newcommand\mainmatter{% | |||
\pagenumbering{arabic} | |||
\loadgeometry{mainmatter} | |||
\pagestyle{fancy} | |||
\makeatletter | |||
\fancy@setoffs % reload dimensions | |||
\makeatother | |||
} | |||
\newcommand\mainmatterplain{% | |||
\pagenumbering{arabic} | |||
\loadgeometry{mainmatterplain} | |||
\pagestyle{fancy} | |||
\makeatletter | |||
\fancy@setoffs % reload dimensions | |||
\makeatother | |||
} | |||
\newcommand\backmatter{\pagenumbering{arabic}} | |||
% ====================================================================== | |||
% Layout | |||
% ====================================================================== | |||
% Page Layout | |||
% ---------------------------------------------------------------------- | |||
\RequirePackage{geometry} | |||
\newgeometry{ | |||
layout=a4paper, % DIN-A4 | |||
twoside, | |||
bindingoffset = 1cm, | |||
left=2.66cm, % whitespace left | |||
right=2.66cm, % old 2.33 | |||
top=3cm, | |||
bottom=3cm, | |||
includeheadfoot | |||
} \savegeometry{frontmatter} | |||
\geometry{ %Gemometry with Margintext | |||
layout=a4paper, | |||
portrait, | |||
twoside, | |||
bindingoffset = 1cm, | |||
% 9er Teilung | |||
left=2.33cm, % whitespace left | |||
right=3.66cm, | |||
top=2.33cm, | |||
bottom=2cm, | |||
%reversemarginpar, | |||
marginparsep = 4mm, | |||
marginparwidth = 1.9cm, % witdh for marginal notes | |||
includeheadfoot % reserve space for header and footer | |||
} \savegeometry{mainmatter} | |||
\geometry{ %Gemometry without Margintext | |||
layout=a4paper, | |||
portrait, | |||
% twoside, | |||
bindingoffset = 1cm, | |||
% 9er Teilung | |||
left=2.33cm, % whitespace left | |||
right=2.33cm, | |||
top=2.33cm, | |||
bottom=3cm, | |||
includeheadfoot % reserve space for header and footer | |||
} \savegeometry{mainmatterplain} | |||
% Header and Footer | |||
% ---------------------------------------------------------------------- | |||
\usepackage{fancyhdr} | |||
\pagestyle{fancy} % use fancyhdr pagestyle | |||
\fancyhf{} % clear header and footer | |||
\if@twoside %% Für Doppelseitig | |||
\fancyhead[EL]{\textcolor{black!70}{\thepage}} % gerade Seiten, links | |||
\fancyhead[ER]{\textcolor{black!70}{\leftmark}} % gerade Seiten, rechts | |||
\fancyhead[OL]{\textcolor{black!70}{\itshape\rightmark}} % ungerade Seiten, links | |||
\fancyhead[OR]{\textcolor{black!70}{\thepage}} % ungerade Seiten, rechts | |||
\else %% Für Einseitig | |||
\fancyhead[OL]{\textcolor{black!70}{\leftmark --- \itshape\nouppercase{\rightmark}}} % gerade Seiten, rechts | |||
\fancyhead[OR]{\textcolor{black!70}{\thepage}} % gerade Seiten, links | |||
\fi | |||
\renewcommand{\headrulewidth}{0pt} % Underline headers | |||
\renewcommand{\footrulewidth}{0pt} % no footer rule | |||
%\fancypagestyle{plain}{} % No chapter+section on chapter start pages | |||
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{} } % redefine leftmark | |||
\renewcommand{\sectionmark}[1]{\markright{#1}{} } % redefine rightmark | |||
% Margin Notes | |||
% ---------------------------------------------------------------------- | |||
\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 | |||
% Chapters and Sections | |||
% ---------------------------------------------------------------------- | |||
\RequirePackage{titlesec} | |||
%\titleformat{ command }[ shape ]{ format }{ label }{ sep }{ before }[ after ] | |||
%\titlespacing*{ command }{ left }{ beforesep }{ aftersep }[ right ] | |||
\newfont{\chapterNumber}{eurb10 scaled 9000} | |||
%\titleformat{\chapter}[display]{\relax}{\raggedleft{\fontsize{100}{10}\selectfont\color{col_chapter}\thechapter} \\}{0em}{\raggedleft\sffamily\bfseries\huge} | |||
\titleformat{\chapter}[display]{\relax}{\chapterallign{\chapterNumber\color{col_chapter}\thechapter} \\}{0em}{\chapterallign\sffamily\bfseries\huge} | |||
%\titlespacing{\chapter}{0em}{0em}{2em} | |||
% star chapter version | |||
\titleformat{name=\chapter,numberless}[display]{\relax}{\relax}{0em}{\sffamily\bfseries\huge} | |||
\titlespacing{name=\chapter,numberless}{0em}{0em}{2em} | |||
% section with numbers in the margin | |||
\ifmarginnumbers | |||
\titleformat{\section}{\sffamily\Large\color{col_section}}{\llap{{\thesection}\hskip\marginparsep}}{0em}{} | |||
\titleformat{\subsection}{\sffamily\large\color{col_subsection}}{\llap{{\thesubsection}\hskip\marginparsep}}{0em}{} | |||
\titleformat{\subsubsection}{\scshape\color{col_subsubsection}}{\llap{{\thesubsubsection}\hskip\marginparsep}}{0em}{} | |||
\else | |||
\titleformat{\section}{\scshape\LARGE\color{col_section}}{\thesection\quad}{0em}{} | |||
\titleformat{\subsection}{\sffamily\Large\color{col_subsection}}{\thesubsection\quad}{0em}{} | |||
\titleformat{\subsubsection}{\scshape\color{col_subsubsection}}{\thesubsubsection\quad}{0em}{} | |||
\titleformat{\paragraph}[runin]{\sffamily\color{col_paragraph}}{\theparagraph\quad}{0em}{} | |||
\fi | |||
\titlespacing{name=\paragraph,numberless}{0em}{0.5em}{1em}[5em] | |||
\parskip = 0pt | |||
\let\oldsection\section | |||
\let\oldsubsection\subsection | |||
%\renewcommand{\section}[1]{\oldsection{#1}\label{sec:#1}} | |||
%\renewcommand{\subsection}[1]{\oldsubsection{#1}\label{sec:#1}} | |||
% for problems with the TOC: \renewcommand\contentsname{\normalfont Contents} | |||
% This way, your Table of Content’s title will stay untouched by any \titleformat command. | |||
% Epigraph | |||
% ---------------------------------------------------------------------- | |||
\providecommand{\epigraph}[3][6cm]{ | |||
{\vspace*{-1cm}\hfill\parbox{#1}{\linespread{1.1}\selectfont\itshape\small{#2}\\{\phantom{.}\hfill\upshape #3}\\[1em]}} } | |||
% Colophon | |||
% ---------------------------------------------------------------------- | |||
\newenvironment{colophon}{\newpage\color{black!70}}{\newpage} | |||
% ====================================================================== | |||
% Lists & Equations | |||
% ====================================================================== | |||
%\setlength{\itemsep}{\baselineskip} | |||
\setlength{\itemsep}{0pt} | |||
\RequirePackage{enumitem} | |||
\setitemize{itemsep=0pt} | |||
\setenumerate{itemsep=0pt} | |||
% set own list item symbol | |||
\renewcommand\labelitemi{\color{col_itemize}$\blacktriangleright$} | |||
% change description label | |||
\renewcommand{\descriptionlabel}[1]{\hspace{\labelsep}\color{col_paragraph}\textsf{#1}} | |||
\setlist[description]{leftmargin=4em,labelindent=1.5em} | |||
% Equations | |||
% ---------------------------------------------------------------------- | |||
\RequirePackage{remreset} | |||
\makeatletter | |||
\@removefromreset{equation}{chapter} % nor reset of equation numbers, requires remreset package | |||
\def\@eqnnum{{\normalfont \textcolor{gray}{\theequation}}} % diffrent equation number style | |||
\makeatother | |||
\AtBeginEnvironment{displaymath}{\displaystyle} | |||
% ====================================================================== | |||
% Float Environments | |||
% ====================================================================== | |||
\RequirePackage{caption} | |||
% Idea: short caption (for LOF) in bold, rest of caption as normal text | |||
% Figures | |||
% ---------------------------------------------------------------------- | |||
%\RequirePackage{pdfpages} | |||
%\RequirePackage{media9} % for flash and 3D Objects | |||
\RequirePackage[sf,SF]{subfigure} % Subfigures, sans-serif counters | |||
\makeatletter | |||
\@removefromreset{figure}{chapter} % continous figure numbering | |||
\renewcommand\p@subfigure{\thefigure} | |||
\renewcommand{\thefigure}{\@arabic\c@figure} | |||
\renewcommand{\thesubfigure}{\alph{subfigure})} | |||
\makeatother | |||
\captionsetup[figure]{labelfont={color=col_figure,sf},textfont={sf,small}} | |||
% Captions | |||
% ---------------------------------------------------------------------- | |||
% \makeatletter | |||
%\let\x@caption\caption % original \caption | |||
%\def\x@@caption[#1]#2{\x@caption[{#1}]{#1 #2}} % with optional arg | |||
%\def\x@@@caption#1{\x@caption[{#1}]{#1}} % without optional arg | |||
%\def\caption{\@ifnextchar[\x@@caption\x@@@caption} % new \caption | |||
%\makeatother | |||
% ====================================================================== | |||
% 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 | |||
% ---------------------------------------------------------------------- | |||
\RequirePackage{hyperref} | |||
\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 | |||
\ifdefined\backref | |||
\renewcommand*{\backref}[1]{cited on p. #1} | |||
\fi | |||
% Sourcecode listings | |||
% ---------------------------------------------------------------------- | |||
\RequirePackage{listings} | |||
\def\postbreak{\raisebox{0ex}[0ex][0ex]{\ensuremath{\hookrightarrow\space}}} | |||
\lstset{ | |||
basicstyle=\normalsize\ttfamily\lst@ifdisplaystyle\linespread{0.85}\footnotesize\fi, | |||
tabsize=4, | |||
%gobble=auto, % skip initial tabs %not supported yet | |||
numbers=left, % switch numbers on: left | |||
numberstyle=\tiny\sffamily\color{col_lst_number}, | |||
numbersep=1em, | |||
keepspaces=true, | |||
breaklines=true, | |||
breakatwhitespace=true, | |||
postbreak=\postbreak, | |||
keywordstyle=\bfseries\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,276 @@ | |||
% | |||
% Unicode for LaTeX4EI packages | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, LaTeX4EI | |||
\NeedsTeXFormat{LaTeX2e} | |||
\ProvidesPackage{latex4ei_unicode}[2013/05/01 Unicode Symbols] | |||
% Already defined via textcomp: | |||
% „“”äüö | |||
% Greek, small, capital, variants | |||
\DeclareUnicodeCharacter{2014}{\ensuremath{\dash}} | |||
\DeclareUnicodeCharacter{03B1}{\ensuremath{\alpha}} % α | |||
\DeclareUnicodeCharacter{03B2}{\ensuremath{\beta}} % β | |||
\DeclareUnicodeCharacter{03B3}{\ensuremath{\gamma}} % γ | |||
\DeclareUnicodeCharacter{03B4}{\ensuremath{\delta}} % δ | |||
\DeclareUnicodeCharacter{03B5}{\ensuremath{\varepsilon}} % ε | |||
\DeclareUnicodeCharacter{03B6}{\ensuremath{\zeta}} % ζ | |||
\DeclareUnicodeCharacter{03B7}{\ensuremath{\eta}} % η | |||
\DeclareUnicodeCharacter{03B8}{\ensuremath{\theta}} % θ | |||
\DeclareUnicodeCharacter{03B9}{\ensuremath{\iota}} % ι | |||
\DeclareUnicodeCharacter{03BA}{\ensuremath{\kappa}} % κ | |||
\DeclareUnicodeCharacter{03BB}{\ensuremath{\lambda}} % λ | |||
\DeclareUnicodeCharacter{03BC}{\ensuremath{\mu}} % μ | |||
\DeclareUnicodeCharacter{00B5}{\ensuremath{\mu}} %micro -- geht nicht! | |||
\DeclareUnicodeCharacter{03BD}{\ensuremath{\nu}} % ν | |||
\DeclareUnicodeCharacter{03BE}{\ensuremath{\xi}} % ξ | |||
\DeclareUnicodeCharacter{03C0}{\ensuremath{\pi}} % π | |||
\DeclareUnicodeCharacter{03C1}{\ensuremath{\rho}} % ρ | |||
\DeclareUnicodeCharacter{03C3}{\ensuremath{\sigma}} % σ | |||
\DeclareUnicodeCharacter{03C4}{\ensuremath{\tau}} % τ | |||
\DeclareUnicodeCharacter{03C5}{\ensuremath{\upsilon}} % υ | |||
\DeclareUnicodeCharacter{03C6}{\ensuremath{\varphi}} % φ | |||
\DeclareUnicodeCharacter{03C7}{\ensuremath{\chi}} % χ | |||
\DeclareUnicodeCharacter{03C8}{\ensuremath{\psi}} % ψ | |||
\DeclareUnicodeCharacter{03C9}{\ensuremath{\omega}} % ω | |||
\DeclareUnicodeCharacter{0393}{\ensuremath{\Gamma}} % Γ | |||
\DeclareUnicodeCharacter{0394}{\ensuremath{\Delta}} % Δ | |||
\DeclareUnicodeCharacter{0398}{\ensuremath{\Theta}} % Θ | |||
\DeclareUnicodeCharacter{039B}{\ensuremath{\Lambda}} % Λ | |||
\DeclareUnicodeCharacter{039E}{\ensuremath{\Xi}} % Ξ | |||
\DeclareUnicodeCharacter{03A0}{\ensuremath{\Pi}} % Π | |||
\DeclareUnicodeCharacter{03A3}{\ensuremath{\Sigma}} % Σ | |||
\DeclareUnicodeCharacter{03A6}{\ensuremath{\Phi}} % Φ | |||
\DeclareUnicodeCharacter{03A8}{\ensuremath{\Psi}} % Ψ | |||
\DeclareUnicodeCharacter{03A9}{\ensuremath{\Omega}} % Ω | |||
\DeclareUnicodeCharacter{03C2}{\ensuremath{\varsigma}} % ς | |||
\DeclareUnicodeCharacter{03D1}{\ensuremath{\vartheta}} % ϑ | |||
\DeclareUnicodeCharacter{03D2}{\ensuremath{\Upsilon}} % ϒ | |||
\DeclareUnicodeCharacter{03D5}{\ensuremath{\phi}} % ϕ | |||
\DeclareUnicodeCharacter{03D6}{\ensuremath{\varpi}} % ϖ | |||
\DeclareUnicodeCharacter{03F0}{\ensuremath{\varkappa}} % ϰ in package of ams | |||
\DeclareUnicodeCharacter{03F1}{\ensuremath{\varrho}} % ϱ | |||
\DeclareUnicodeCharacter{03F5}{\ensuremath{\epsilon}} % ϵ | |||
% Symbols | |||
\DeclareUnicodeCharacter{2020}{\ensuremath{\dagger}} % † | |||
\DeclareUnicodeCharacter{2021}{\ensuremath{\ddagger}} % ‡ | |||
\DeclareUnicodeCharacter{2113}{\ensuremath{\ell}} % ℓ | |||
\DeclareUnicodeCharacter{2202}{\ensuremath{\partial}} % ∂ | |||
\DeclareUnicodeCharacter{2205}{\ensuremath{\emptyset}} % ∅ | |||
\DeclareUnicodeCharacter{2207}{\ensuremath{\nabla}} % ∇ | |||
\DeclareUnicodeCharacter{220F}{\ensuremath{\prod}} % ∏ | |||
\DeclareUnicodeCharacter{2211}{\ensuremath{\sum}} % ∑ | |||
\DeclareUnicodeCharacter{222B}{\ensuremath{\int}} % ∫ | |||
\DeclareUnicodeCharacter{222C}{\ensuremath{\iint}} % ∬ | |||
\DeclareUnicodeCharacter{222D}{\ensuremath{\iiint}} % ∭ | |||
\DeclareUnicodeCharacter{221D}{\ensuremath{\propto}} % ∝ | |||
\DeclareUnicodeCharacter{221E}{\ensuremath{\infty}} % ∞ | |||
\DeclareUnicodeCharacter{222E}{\ensuremath{\oint}} % ∮ | |||
\DeclareUnicodeCharacter{222F}{\ensuremath{\oiint}} % ∯ | |||
\DeclareUnicodeCharacter{2230}{\ensuremath{\oiiint}} % ∰ | |||
\DeclareUnicodeCharacter{2A0C}{\ensuremath{\iiiint}} | |||
% Double-struck | |||
\DeclareUnicodeCharacter{2102}{\ensuremath{\mathbb{C}}} % ℂ | |||
\DeclareUnicodeCharacter{210D}{\ensuremath{\mathbb{H}}} % ℍ | |||
\DeclareUnicodeCharacter{2115}{\ensuremath{\mathbb{N}}} % ℕ | |||
\DeclareUnicodeCharacter{2119}{\ensuremath{\mathbb{P}}} % ℙ | |||
\DeclareUnicodeCharacter{211A}{\ensuremath{\mathbb{Q}}} % ℚ | |||
\DeclareUnicodeCharacter{211D}{\ensuremath{\mathbb{R}}} % ℝ | |||
\DeclareUnicodeCharacter{2124}{\ensuremath{\mathbb{Z}}} % ℤ | |||
\DeclareUnicodeCharacter{1D53C}{\ensuremath{\mathbb{E}}} % 𝔼 | |||
\DeclareUnicodeCharacter{1D542}{\ensuremath{\mathbb{K}}} % 𝕂 | |||
\DeclareUnicodeCharacter{1D54A}{\ensuremath{\mathbb{S}}} % 𝕊 | |||
\DeclareUnicodeCharacter{1D54B}{\ensuremath{\mathbb{T}}} % 𝕋 | |||
\DeclareUnicodeCharacter{1D54C}{\ensuremath{\mathbb{U}}} % 𝕌 | |||
\DeclareUnicodeCharacter{1D7D9}{\ensuremath{\mathbbm{1}}} % 𝟙 | |||
% sub and super script | |||
\DeclareUnicodeCharacter{2070}{\ensuremath{^0}} | |||
\DeclareUnicodeCharacter{00B9}{\ifmmode^1\else\textonesuperior\fi} | |||
\DeclareUnicodeCharacter{00B2}{\ifmmode^2\else\texttwosuperior\fi} | |||
\DeclareUnicodeCharacter{00B3}{\ifmmode^3\else\textthreesuperior\fi} | |||
\DeclareUnicodeCharacter{2074}{\ensuremath{^4}} | |||
\DeclareUnicodeCharacter{2075}{\ensuremath{^5}} | |||
\DeclareUnicodeCharacter{2076}{\ensuremath{^6}} | |||
\DeclareUnicodeCharacter{2077}{\ensuremath{^7}} | |||
\DeclareUnicodeCharacter{2078}{\ensuremath{^8}} | |||
\DeclareUnicodeCharacter{2079}{\ensuremath{^9}} | |||
\DeclareUnicodeCharacter{207A}{\ensuremath{^+}} % ⁺ | |||
\DeclareUnicodeCharacter{207B}{\ensuremath{^-}} % ⁻ | |||
\DeclareUnicodeCharacter{207C}{\ensuremath{^=}} | |||
\DeclareUnicodeCharacter{207D}{\ensuremath{^(}} | |||
\DeclareUnicodeCharacter{207E}{\ensuremath{^)}} | |||
\DeclareUnicodeCharacter{2080}{\ensuremath{_0}} | |||
\DeclareUnicodeCharacter{2081}{\ensuremath{_1}} | |||
\DeclareUnicodeCharacter{2082}{\ensuremath{_2}} | |||
\DeclareUnicodeCharacter{2083}{\ensuremath{_3}} | |||
\DeclareUnicodeCharacter{2084}{\ensuremath{_4}} | |||
\DeclareUnicodeCharacter{2085}{\ensuremath{_5}} | |||
\DeclareUnicodeCharacter{2086}{\ensuremath{_6}} | |||
\DeclareUnicodeCharacter{2087}{\ensuremath{_7}} | |||
\DeclareUnicodeCharacter{2088}{\ensuremath{_8}} | |||
\DeclareUnicodeCharacter{2089}{\ensuremath{_9}} | |||
\DeclareUnicodeCharacter{208A}{\ensuremath{_+}} | |||
\DeclareUnicodeCharacter{208B}{\ensuremath{_-}} | |||
% superscript | |||
\DeclareUnicodeCharacter{1D43}{^a} | |||
\DeclareUnicodeCharacter{1D47}{^b} | |||
\DeclareUnicodeCharacter{1D9C}{^c} | |||
\DeclareUnicodeCharacter{1D48}{^d} | |||
\DeclareUnicodeCharacter{1D49}{^e} | |||
\DeclareUnicodeCharacter{1DA0}{^f} | |||
\DeclareUnicodeCharacter{1D4D}{^g} | |||
\DeclareUnicodeCharacter{02B0}{^h} | |||
\DeclareUnicodeCharacter{2071}{^i} | |||
\DeclareUnicodeCharacter{02B2}{^j} | |||
\DeclareUnicodeCharacter{1D4F}{^k} | |||
\DeclareUnicodeCharacter{02E1}{^l} | |||
\DeclareUnicodeCharacter{1D50}{^m} | |||
\DeclareUnicodeCharacter{207F}{^n} | |||
\DeclareUnicodeCharacter{1D52}{^o} | |||
\DeclareUnicodeCharacter{1D56}{^p} | |||
\DeclareUnicodeCharacter{02B3}{^r} | |||
\DeclareUnicodeCharacter{02E2}{^s} | |||
\DeclareUnicodeCharacter{1D57}{^t} | |||
\DeclareUnicodeCharacter{1D58}{^u} | |||
\DeclareUnicodeCharacter{1D5B}{^v} | |||
\DeclareUnicodeCharacter{02B7}{^w} | |||
\DeclareUnicodeCharacter{02E3}{^x} | |||
\DeclareUnicodeCharacter{02B8}{^y} | |||
\DeclareUnicodeCharacter{1DBB}{^z} | |||
\DeclareUnicodeCharacter{1D2C}{^A} | |||
\DeclareUnicodeCharacter{1D2E}{^B} | |||
\DeclareUnicodeCharacter{1D30}{^D} | |||
\DeclareUnicodeCharacter{1D31}{^E} | |||
\DeclareUnicodeCharacter{1D33}{^G} | |||
\DeclareUnicodeCharacter{1D34}{^H} | |||
\DeclareUnicodeCharacter{1D35}{^I} | |||
\DeclareUnicodeCharacter{1D36}{^J} | |||
\DeclareUnicodeCharacter{1D37}{^K} | |||
\DeclareUnicodeCharacter{1D38}{^L} | |||
\DeclareUnicodeCharacter{1D39}{^M} | |||
\DeclareUnicodeCharacter{1D3A}{^N} | |||
\DeclareUnicodeCharacter{1D3C}{^O} | |||
\DeclareUnicodeCharacter{1D3E}{^P} | |||
\DeclareUnicodeCharacter{1D3F}{^R} | |||
\DeclareUnicodeCharacter{1D40}{^T} | |||
\DeclareUnicodeCharacter{1D41}{^U} | |||
\DeclareUnicodeCharacter{1D42}{^W} | |||
% Quantifiers | |||
\DeclareUnicodeCharacter{2200}{\ensuremath{\forall}} %∀ | |||
\DeclareUnicodeCharacter{2203}{\ensuremath{\exists}} %∃ | |||
\DeclareUnicodeCharacter{2204}{\ensuremath{\nexists}} %∄ | |||
\DeclareUnicodeCharacter{2208}{\in} % ∈ | |||
\DeclareUnicodeCharacter{2209}{\notin} % ∉ | |||
\DeclareUnicodeCharacter{220B}{\ni} % ∋ | |||
\DeclareUnicodeCharacter{220B}{\notni} % ∌ only in package txfonts/pxfonts | |||
% Roots | |||
\DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt}} | |||
\DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]}} | |||
\DeclareUnicodeCharacter{221C}{\ensuremath{\sqrt[4]}} | |||
% Relations | |||
\DeclareUnicodeCharacter{2264}{\leq} % ≤ | |||
\DeclareUnicodeCharacter{2265}{\geq} % ≥ | |||
\DeclareUnicodeCharacter{226A}{\ll} % ≪ | |||
\DeclareUnicodeCharacter{226B}{\gg} % ≫ | |||
\DeclareUnicodeCharacter{2A7D}{\leqslant} % ⩽ | |||
\DeclareUnicodeCharacter{2A7E}{\geqslant} % ⩾ | |||
\DeclareUnicodeCharacter{2248}{\approx} % ≈ | |||
\DeclareUnicodeCharacter{2260}{\neq} % ≠ | |||
\DeclareUnicodeCharacter{2261}{\equiv} % ≡ | |||
\DeclareUnicodeCharacter{2262}{\nequiv} % ≢ only in package txfonts/pxfonts/MnSymbol | |||
%\DeclareUnicodeCharacter{27C2}{\perp} % ⟂ | |||
\DeclareUnicodeCharacter{22A5}{\perp} % ⊥ downtack | |||
\DeclareUnicodeCharacter{2282}{\subset} % ⊂ | |||
\DeclareUnicodeCharacter{2283}{\supset} % ⊃ | |||
% Operations | |||
\DeclareUnicodeCharacter{2229}{\cap} % ∩ | |||
\DeclareUnicodeCharacter{222A}{\cup} % ∪ | |||
\DeclareUnicodeCharacter{2227}{\ensuremath{\wedge}} % ∧ | |||
\DeclareUnicodeCharacter{2228}{\ensuremath{\vee}} % ∨ | |||
\DeclareUnicodeCharacter{00D7}{\times} % × | |||
\DeclareUnicodeCharacter{00F7}{\div} % ÷ | |||
\DeclareUnicodeCharacter{2212}{-} % − | |||
\DeclareUnicodeCharacter{221A}{\sqrt} % √ | |||
\DeclareUnicodeCharacter{2295}{\oplus} % ⊕ | |||
\DeclareUnicodeCharacter{2297}{\otimes} % ⊗ | |||
\DeclareUnicodeCharacter{229B}{\circledast} % ⊛ | |||
\DeclareUnicodeCharacter{2A01}{\bigoplus} % ⨁ | |||
\DeclareUnicodeCharacter{2A02}{\bigotimes} % ⨂ | |||
\DeclareUnicodeCharacter{2218}{\circ} % ∘ | |||
\renewcommand{\textperiodcentered}{\cdot} % · Unicode character already defined via textcomp | |||
% Modifiers | |||
\providecommand{\textlnot}{\ensuremath{\neg}} % ¬ Unicode character already defined via textcomp | |||
\renewcommand{\textlnot}{\ensuremath{\neg}} % ¬ Unicode character already defined via textcomp | |||
\DeclareUnicodeCharacter{00AC}{\ensuremath{\lnot}} % ¬ | |||
\DeclareUnicodeCharacter{00B1}{\ensuremath{\pm}} % ± | |||
\DeclareUnicodeCharacter{2213}{\ensuremath{\mp}} % ∓ | |||
% Arrows | |||
\DeclareUnicodeCharacter{2190}{\ensuremath{\leftarrow}} % ← | |||
\DeclareUnicodeCharacter{2191}{\ensuremath{\uparrow}} % ↑ | |||
\DeclareUnicodeCharacter{2192}{\ensuremath{\to}} % → | |||
\DeclareUnicodeCharacter{2191}{\ensuremath{\downarrow}} % ↓ | |||
\DeclareUnicodeCharacter{21A6}{\ensuremath{\mapsto}} % ↦ | |||
\DeclareUnicodeCharacter{21D0}{\ensuremath{\Leftarrow}} % ⇐ | |||
\DeclareUnicodeCharacter{21D2}{\ensuremath{\Rightarrow}} % ⇒ | |||
\DeclareUnicodeCharacter{21D4}{\ensuremath{\Leftrightarrow}} % ⇔ | |||
\DeclareUnicodeCharacter{22A8}{\ensuremath{\models}}% ⊨ | |||
\DeclareUnicodeCharacter{22AD}{\ensuremath{\not\models}}% ⊭ | |||
%\DeclareUnicodeCharacter{2220}{\ensuremath{}}% % ∠ | |||
%\DeclareUnicodeCharacter{2221}{\ensuremath{}}% % ∡ | |||
%\DeclareUnicodeCharacter{2222}{\ensuremath{}}% % ∢ | |||
%\DeclareUnicodeCharacter{22B6}{\ensuremath{\fouriersymbol}}% % ⊶ | |||
%\DeclareUnicodeCharacter{22B7}{\ensuremath{}}% % ⊷ | |||
%\DeclareUnicodeCharacter{}{\ensuremath{}}% | |||
%\DeclareUnicodeCharacter{}{\ensuremath{}}% | |||
%\DeclareUnicodeCharacter{}{\ensuremath{}}% | |||
%\DeclareUnicodeCharacter{}{\ensuremath{}}% | |||
%\DeclareUnicodeCharacter{}{\ensuremath{}}% | |||
%\DeclareUnicodeCharacter{}{\ensuremath{}}% |
@@ -0,0 +1,248 @@ | |||
% | |||
% latex package with useful macros for scientific documents | |||
% | |||
% Authors: Emanuel Regnath, Martin Zellner | |||
% Contact: info@latex4ei.de | |||
% Version: 1.1 | |||
% License: TBD | |||
% | |||
% © 2011-2019, 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 | |||
\DeclareSIUnit{\degree}{deg} | |||
% ====================================================================== | |||
% 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{\T}{\overset{\scriptscriptstyle\mathcal{}}{\ftsymbol}} % General Transformation | |||
\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 |
@@ -0,0 +1,89 @@ | |||
% ============================================================================================ | |||
\section{Transistorschaltungen} | |||
% ============================================================================================ | |||
\begin{sectionbox} | |||
\subsection{Bipolartransistor} | |||
% NF Modell % | |||
\begin{bluebox} | |||
$g_m \approx \frac{{I_C}^{(A)}}{U_T}$ \quad\ | |||
$g_{ce} \approx \frac{{I_C}^{(A)}}{VAF}$ \quad\ | |||
$g_{be} \approx \frac{{g_m}^{(A)}}{BF(=β_0)}$ | |||
\end{bluebox} | |||
% HF Modell % | |||
\begin{bluebox} | |||
\item$c_{bc} \approx {C_{JBC}}^{(A)} = \frac{CJC}{(1-\frac{{U_{BC}}^{(A)}}{VJC})^{^{MJC}}}$ | |||
\item$c_{be} \approx {C_{DBE}}^{(A)} = T_F \cdot g_m$ | |||
\end{bluebox} | |||
% Typische Größenrelationen % | |||
\begin{bluebox} | |||
$g_m >> g_{be} >> g_{ce}$ \quad\ | |||
$g_m >> \omega \cdot c_{bc}$ \quad\ | |||
$c_{be} >> c_{bc}$ | |||
\end{bluebox} | |||
\end{sectionbox} | |||
\begin{sectionbox} | |||
\subsection{Seriengegengekoppelte Emitterschaltung} % Ohne CE% | |||
% Spannungsverstärkung % | |||
$\underline{a}_V = \frac {-g_m \cdot {r_L}^*} {1+(g_m+g_{be}) \cdot R_E}$ | |||
% Schnittstellenimpedanzen % | |||
$\underline{z}_{in,Tr} = r_{be} + (1+BF)\cdot R_E$ \newline | |||
$\underline{z}_{a,Tr} = r_{ce}\cdot(1+(R_E||(r_{be}+{r_G}^*))\cdot\frac{g_m\cdot r_{be}}{r_{be}+{r_G}^*})$ \newline | |||
$\underline{z}_{a,Tr}({r_G^*}=0) \approx r_{ce} \cdot (1 + g_m \cdot R_E))$ | |||
\subsection{Emitterschaltung} | |||
% Spannungsverstärkung % | |||
$\underline{a}_V = -g_m \cdot {r_L}^*$ | |||
% Schnittstellenimpedanzen % | |||
$\underline{z}_{in,Tr} = r_{be}$ | |||
$\underline{z}_{a,Tr} = r_{ce}$ | |||
% Temperaturstabilität % | |||
$\frac{{\Delta I_C}^{(A)}(\Delta T)}{\Delta T \cdot {I_C}^{(A)}} = \frac{6,5\%}{\degree C}\cdot \frac{\frac{1}{g_m \cdot R_E}}{1+\frac{1}{BF}+\frac{1}{g_m \cdot R_E}} \approx \frac{6,5\%}{\degree C}\cdot \frac{1}{1+g_m\cdot R_E}$ | |||
% Eckfrequenz Emitterkondensator | |||
$f_{3dB,CE} = \frac {g_m} {2\pi \cdot C_E}$ | |||
\subsection{Kollektorschaltung} | |||
% Spannungsverstärkung % | |||
$\underline{a}_V = \frac{g_m \cdot {r_L}^*}{1+g_m \cdot {r_L}^*}$ | |||
% Schnittstellenimpedanzen % | |||
$\underline{z}_{in,Tr} = r_{be} + (1+BF)\cdot {r_L}^*$ \newline | |||
$\underline{z}_{a,Tr} = r_{ce} || (\frac{r_{be}+R_G}{\beta_0 + 1}) = r_{ce} || (\frac {1}{g_m + g_{be}}+\frac{R_G}{\beta_0 + 1})$ | |||
% HF - Verhalten | |||
$c_{in} = c_{bc} + c_{be}\cdot\frac{r_{be}}{r_{in}}$ | |||
% Aussteuerbarkeit % | |||
Aussteuerbarkeit: | |||
$+\Delta U_{out,max} = UB - min.U_{CE}(\approx 0.7V) - {V_E}^{(A)}$ \newline $\approx {U_{CE}}^{(A)}$ \newline | |||
$-\Delta U_{out,max} = - {I_C}^{(A)} \cdot {r_L}^* = - {I_C}^{(A)} \cdot (R_L||R_E||r_{ce})$ | |||
\end{sectionbox} | |||
\begin{sectionbox} | |||
\subsection{AC-, DC- Kopplung} | |||
$f_{3dB,Ck1} = \frac{1}{2\pi\cdot (R_G + r_{in})\cdot C_{k1}}$ \newline | |||
$f_{3dB,Ck2} = \frac{1}{2\pi\cdot (R_L + r_a)\cdot C_{k2}}$ | |||
\begin{cookbox}{Dominante Eckfrequenz} | |||
\item Variante 1: $C_{k1}$ dominant: \newline | |||
$f_{3dB,Ck2} << (\approx \frac{1}{10}) f_{3dB,Ck1} = f_{3dB,uB}$ | |||
\item Variante 2: \newline | |||
$HP_2$: $f_{3dB,Ck2} = f_{3dB,Ck1} = 0,644 \cdot f_{3dB,uB}$ | |||
\end{cookbox} | |||
\subsection{Differenzverstärkung} | |||
$\underline{a}_{VD1} (=\frac{\underline{u}_{out1}}{\underline{u}_{id}}) = - \underline{a}_{VD2}(=\frac{-\underline{u}_{out2}}{\underline{u}_{id}}) $ \newline | |||
$= -\frac{g_m}{2}\cdot (r_L||r_{ce})=\frac{\underline{a}_{VD}}{2}$ \newline | |||
$\underline{z}_{inD} (=\underline{z}_{id}) =\frac{\underline{u}_{id}}{\underline{i}_{in1}} = 2\cdot r_{be}$ | |||
\end{sectionbox} |
@@ -0,0 +1,35 @@ | |||
% ============================================================================================ | |||
\section{Lineare OPV-Schaltungen, Gegengekoppelte Strukturen} | |||
% ============================================================================================ | |||
\begin{sectionbox} | |||
\subsection{Operationsverstärker} | |||
% Differenzverstärkung % | |||
$A_{VD}(=V_{UD})=\frac{U_{OUT}}{U_{ID}}(typ.>100k)>>1$ \newline | |||
% GLeichtaktverstärkung % | |||
$A_{VC}=\frac{U_{OUT}}{U_{CM}} \approx 0$ \newline | |||
% Common Mode Rejection Ratio % | |||
$CMMR=\frac{A_{VD}}{A_{VC}}>>1$ \quad\ | |||
$CMMR/dB=20\cdot log(\frac{A_{VD}}{A_{VC}})$ | |||
% Frequenzgang % | |||
$\underline{V}_{ud}(f)=\frac{V_{UD}}{\cancel{1}+\frac{j\cdot f}{f_1}}$ \newline | |||
$f_1(=f_{1,3dB})=\frac{f_T(=GBW)}{V_{ud}}$ | |||
\subsection{Standardstruktur} | |||
\begin{center} | |||
\includegraphics[width = 0.5\columnwidth]{img_02_01_Standardstruktur} | |||
\end{center} | |||
$\underline{u}_2 = \underline{a}_V^+ \cdot \underline{u}_1^+ + \underline{a}_V^- \cdot \underline{u}_1^-$ \newline | |||
$\underline{a}_V^+ = \frac{\underline{V}_{ud}}{1+\underline{k}\cdot\underline{V}_{ud}}$ \quad\ | |||
$\underline{a}_V^- = -\frac{\underline{V}_{ud}\cdot(1-\underline{k})}{1+\underline{k}\cdot\underline{V}_{ud}}$\newline | |||
% TODO: Nicht invertierender / invertierender Betrieb % | |||
Betriebsfrequenzgrenze \emph{der Schaltung}: $f_g \approx \frac{GBW}{1/|\underline{k}(f_g)|}$ | |||
\subsection{Standard Linearverstärker} | |||
\subsection{Stabilität} | |||
\end{sectionbox} |
@@ -0,0 +1,7 @@ | |||
% ============================================================================================ | |||
\section{Nichtlineare OPV-Schaltungen} | |||
\subsection{test} | |||
\subsubsection{test2} | |||
% ============================================================================================ |