Revision e4218c431053185d6a1ffa4d342214f26e3766e0 (click the page title to view the current version)

root/GW4reports/GWcommons.tex

%\def\GW{/GW} %GOlem wiki
\def\GWinput#1{\input{\GW/#1}}
\GWinput{root/GW4reports/packages.tex}
\GWinput{root/parameters.tex}

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

\def\nic#1{}
\def\out#1{}
\def\noslide#1#2{}

\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\hrefcredit#1#2{\. \hfill \creditfont credit:\href{#2}{#1}}
\def\hrefcitet#1#2#3{\. \hfill \creditfont credit:\href{#2}{#1} \cite{#3}}% NUTNO DODELAT NEJAKOU href formu
\def\credit#1#2{\. \hfill \creditfont credit:#1\ \cite{#2}}



\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}}

%Local change: 280621
%\GWinput{root/GW4reports/Templates/Heads/Staff.tex}
\GWinput{root/PhysicalQuantities/PhysQuant.tex}


%\def\sub#1{_\mathrm{#1}}\def\sup#1{^\mathrm{#1}}
\GWinput{root/GW4reports/GMequationsDefs.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}
\lstset{columns=flexible}



%\def\LastWellExecutedShot{22471}
%\def\LastWellExecutedShotForSAS{33993}

\def\LastWellExecutedShot{39187}
\def\LastWellExecutedShotForSAS{39187}