📄 macros.tex
字号:
%% packages\usepackage{scrpage2}\usepackage{makeidx} % allows for indexgeneration\usepackage{verbatim}\usepackage{cite}\usepackage{graphicx}\usepackage{amssymb} %Serve per definire $\rr$, $\Z$, $\N$\usepackage{latexsym} %Serve per $\Box$ in \cvd\usepackage{amsmath} %Serve per subequation\usepackage{amsfonts}\usepackage{rotating}\usepackage{subfigure}\usepackage{url}\usepackage{psfrag}\usepackage{theorem}\usepackage{array}% Press more content on one page\areaset[0mm]{14cm}{21cm} \topmargin 3mm% overfull\tolerance 800 \emergencystretch 1em \doublehyphendemerits 2500\hfuzz 1pt \hbadness = 3000 \leftskip 0pt minus 1pt \rightskip 0ptminus 1pt%\clearscrheadfoot%\pagestyle{srcheadings} % switches on printing of running heads % \automark{section} \ihead{} \chead{} \ohead{\headmark} \ofoot % %\cfoot{\pagemark} % \cfoot{} \ofoot{} \setheadsepline{.4pt}\automark{chapter}\deftripstyle{fabios}[0pt][0pt]{}{}{\headmark}{}{\pagemark}{}\defpagestyle{f1}{%(\textwidth,0pt) {\hfill\headmark}{\headmark\hfill} {\hysdel{}\input{../version.txt}\hfill \hfill \headmark} (\textwidth,0.1pt)}{%(\textwidth,0pt) {\pagemark\hfill}{\hfill\pagemark}{\hfill\pagemark\hfill} (\textwidth,0pt) } \pagestyle{f1}\graphicspath{{figures/}}%Macro for EPS files % #1 = file name #2= t,h #3= width #4=caption #5=label\newcommand{\figuraeps}[5]{\begin{figure}[#2]\centerline{\includegraphics[width=#3]{#1}} \caption{\protect{\small #4}}\label{#5}\end{figure}}%Macro 2 subfig EPS #1=position, #2=global caption, #3=label #4=epsfile-1, #5=width-1, #6=caption-1,#7=epsfile-2, #8=width-2, #9=caption-2,\newcommand{\subfigeps}[9]{\begin{figure}[#1]\centerline{\begin{tabular}[t]{c} \subfigure[#6]{\includegraphics[width=#5]{#4.eps}\label{#3-a}}\hspace{\subfigtopskip}\hspace{\subfigbottomskip} \subfigure[#9]{\includegraphics[width=#8]{#7.eps}\label{#3-b}}\end{tabular}}\caption{\protect{\small #2}}\label{#3}\end{figure}}\newcommand{\cvd}{\hfill$\Box$\vspace{0em}\par\noindent\vspace{.5ex}}\newcommand{\proof}{\noindent{\em Proof}.~}\newcommand{\eqdef}{\triangleq} %Use AMS-package\newcommand{\rr}{{\mathbb R}}\newcommand{\Z}{{\mathbb Z}}\newcommand{\N}{{\mathbb N}}\newcommand{\beq}{\begin{equation}}\newcommand{\eeq}{\end{equation}}\newcommand{\beqar}{\begin{eqnarray}}\newcommand{\eeqar}{\end{eqnarray}}\newcommand{\beqarno}{\begin{eqnarray*}}\newcommand{\eeqarno}{\end{eqnarray*}}\newcommand{\ba}[1]{\begin{array}{#1}}\newcommand{\ea}{\end{array}}\newcommand{\reach}{\mathop{\rm Reach}\nolimits}\newcommand{\GG}{{\mathcal G}}\newcommand{\Aa}{A}\newcommand{\BB}{B}\newcommand{\DD}{D}\newcommand{\Cc}{C}\newcommand{\EE}{E}\newcommand{\PP}{P}\newcommand{\matrice}[2]{\left[\ba{#1} #2 \ea\right]}\newcommand{\smallmat}[1]{\left[ \begin{smallmatrix}#1 \end{smallmatrix} \right]}\newcommand{\OR}{\lor}\newcommand{\ANd}{\land}\newcommand{\NOT}{\lnot}\newcommand{\XOR}{\oplus}\newcommand{\F}{{\sf F}}\newcommand{\T}{{\sf T}}\newcommand{\cppclass}[1]{{\sl #1}}\newcommand{\mcmd}[1]{{\sl #1}}\newcommand{\constcppclass}[1]{{\sl const #1}}\newcommand{\method}[2]{{\sl #1::#2()}}\newcommand{\function}[1]{{\sl #1()}}\newcommand{\code}[1]{{\sl #1}}\newcommand{\cmdop}[1]{{\sl -#1}}\newcommand{\longcmdop}[1]{{\sl -\nolinebreak \hspace{0.1ex}-#1}}\newcommand{\NULL}{NULL}\newcommand{\hysdel}{HYSDEL}\newcommand{\MLD}{MLD}\newcommand{\matlab}{Matlab}\newcommand{\file}[1]{{#1}}\newcommand{\terminal}[1]{`#1'}\newcommand{\nonterminal}[1]{#1}\newcommand{\ebnfRule}[2]{\noindent \nonterminal{#1} := \\ \hspace*{0.5cm}#2.}\newcommand{\ebnfBoolvar}{\nonterminal{ident}}\newcommand{\ebnfRealvar}{\nonterminal{ident}}\newcommand{\ebnfParam}{\nonterminal{ident}}\newcommand{\nonumchapter}[1]{\chapter*{#1}\addcontentsline{toc}{chapter}{#1}}\newcommand{\nonumsection}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}\newcommand{\bol}{{\{0,1\}}}\newcommand{\XX}{{\mathcal X}}\newcommand{\UU}{{\mathcal U}}\newcommand{\YY}{{\mathcal Y}}\newcommand{\II}{{\mathcal I}}\newcommand{\DE}{{\mathcal D}}\newcommand{\pp}{{\mathcal P}}\newcommand{\ZZ}{{\mathcal Z}}\newcommand{\hs}[1]{{{\small #1}}\index{#1}}\newcommand{\desc}[1]{{\sc #1:}}\newcommand{\opt}{$_{\rm opt}$}\newcommand{\more}{$_{+}$}\newcommand{\bs}{\begin{center}}\newcommand{\es}{\end{center}}\newcommand{\vinput}[1]{\verbatiminput{#1}This file is available in the distribution as #1.}\newtheorem{lemma}{Lemma}\newtheorem{fact}{Fact}\newtheorem{theorem}{Theorem}\newtheorem{conjecture}{Conjecture}\newtheorem{proposition}{Proposition}\newtheorem{assumption}{Assumption}\newtheorem{definition}{Definition}\newtheorem{result}{Result}\newtheorem{corollary}{Corollary}\newtheorem{problem}{Problem}\newtheorem{algorithmenv}{Algorithm}{\theorembodyfont{\rmfamily\small}\newtheorem{example}{Example}}\newcommand{\MLDsystem}[2]{\begin{subequations} \label{#1}\begin{eqnarray} \label{#1.a} \left[\begin{smallmatrix} x_{r}(t+1)\\ x_{b}(t+1) \ \end{smallmatrix}\right]&=&\left[\begin{smallmatrix} A_{rr} & A_{rb} \\ A_{br} & A_{bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} x_{r}(t)\\ x_{b}(t) \ \end{smallmatrix}\right]+\left[\begin{smallmatrix} B_{1rr} & B_{1rb} \\ B_{1br} & B_{1bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} u_{r}(t)\\ u_{b}(t) \ \end{smallmatrix}\right]\\\nonumber &&+\left[\begin{smallmatrix} B_{2rb} \\ B_{2bb} \ \end{smallmatrix}\right]d(t)+\left[\begin{smallmatrix} B_{3rr} \\ B_{3br} \ \end{smallmatrix}\right]z(t), \\ \label{#1.b} \left[\begin{smallmatrix} y_{r}(t)\\ y_{b}(t) \ \end{smallmatrix}\right]&=&\left[\begin{smallmatrix} C_{rr} & C_{rb} \\ C_{br} & C_{bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} x_{r}(t)\\ x_{b}(t) \ \end{smallmatrix}\right]+\left[\begin{smallmatrix} D_{1rr} & D_{1rb} \\ D_{1br} & D_{1bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} u_{r}(t)\\ u_{b}(t) \ \end{smallmatrix}\right]\\\nonumber &&+\left[\begin{smallmatrix} D_{2rb} \\ D_{2bb} \ \end{smallmatrix}\right]d(t)+\left[\begin{smallmatrix} D_{3rr} \\ D_{3br} \ \end{smallmatrix}\right]z(t), \\ \label{#1.c} E_{2}d(t)&+&E_{3}z(t)\leqE_{1} \left[\begin{smallmatrix} u_{r}(t)\\ u_{b}(t) \ \end{smallmatrix}\right] +E_{2} \left[\begin{smallmatrix} x_{r}(t)\\ x_{b}(t) \ \end{smallmatrix}\right] +E_{5}{\rm #2}\end{eqnarray}\end{subequations}}\newcommand{\BDMLDsystem}[2]{\begin{subequations} \label{#1}\begin{eqnarray} \label{#1.a} \left[\begin{smallmatrix} x_{r}(t+1)\\ x_{b}(t+1) \ \end{smallmatrix}\right]&=&\left[\begin{smallmatrix} A_{rr} & A_{rb} \\ A_{br} & A_{bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} x_{r}(t)\\ x_{b}(t) \ \end{smallmatrix}\right]+\left[\begin{smallmatrix} B_{1rr} & B_{1rb} \\ B_{1br} & B_{1bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} u_{r}(t)\\ u_{b}(t) \ \end{smallmatrix}\right]\\\nonumber &&+\left[\begin{smallmatrix} B_{2rb} \\ B_{2bb} \ \end{smallmatrix}\right]d(t)+\left[\begin{smallmatrix} B_{3rr} \\ B_{3br} \ \end{smallmatrix}\right]z(t) + \left[\begin{smallmatrix} B_{5r} \\ B_{5b} \ \end{smallmatrix}\right], \\ \label{#1.b} \left[\begin{smallmatrix} y_{r}(t)\\ y_{b}(t) \ \end{smallmatrix}\right]&=&\left[\begin{smallmatrix} C_{rr} & C_{rb} \\ C_{br} & C_{bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} x_{r}(t)\\ x_{b}(t) \ \end{smallmatrix}\right]+\left[\begin{smallmatrix} D_{1rr} & D_{1rb} \\ D_{1br} & D_{1bb} \ \end{smallmatrix}\right] \left[\begin{smallmatrix} u_{r}(t)\\ u_{b}(t) \ \end{smallmatrix}\right]\\ \nonumber &&+\left[\begin{smallmatrix} D_{2rb} \\ D_{2bb} \ \end{smallmatrix}\right]d(t)+\left[\begin{smallmatrix} D_{3rr} \\ D_{3br} \ \end{smallmatrix}\right]z(t) + \left[\begin{smallmatrix} D_{5r} \\ D_{5b} \ \end{smallmatrix}\right], \\ \label{#1.c} E_{2}d(t)&+&E_{3}z(t)\leqE_{1} \left[\begin{smallmatrix} u_{r}(t)\\ u_{b}(t) \ \end{smallmatrix}\right] +E_{2} \left[\begin{smallmatrix} x_{r}(t)\\ x_{b}(t) \ \end{smallmatrix}\right] +E_{5}{\rm #2}\end{eqnarray}\end{subequations}}\newcommand{\ft}[1]{{\sf{\protect{\bf FT:} #1}}}\newcommand{\djnote}[1]{{\bf #1}}\makeindex
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -