1 | %%% ==================================================================== |
---|
2 | %%% @LaTeX-file{ |
---|
3 | %%% filename = "Skripta.sty", |
---|
4 | %%% version = "1.00", |
---|
5 | %%% date = "2006/01/16", |
---|
6 | %%% time = "01:20:10 CET", |
---|
7 | %%% author = "Jirka Roubal", |
---|
8 | %%% copyright = "Copyright 2006, Jirka Roubal, |
---|
9 | %%% all rights reserved. Copying of this file is |
---|
10 | %%% authorized only if either: |
---|
11 | %%% (1) you make absolutely no changes to your copy, |
---|
12 | %%% including name; OR |
---|
13 | %%% (2) if you do make changes, you first rename it |
---|
14 | %%% to some other name.", |
---|
15 | %%% address = "Jirka Roubal, |
---|
16 | %%% Department of Control Engineering, |
---|
17 | %%% Faculty of Electrical Engineering, |
---|
18 | %%% Czech Technical University in Prague, |
---|
19 | %%% Karlovo náměstí 13, |
---|
20 | %%% 121 35 Prague 2, |
---|
21 | %%% Czech Republic", |
---|
22 | %%% telephone = "+420-2-2435-7687", |
---|
23 | %%% FAX = "", |
---|
24 | %%% checksum = "38084 5829 21569 202795", |
---|
25 | %%% email = "roubalj@control.felk.cvut.cz", |
---|
26 | %%% website = "http://dce.felk.cvut.cz/roubal/", |
---|
27 | %%% codetable = "ISO/ASCII", |
---|
28 | %%% keywords = "latex, amsmath, ntheorem, inputenc, czech", |
---|
29 | %%% supported = "yes", |
---|
30 | %%% abstract = "This is a \LaTeX{} template for students bachelorsor |
---|
31 | %%% diploma thesis.", |
---|
32 | %%% } |
---|
33 | %%% ==================================================================== |
---|
34 | |
---|
35 | %-----<<< ----------- >>>----- |
---|
36 | %-----<<< USEPACKAGES >>>----- |
---|
37 | \usepackage[utf8]{inputenc} |
---|
38 | \usepackage[czech]{babel} |
---|
39 | \usepackage{fancyhdr} |
---|
40 | \usepackage{amsmath} |
---|
41 | \usepackage{amssymb} |
---|
42 | \usepackage[amsmath,thmmarks]{ntheorem} |
---|
43 | \usepackage{latexsym} |
---|
44 | \usepackage[dvips]{graphicx} |
---|
45 | \usepackage{float} |
---|
46 | % \usepackage{picins} %text beside figure |
---|
47 | \usepackage[width=.90\textwidth,hang,small]{caption} |
---|
48 | \usepackage{subfigure} %text beside figure |
---|
49 | %-----<<< USEPACKAGES >>>----- |
---|
50 | %-----<<< ----------- >>>----- |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | %-----<<< ---------------------------------- >>>----- |
---|
55 | %-----<<< PAGE, TITLE AND SECTION DEFINITION >>>----- |
---|
56 | \linespread{1.3} %line spacing 1.5 |
---|
57 | |
---|
58 | \setlength{\oddsidemargin}{0mm} |
---|
59 | \setlength{\textwidth}{159.2mm}\setlength{\topmargin}{0mm} |
---|
60 | \setlength{\textheight}{230mm} |
---|
61 | \setlength{\headheight}{14.5pt} %height of head |
---|
62 | \setlength{\oddsidemargin}{5mm} %odd left margin |
---|
63 | \setlength{\evensidemargin}{-\oddsidemargin} %even left margin |
---|
64 | |
---|
65 | |
---|
66 | \newcommand\titulek{\@startsection {paragraph}{5}{\z@}% |
---|
67 | {-0.5ex \@plus -.1ex \@minus -.2ex}% |
---|
68 | {2.3ex \@plus.2ex}% |
---|
69 | {\LARGE\bfseries}} |
---|
70 | \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% |
---|
71 | {3.25ex \@plus1ex \@minus.2ex}% |
---|
72 | {-1em}% |
---|
73 | {\normalfont\normalsize\bfseries}} |
---|
74 | \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% |
---|
75 | {3.25ex \@plus1ex \@minus .2ex}% |
---|
76 | {-1em}% |
---|
77 | {\normalfont\normalsize\bfseries}} |
---|
78 | \renewcommand\section{\@startsection {section}{1}{\z@}% |
---|
79 | {-8.5ex \@plus -.1ex \@minus -.2ex}% |
---|
80 | {2.3ex \@plus.2ex}% |
---|
81 | {\raggedright\normalfont\Large\bfseries}} |
---|
82 | \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% |
---|
83 | {-5.25ex\@plus -1ex \@minus -.2ex}% |
---|
84 | {1.5ex \@plus .2ex}% |
---|
85 | {\raggedright\normalfont\large\bfseries}} |
---|
86 | \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% |
---|
87 | {-3.25ex\@plus -1ex \@minus -.2ex}% |
---|
88 | {1.5ex \@plus .2ex}% |
---|
89 | {\raggedright\normalsize\bfseries}} |
---|
90 | |
---|
91 | %\newtheorem{definition}{Definice}[chapter] |
---|
92 | %\newenvironment{Definition}{\begin{definition}\noindent\rm}{\hspace*{\fill}$\Box$\end{definition}\par\bigskip} |
---|
93 | %\newtheorem{proposition}{Věta}[chapter] |
---|
94 | %\newenvironment{Proposition}{\begin{proposition}\noindent}{\end{proposition}\par\bigskip} |
---|
95 | %\newtheorem{example}{Příklad}[chapter] |
---|
96 | %\newenvironment{Example}{\begin{example}\noindent\rm}{\end{example}\par\bigskip} |
---|
97 | |
---|
98 | \theorembodyfont{\normalfont} |
---|
99 | \theoremseparator{\?:} |
---|
100 | \theoremsymbol{\ensuremath{\blacktriangleright}} |
---|
101 | \newtheorem{definition}{Definice}[chapter] |
---|
102 | |
---|
103 | \theorembodyfont{\em} |
---|
104 | \theoremsymbol{} |
---|
105 | \theoremseparator{\?:} |
---|
106 | \newtheorem{proposition}{Věta}[chapter] |
---|
107 | |
---|
108 | \theorembodyfont{\normalfont} |
---|
109 | \theoremseparator{\?:} |
---|
110 | \theoremsymbol{\ensuremath{\Box}} |
---|
111 | \newtheorem*{note}{Poznámka} |
---|
112 | |
---|
113 | \def\qed{\includegraphics[width=1.5cm]{\cestaFiles Figures/Proved.eps}} |
---|
114 | \theorembodyfont{\normalfont} |
---|
115 | \theoremseparator{\normalfont{\?:}} |
---|
116 | \theoremsymbol{\qed} |
---|
117 | \newtheorem*{proof}{Důkaz} |
---|
118 | |
---|
119 | \theorembodyfont{\normalfont} |
---|
120 | \theoremsymbol{} |
---|
121 | \theoremseparator{\?:} |
---|
122 | \newtheorem{example}{Příklad}[chapter] |
---|
123 | |
---|
124 | \theoremheaderfont{\em} |
---|
125 | \theorembodyfont{\normalfont} |
---|
126 | \theoremseparator{\normalfont{\?:}} |
---|
127 | \theoremsymbol{\ensuremath{\checkmark}} |
---|
128 | \newtheorem*{solution}{Řešení} |
---|
129 | |
---|
130 | |
---|
131 | |
---|
132 | %\setlength\abovecaptionskip{1mm} |
---|
133 | %\setlength\belowcaptionskip{-5mm} |
---|
134 | %-----<<< PAGE, TITLE AND SECTION DEFINITION >>>----- |
---|
135 | %-----<<< ---------------------------------- >>>----- |
---|
136 | |
---|
137 | |
---|
138 | |
---|
139 | %-----<<< ---------- >>>----- |
---|
140 | %-----<<< TITLE PAGE >>>----- |
---|
141 | \def \CVUT {České vysoké učení technické v~Praze} |
---|
142 | \def \FJFI {Fakulta jaderná a fyzikálně inženýrská} |
---|
143 | |
---|
144 | \def \BookHead { |
---|
145 | \begin{center} |
---|
146 | {\LARGE \textsc \CVUT}\\[2ex] |
---|
147 | {\LARGE \textsc \FJFI}\\ |
---|
148 | |
---|
149 | \vspace{2cm} |
---|
150 | \begin{figure}[H] |
---|
151 | \begin{center} |
---|
152 | {\includegraphics[width=5cm]{\cestaFiles Figures/lev.eps}} |
---|
153 | \end{center} |
---|
154 | \end{figure} |
---|
155 | \vspace{1cm} |
---|
156 | |
---|
157 | {\textbf {\Huge \BookName \\[8ex]} |
---|
158 | % {\Large \bf \em \Bookname} |
---|
159 | } |
---|
160 | |
---|
161 | {\large \bf \Authors}\\[6ex] |
---|
162 | |
---|
163 | \begin{figure}[H] |
---|
164 | \begin{center} |
---|
165 | {\includegraphics[width=3cm]{\cestaFiles Figures/DCE.eps}} |
---|
166 | \end{center} |
---|
167 | \end{figure} |
---|
168 | \vspace{-1cm} |
---|
169 | {\large \em \DCE} |
---|
170 | \newpage |
---|
171 | \end{center} |
---|
172 | } |
---|
173 | %-----<<< ---------- >>>----- |
---|
174 | |
---|
175 | %-----<<< TITLE PAGE 2 >>>----- |
---|
176 | \def\title#1{ |
---|
177 | \vspace*{-1cm} |
---|
178 | \thispagestyle{plain}\begin{center} |
---|
179 | {\scriptsize\sc \school}\par\medskip |
---|
180 | {\subject}\par\bigskip |
---|
181 | \titulek{\bf\uppercase{#1}} |
---|
182 | \end{center}\def\popis{#1}} |
---|
183 | |
---|
184 | \def\author#1{\small\centerline{#1}\def\Authors{#1} |
---|
185 | \fancyhead{} |
---|
186 | \fancyhead[R]{\thepage} |
---|
187 | \fancyhead[L]{\small\it\BookName}% |
---|
188 | \fancyfoot{} |
---|
189 | \pagestyle{fancy} |
---|
190 | \hypersetup{ |
---|
191 | pdftitle = {\BookName}, |
---|
192 | pdfauthor = {\Authors} |
---|
193 | }\par\vspace{15mm}} |
---|
194 | |
---|
195 | \def\maketitle{ |
---|
196 | \fancyhead{} |
---|
197 | \fancyhead[R]{\thepage} |
---|
198 | \fancyhead[L]{\small\it\BookName}% |
---|
199 | \fancyfoot{} |
---|
200 | \pagestyle{fancy} |
---|
201 | \hypersetup{ |
---|
202 | pdftitle = {\BookName}, |
---|
203 | pdfauthor = {\Authors} |
---|
204 | } |
---|
205 | } |
---|
206 | %-----<<< TITLE PAGE >>>----- |
---|
207 | %-----<<< ---------- >>>----- |
---|
208 | |
---|
209 | |
---|
210 | |
---|
211 | %-----<<< ------ >>>----- |
---|
212 | %-----<<< MATLAB >>>----- |
---|
213 | \usepackage{fancybox} |
---|
214 | \usepackage{verbatim} |
---|
215 | \newenvironment{matlab}[1] |
---|
216 | {\VerbatimEnvironment |
---|
217 | \bigskip\par\begin{minipage}{#1}\scriptsize\begin{Verbatim}} |
---|
218 | {\end{Verbatim}\end{minipage}\par\bigskip\noindent} |
---|
219 | %-----<<< MATLAB >>>----- |
---|
220 | %-----<<< ------ >>>----- |
---|
221 | |
---|
222 | |
---|
223 | |
---|
224 | %-----<<< ------ >>>----- |
---|
225 | %-----<<< MACROS >>>----- |
---|
226 | \def\?{\kern.07em} %inseparable space, for instance before colon, semicolon, question mark, ... |
---|
227 | \mathchardef\.="013B %space after decimal point |
---|
228 | %\mathcode`\,="013B |
---|
229 | |
---|
230 | %-----<<< České uvozovky |
---|
231 | \DeclareTextCommandDefault\clqq{\leavevmode |
---|
232 | \set@low@box{''}% |
---|
233 | \setbox1=\hbox{l\/}\dimen1=\wd1 |
---|
234 | \setbox1=\hbox{l}\advance\dimen1 by -\wd1 |
---|
235 | \ifdim\dimen1>0pt\kern-.1em\box0\kern.1em |
---|
236 | \else\kern.1em\box0\kern-.1em\fi\nobreak\hskip0pt} |
---|
237 | \DeclareTextCommandDefault\crqq{\edef\@SF{\spacefactor\the\spacefactor}% |
---|
238 | \nobreak\kern-.07em\hbox{``}\kern.07em\@SF\relax} |
---|
239 | \def\uv#1{\clqq#1\crqq} |
---|
240 | %>>>----- |
---|
241 | |
---|
242 | %-----<<< Množiny |
---|
243 | \DeclareFontFamily{OT1}{mnozina}{} |
---|
244 | %\DeclareFontShape{OT1}{mnozina}{m}{n}{ <10> <12> msbm10 }{} |
---|
245 | \DeclareFontShape{OT1}{mnozina}{m}{n}{ <6> msbm7 <8> msbm9 <10> <12> msbm10}{} |
---|
246 | \DeclareSymbolFont{matsym}{OT1}{mnozina}{m}{n} |
---|
247 | \DeclareMathSymbol{\N}{\mathord}{matsym}{78} |
---|
248 | \DeclareMathSymbol{\Z}{\mathord}{matsym}{90} |
---|
249 | \DeclareMathSymbol{\R}{\mathord}{matsym}{82} |
---|
250 | %\DeclareMathSymbol{\C}{\mathord}{matsym}{67} |
---|
251 | %>>>----- |
---|
252 | |
---|
253 | %-----<<< Odkazy na tabulky, obrázky a kapitoly |
---|
254 | %\newcommand{\eqref}[1]{\mbox{(\ref{#1})}} |
---|
255 | \newcommand{\tabref}[1]{tabulka~\mbox{\ref{#1}}} |
---|
256 | \newcommand{\figref}[1]{obr.~\mbox{\ref{#1}}} |
---|
257 | \newcommand{\charef}[1]{kapitola~\mbox{\ref{#1}}} |
---|
258 | \newcommand{\dcvref}[2]{\mbox{\ref{#1}}\?: #2\?;\,\,\,} |
---|
259 | %>>>----- |
---|
260 | |
---|
261 | %-----<<< Tučné matice kurzívou |
---|
262 | %\newcommand{\mat}[1]{{\bf #1}} %bold matrix |
---|
263 | %\newcommand{\matt}[1]{{\pmb{#1}}} %bold matrix for Greek |
---|
264 | \newcommand{\mat}[1]{\mbox{\boldmath $#1$}} %bold italic matrix |
---|
265 | \newcommand{\matt}[1]{\pmb{\mathit #1}} %bold italic matrix for Greek |
---|
266 | \newcommand{\matit}[1]{\mathit #1} %italic for Greek |
---|
267 | \newcommand{\pruh}[1]{\overline{#1}} %overline na matrix |
---|
268 | %>>>----- |
---|
269 | |
---|
270 | \newcommand \Bod[1]{\vspace{0.5cm}\noindent{\bf\em \textcolor{blue}{#1}}} |
---|
271 | \newcommand \Bodd[1]{\vspace{0.3cm}\noindent{\em \textcolor{magenta}{$\star$~#1}}} |
---|
272 | \newcommand \Boddd[1]{\noindent{\em \textcolor{brown}{#1}}} |
---|
273 | |
---|
274 | \def\fracc#1#2{{\displaystyle{#1\over#2}}\,}%redefinition of fraction (normal size) |
---|
275 | \def\frac#1#2{{\begingroup#1\endgroup\over#2}\,} |
---|
276 | \newcommand{\quantity}[2]{#1~[#2]} %physics variables with unit |
---|
277 | \newcommand{\e}[1]{e^{\displaystyle #1}} %exponential |
---|
278 | \newcommand{\Lap}{\mathcal{L}} %Laplace operator |
---|
279 | \newcommand{\Ztf}{\mathcal{Z}} %Laplace operator |
---|
280 | \def\rank{\qopname\relax n{hod}} %rank of matrix |
---|
281 | \newcommand{\PID}[2]{#1_{_{#2}}} %smaller subscript at PID controllers gains |
---|
282 | %-----<<< MACROS >>>----- |
---|
283 | %-----<<< ------ >>>----- |
---|
284 | |
---|
285 | |
---|
286 | |
---|
287 | %-----<<< Styl pro literaturu |
---|
288 | % \def\bibTeX{\textsc{bib}\TeX} |
---|
289 | % \renewcommand{\harvardand}{a} |
---|
290 | %>>>----- |
---|