Revision 4c25cbbba0f9eeadaf5b43907bbbce945089c4f2

root/GW4reports/GWcommons.tex

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
\def\GW{/GW} %GOlem wiki
\def\GWinput#1{\input{\GW/#1}}
\GWinput{root/GW4reports/packages.tex}

%PRIDAT pro zacatek ..
%\def\visibility{true}

\def\nic#1{}
\def\out#1{}
\def\ed{\end{document}}
%\def\in#1{#1} !!!!!NE relation symbol !!!!

%\nic{
\newboolean{GWtrue} 
\setboolean{GWtrue}{true} 
\newboolean{GWt} 
\setboolean{GWt}{true} 
\newboolean{GWf} 
\setboolean{GWf}{false} 

\newboolean{GWfalse} 
\setboolean{GWfalse}{false} 
\newboolean{GWio} 
\setboolean{GWio}{true}

\newcommand{\GWincl}[2]{\ifthenelse{\boolean{#1}}{#2}{}}


%https://fr.overleaf.com/learn/latex/Bibtex_bibliography_styles
\def\references{\bibliographystyle{apalike}\bibliography{\GW/root/bibtex/golem,\GW/root/bibtex/others}}
%\def\references{\bibliographystyle{unsrt}\bibliography{\GW/root/bibtex/golem,\GW/root/bibtex/others}}
%\def\references{\bibliographystyleArticles{unsrtnat}\bibliographyArticles{\GW/root/bibtex/golem,\GW/root/bibtex/others}}
%\def\references{\bibliography{\GW/root/bibtex/golem,\GW/root/bibtex/others}\printbibliography}
\def\tw{\textwidth}
\def\th{\textheight}
\def\bi{\begin{itemize}}
\def\biftns{\begin{itemize}}
\def\ei{\end{itemize}}
\def\im{\item}
\def\itm#1#2{\item {\bf #1}#2}
\def\bc{\begin{center}}
\def\ec{\end{center}}
\def\courtesyfont{\footnotesize}
%\def\creditfont{\footnotesize}
\def\creditfont{\tiny}
\def\pargr{~\\}
\def\aprx{$\sim$}
\def\OG{Ondřej Grover}
\def\court#1{\CourtFlag{\footnote{The main contributing author:#1}}}
\def\yes{{\color{red}\ding{51}}}
\def\no#1{{\color{red}\ding{55}(#1)}}
\def\plus{{\color{red}\bf +}}
\def\plusminus{{\color{red}\ding{51}/\ding{55}}}
\def\sipka{\ding{217}}


% Math stuff
\let\vec\mathbf
\def\vct#1{\mathbf\it #1}
\def\rot#1{\nabla\times\vec #1}
\def\partd#1#2{\partial #1/\partial #2}


\def\GWquot#1#2{\blok{#2:}{#1}}

\def\GWColl#1#2#3{\GWincl{#2}{\GWis{#3}}}
%\def\GWcoll#1#2#3{\GWincl{#2}{\GWinput{#3/latexsrc.page}}}
\def\GWsectionColl#1#2#3{\GWincl{#2}{\section{#1}\GWis{#3}}}
\def\GWsubsectionColl#1#2#3{\GWincl{#2}{\subsection{#1}\GWis{#3}}}
\def\IOsection#1#2#3{\GWincl{#2}{\section{#1}#3}}
\def\IOslide#1#2#3{\GWincl{#2}{\slide{#1}{#3}}}
\setboolean{GWio}{\visibility} 


\def\GWisubsection#1{\GWinput{#1/latexsrc.page}\subsection{\title}\label{#1}\default}

\def\twocolumns#1#2#3#4{
\begin{center}
\begin{columns}[c]
\column{#1\tw}
#2
\column{#3\tw}
#4
\end{columns}
\end{center}
%\begin{center}\begin{minipage}{#1}\begin{center}#2\end{center}\end{minipage}
%\begin{minipage}{#3}\begin{center}#4\end{center}\end{minipage}\end{center}
}


\def\GWip#1{\input{\GW/#1/latexsrc.page}\GWpar} %GW include par
\def\GWif#1#2{\input{\GW/#2/latexsrc.page}\GWfigure{#1}} %GW include par
\def\GWisp#1#2{\input{\GW/#1/latexsrc.page}#2} %GW include par
\def\GWisCz#1{\input{\GW/#1/latexsrc.page}\GWslideCz} %GW include slide
\def\GWin#1{\input{\GW/#1/latexsrc.page}} %GW include file
\def\GWid#1{\GWin{#1}\default} %default paragrgaph include

\def\GWig#1#2{\bc\includegraphics[#1]{\GW/#2}\ec}
\def\GWigfw#1{\includegraphics[width=\tw]{\GW/#1}}
\def\GWif#1#2#3{\begin{figure}[h]\centering\includegraphics[#1]{\GW/#2}\caption{#3}\label{Fig:#2}\end{figure}}
\def\GWifigure#1#2#3#4{\begin{figure}[h]\centering\includegraphics[#1]{\GW/#2}\caption{#3}\label{#4}\end{figure}}

%\begin{wrapfigure}[lineheight]{position}{width}
%The position parameter has eight possible values -
%r	R	right side of the text
%l	L	left side of the text
%i	I	inside edge–near the binding (in a twoside document)
%o	O	outside edge–far from the binding
\def\GWiwrapfigure#1#2#3#4#5{\begin{wrapfigure}{#1}{#2}\includegraphics[#3]{\GW/#4}\caption{#5}\label{Fig:#4}\end{wrapfigure}}
\def\GWigpw#1#2{\includegraphics[width=#1\textwidth]{\GW/#2}}
%\newcommand\GWigpw[2]{\includegraphics[width=#1\textwidth]{\GW/#2}}
\def\GWidf#1#2#3#4#5#6{
\begin{figure}[H]
\begin{subfigure}{#1}
\includegraphics[width=\tw]{\GW/#2}
\end{subfigure}
\begin{subfigure}{#3}
\includegraphics[width=\tw]{\GW/#4}
\end{subfigure}
\caption{#5}
\label{#6}
\end{figure}
}


%\def\credit#1#2{\. \hfill \creditfont credit:\href{#2}{#1}}
\def\credit#1#2{\. \hfill \creditfont credit:\href{#2}{#1}}

\def\figcredit#1{\ \hfill \creditfont credit:\cite{#1}}
\def\textcredit#1{\footnote{credit:#1}}
\def\GWigwc#1#2#3{
\begin{tabular}{c}
\includegraphics[width=#1\tw]{\GW/#2}\\
\figcredit{#3}
\end{tabular}
}

\def\GWfigure#1{\import{\GW/#1/}{FIGdescr.page}\begin{figure}[h]\centering\href{http://golem.fjfi.cvut.cz/wiki/\FGpath}{\includegraphics[width=\FGgeom]{\FGpath}}\caption{\FGcapt}\label{\FGlabel}\end{figure}}
\def\GWdfigure#1{\import{\GW/#1/}{DFIGdescr.page}\begin{figure}[h]\centering\href{http://golem.fjfi.cvut.cz/wiki/\FGpathA}{\includegraphics[width=\FGgeom]{\FGpathA}}\href{http://golem.fjfi.cvut.cz/wiki/\FGpathB}{\includegraphics[width=\FGgeom]{\FGpathB}}\caption{\FGcapt}\label{\FGlabel}\end{figure}}

\def\GWwrapfigure#1{\GWinput{#1/FIGdescr.page}\begin{wrapfigure}{\FGwrappos}{\FGwrapwidth}\href{http://golem.fjfi.cvut.cz/wiki/\FGpath}{\includegraphics[width=\FGwfgeom]{\FGpath}}\caption{\FGcapt}\label{\FGlabel}\end{wrapfigure}}

\newcommand{\flushrght}[1]{\begin{flushright} #1 \end{flushright}}


\GWinput{root/GW4reports/Templates/Heads/Staff.tex}
\GWinput{root/PhysicalQuantities/PhysQuant.tex}


% Listing stuff
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}

\lstdefinestyle{mystyle}{
    backgroundcolor=\color{backcolour},   
    commentstyle=\color{codegreen},
    keywordstyle=\color{magenta},
    numberstyle=\tiny\color{codegray},
    stringstyle=\color{codepurple},
    basicstyle=\ttfamily\footnotesize,
    breakatwhitespace=false,         
    breaklines=true,                 
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=2
}

\lstset{style=mystyle}


\def\LastWellExecutedShot{22471}