-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBP.sty
373 lines (276 loc) · 11.3 KB
/
BP.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
% !TEX TS-program = pdflatex
% !TEX options = --shell-escape
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=2cm,headheight=0.5cm,headsep=0.2cm,footskip=1cm}
\pagestyle{headings}
\setcounter{secnumdepth}{3}
\usepackage{url}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{verbatim}
\usepackage{tikz}
\usepackage{mathtools}
\usepackage{float}
\usepackage{xcolor}
\usepackage{xfrac}
\usetikzlibrary{angles, quotes, quantikz2}
%\usetikzlibrary{external}
\usepackage{pgfplots}
\usepackage{subcaption}
\usepackage{titlesec}
\usepackage[indent = 0pt]{parskip}
\usepackage{csquotes}
\usepackage[font=footnotesize,labelfont=it, width = 0.9\textwidth]{caption}
\usepackage[
backend=biber, % if we want unicode and many other features (biber is already by default)
style=iso-numeric, % or another iso-<style>
sorting=none
]{biblatex}
\addbibresource{Bibliografie.bib}
\renewcommand*{\bibfont}{\footnotesize}
\usepackage[ruled, linesnumbered]{algorithm2e}
%\tikzexternalize
\def\documentdate{5. srpna 2024}
%\setlength{\parindent}{0pt}
\everymath{\displaystyle}
\DeclareMathSizes{11}{11}{7}{5}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newenvironment{lyxlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
\renewcommand{\makelabel}[1]{##1\hfil}}}
{\end{list}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%% Font setup: please leave the LyX font settings all set to 'default'
%% if you want to use any of these packages:
%% Use Times New Roman font for text and Belleek font for math
%% Please make sure that the 'esint' package is turned off in the
%% 'Math options' page.
%\usepackage[varg]{txfonts}
%% Use Utopia text with Fourier-GUTenberg math
%\usepackage{fourier}
%% Bitstream Charter text with Math Design math
%\usepackage[charter]{mathdesign}
\usepackage{mlmodern} % Latin Modern family of fonts
\usepackage[T1]{fontenc}
%%---------------------------------------------------------------------
%% Make the multiline figure/table captions indent so that the second
%% line "hangs" right below the first one.
%\usepackage[format=hang]{caption}
%% Indent even the first paragraph in each section
\usepackage{indentfirst}
%%---------------------------------------------------------------------
\usepackage{pdfpages}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
%%---------------------------------------------------------------------
%% Disable page numbers in the TOC. LOF, LOT (TOC automatically
%% adds \thispagestyle{chapter} if not overriden
%\addtocontents{toc}{\protect\thispagestyle{empty}}
%\addtocontents{lof}{\protect\thispagestyle{empty}}
%\addtocontents{lot}{\protect\thispagestyle{empty}}
%% Shifts the top line of the TOC (not the title) 1cm upwards
%% so that the whole TOC fits on 1 page. Additional page size
%% adjustment is performed at the point where the TOC
%% is inserted.
%\addtocontents{toc}{\protect\vspace{-1cm}}
%%---------------------------------------------------------------------
% completely avoid orphans (first lines of a new paragraph on the bottom of a page)
\clubpenalty=9500
% completely avoid widows (last lines of paragraph on a new page)
\widowpenalty=9500
% disable hyphenation of acronyms
\hyphenation{CDFA HARDI HiPPIES IKEM InterTrack MEGIDDO MIMD MPFA DICOM ASCLEPIOS MedInria}
%%---------------------------------------------------------------------
%% Print out all vectors in bold type instead of printing an arrow above them
%\renewcommand{\vec}[1]{\boldsymbol{#1}}
\titleformat{\chapter}{\normalfont\bfseries\LARGE}{\thechapter}{1em}{}
% Replace standard \cite by the parenthetical variant \citep
%\renewcommand{\cite}{\citep}
\makeatother
\usepackage{babel}
% Definice bra-ketu
\newcommand{\kett}[1]{|{#1}\rangle}
\newcommand{\brat}[1]{\langle{#1}|}
\newcommand{\bracket}[2]{\langle{#1} | {#2}\rangle}
\newcommand{\swch}[3]{\langle{#1} | #2 | {#3} \rangle}
\newcommand{\p}[1]{\ket{#1}\bra{#1}}
\newcommand{\pp}[2]{\ket{#1}\bra{#2}}
\newcommand{\ppt}[2]{\kett{#1}\brat{#2}}
\newcommand{\comm}[2]{[ {#1},{#2} ]}
\newcommand{\s}[1]{\langle{#1}\rangle}
%\newcommand{\vctr}[2]{\begin{pmatrix} {#1} \\ #2 \end{pmatrix}}
%\newcommand{\bvctr}[2]{\begin{pmatrix} {#1} \\ #2 \end{pmatrix}}
\newcommand{\vctr}[1]{\ensuremath{\begin{pmatrix*}[r]#1\end{pmatrix*}}}
\newcommand{\bctr}[1]{\ensuremath{\begin{bmatrix*}[r]#1\end{bmatrix*}}}
\newcommand{\swich}[3]{\bra{#1} {#2} \ket{#3}}
\newcommand{\todo}[1]{{\color{cyan} {#1}}}
% Michal Krelina - vlozeni poznamek.
\newcommand{\mk}[1]{ {\color{red} #1 } }
% Opravy
\newcommand{\corr}[1]{ {\color{ForestGreen} #1 } }
%kvuli zmene jazyka se pouziva \addto z babel....zmena Onrazek na Obr.
\addto\captionsczech{\renewcommand{\figurename}{Obr.}}
\addto\captionsczech{\renewcommand{\tablename}{Tab.}}
% Titulní stránka, poděkování, abstrakt...
\newcommand{\bloch}[1]{
\begin{tikzpicture}
% Define radius
\def\r{3}
% Bloch vector
\draw (0, 0) node[circle, fill, inner sep=1, thick] (orig) {} -- (\r/2, \r/2) node[circle, fill, inner sep=0.7, label=above:$\ket{\psi}$] (a) {};
\draw[dashed] (orig) -- (\r/2, -\r/3.5) node (phi) {} -- (a);
\filldraw[color=black, fill=black!60](\r/2, \r/2) circle (0.05);
% Sphere
\draw (orig) circle (\r);
\draw[dashed] (orig) ellipse (\r{} and \r/3);
% Axes
\draw[->] (orig) -- ++(-\r/5+0.05, -\r/3+0.1) node[left, yshift = 5] (x) {$x$};
\draw[->] (orig) -- ++(\r, 0) node[right] (x2) {$y$};
\draw[->] (orig) -- ++(0, \r-0.15) node[right, yshift = -5] (z) {$z$};
%\draw[dashed] (orig) -- ++(0, -\r+0.15);
\filldraw[color=black, fill=black!5, thick](0,-\r) circle (0.1) node[below, yshift = -2] (ket1) {$\ket{1}$};
\filldraw[color=black, fill=black!5, thick](0,\r) circle (0.1) node[above, yshift = 2] (ket0) {$\ket{0}$};
\filldraw[color=black!75, fill=black!5, thick](-\r/5, -\r/3) circle (0.1) node[below, yshift = -5] (ket+) {$\ket{+}$};
\filldraw[color=black!75, fill=black!5, thick](\r/5, \r/3) circle (0.1) node[above, yshift = 5] (ket-) {$\ket{-}$};
% Angles
\pic [draw=black!60, text=black!75, ->, "$\varphi$"] {angle = x--orig--phi};
\pic [draw=black!60, text=black!75, <-, "$\theta$", angle eccentricity=1.4] {angle = a--orig--ket0};
\end{tikzpicture}
}
\newcommand{\mytitlepage}{
\pagestyle{empty}
{\centering
\noindent %
\begin{minipage}[c]{3cm}%
\noindent \begin{center}
\includegraphics[width=3cm,height=3cm,keepaspectratio]{Images/TITLE/cvut}
\par\end{center}%
\end{minipage}%
\begin{minipage}[c]{0.6\linewidth}%
\begin{center}
\textsc{\large{}České vysoké učení technické v Praze}{\large{}}\\
{\large{}Fakulta jaderná a fyzikálně inženýrská}
\par\end{center}%
\end{minipage}%
\begin{minipage}[c]{3cm}%
\noindent \begin{center}
\includegraphics[width=3cm,height=3cm,keepaspectratio]{Images/TITLE/fjfi}
\par\end{center}%
\end{minipage}
\vspace{3cm}
\textbf{\huge{}Kvantové variační metody pro použití ve fyzice}{\huge\par}
\vspace{1cm}
\selectlanguage{czech}%
\vspace{2cm}
{\large{}Bakalářská práce}{\large\par}
}
\vfill{}
\begin{lyxlist}{MMMMMMMMM}
\begin{singlespace}
\item [{Autor:}] \textbf{Štěpán Skalka}
\item [{Vedoucí~práce:}] \textbf{Ing. Bc. Michal Křelina, Ph.D.}
%\item [{Konzultant:}] \textbf{doc. RNDr. Jméno Konzultanta, CSc. }(pouze
%pokud konzultant byl jmenován.)
\item [{Akademický~rok:}] 2023/2024
\end{singlespace}
\end{lyxlist}
}
\newcommand{\podekovani}{
\noindent \emph{\Large{}Poděkování:}{\Large\par}
\noindent
%Chtěl bych zde poděkovat především svému školiteli ...................
%za pečlivost, ochotu, vstřícnost a odborné i lidské zázemí při vedení
%mé diplomové práce. Dále děkuji svému konzultantovi ................
%za ................
\vfill
}
\newcommand{\prohlaseni}{
\noindent \emph{\Large{}Čestné prohlášení:}{\Large\par}
\noindent Prohlašuji, že jsem tuto práci vypracoval samostatně a uvedl
jsem všechnu použitou literaturu.
\bigskip{}
\noindent V Praze dne \documentdate\hfill{}Štěpán Skalka
\vspace{2cm}
}
\newcommand{\abstrakt}{
\begin{onehalfspace}
\noindent \emph{Název práce:}
\noindent \textbf{Název práce}
\end{onehalfspace}
\bigskip{}
\noindent \emph{Autor:} Jméno Autora
\bigskip{}
\noindent \emph{Studijní program:} Celý název studijního programu
(nikoliv zkratka)\bigskip{}
\noindent \emph{Specializace:} Celý název specializace (Pokud se studijní
program nedělí na specializace, tuto řádku odstranit.)
\bigskip{}
\noindent \emph{Druh práce:} Bakalářská práce
\bigskip{}
\noindent \emph{Vedoucí práce:} prof. Ing. Jméno Školitele, DrSc.,
pracoviště školitele (název instituce, fakulty, katedry...)
\bigskip{}
\noindent \emph{Konzultant:} doc. RNDr. Jméno Konzultanta, CSc., pracoviště
konzultanta. Pouze pokud konzultant byl jmenován.
\bigskip{}
\noindent \emph{Abstrakt:} Abstrakt max. na 10 řádků. Abstrakt max.
na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků.
Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max.
na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků.
Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max.
na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků.
Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max.
na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků.
Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max.
na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků.
Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max.
na 10 řádků. Abstrakt max. na 10 řádků. Abstrakt max. na 10 řádků.
\bigskip{}
\noindent \emph{Klíčová slova:} klíčová slova (nebo výrazy) seřazená
podle abecedy a oddělená čárkou
\vfill{}
~
\selectlanguage{english}%
\begin{onehalfspace}
\noindent \emph{Title:}
\noindent \textbf{Title of the Work}
\end{onehalfspace}
\bigskip{}
\noindent \emph{Author:} Author's Name
\bigskip{}
\noindent \emph{Abstract:} Max. 10 lines of English abstract text.
Max. 10 lines of English abstract text. Max. 10 lines of English abstract
text. Max. 10 lines of English abstract text. Max. 10 lines of English
abstract text. Max. 10 lines of English abstract text. Max. 10 lines
of English abstract text. Max. 10 lines of English abstract text.
Max. 10 lines of English abstract text. Max. 10 lines of English abstract
text. Max. 10 lines of English abstract text. Max. 10 lines of English
abstract text. Max. 10 lines of English abstract text. Max. 10 lines
of English abstract text. Max. 10 lines of English abstract text.
Max. 10 lines of English abstract text. Max. 10 lines of English abstract
text. Max. 10 lines of English abstract text. Max. 10 lines of English
abstract text. Max. 10 lines of English abstract text. Max. 10 lines
of English abstract text. Max. 10 lines of English abstract text.
Max. 10 lines of English abstract text. Max. 10 lines of English abstract
text. Max. 10 lines of English abstract text.
\bigskip{}
\noindent \emph{Key words:} keywords in alphabetical order separated
by commas
\selectlanguage{czech}%
}