-
Notifications
You must be signed in to change notification settings - Fork 1
/
mycommands.sty
33 lines (28 loc) · 1.17 KB
/
mycommands.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\ProvidesPackage{mycommands}
\usepackage{nicefrac}
\usepackage{arydshln}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\newcommand\zweizeilEKl[2]{\left[#1\vphantom{#2}\right.\\ \left.\vphantom{#1}#2\right]}
\usepackage{listings}
\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{0,1,0.3}
\definecolor{colString}{rgb}{0,0.5,0}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{lila}{rgb}{0.8,0,1}
\lstset{language=Matlab,%
keywords={break,case,catch,continue,else,elseif,end,for,function,
global,if,otherwise,persistent,return,switch,try,while,ones,zeros},
float=hbp,basicstyle=\ttfamily\small,identifierstyle=\color{colIdentifier},
keywordstyle=\color{blue},commentstyle=\color{dkgreen},stringstyle=\color{lila},
columns=flexible,tabsize=2,numbers=left,extendedchars=false,showspaces=false,
numberstyle=\ttfamily\small\color{gray},stepnumber=1,numbersep=10pt,
showspaces=false,showstringspaces=false,breakautoindent=true,xleftmargin=20pt%
}
% compatibilitaet old classes
\newcommand\new[1]{\emph{#1}}
\newcommand{\D}{\Delta}