iccsa-19-vtestbed

Virtual Testbed: Ship Motion Simulation for Personal Workstations
git clone https://git.igankevich.com/iccsa-19-vtestbed.git
Log | Files | Refs

preamble.tex (1667B)


      1 \newcommand{\WaveVector}{\vec{k}}
      2 \newcommand{\WaveNumber}{\lvert\smash[b]{\WaveVector}\rvert}
      3 \newcommand{\Cosh}[1]{\cosh\left(#1\right)}
      4 \newcommand{\Fourier}[2]{\mathcal{F}_{#2}\!\left\{#1\right\}}
      5 \newcommand{\InverseFourier}[2]{\mathcal{F}^{-1}_{#2}\!\left\{#1\right\}}
      6 % properly aligned version of sqrt for \zeta_y^2
      7 \newcommand{\SqrtZeta}[1]{\sqrt{\vphantom{\zeta_x^2}\smash[b]{#1}}}
      8 \newcommand{\SqrtZetaXY}{\SqrtZeta{1 + \zeta_x^2 + \zeta_y^2}}
      9 \newcommand{\InertiaMatrix}{\mathcal{I}}
     10 \newcommand{\FracSqrtZetaXY}[1]{\frac{#1}{\SqrtZetaXY{}}}
     11 
     12 \tikzstyle{Block} = [
     13 	rectangle,
     14 	draw=spbuDarkGray,
     15 	thick,
     16 	text width=1.4cm,
     17 	align=center,
     18 	fill=spbuWhite2,
     19 	font=\footnotesize\linespread{1}\selectfont,
     20 	inner sep=1mm,
     21 ]
     22 \tikzstyle{Arrow} = [
     23 	very thick,
     24 	arrows={-Triangle[length=0.25cm,width=0.125cm]},
     25 	draw=spbuDarkGray
     26 ]
     27 \tikzstyle{Dashed} = [
     28 	very thick,
     29 	draw=spbuDarkGray2,
     30 	dashed
     31 ]
     32 \tikzstyle{Label} = [
     33 	align=center,
     34 	font=\scriptsize\linespread{1}\selectfont,
     35 	fill=none,
     36 	baseline,
     37 	anchor=south
     38 ]
     39 
     40 
     41 \definecolor{markRed}{HTML}{E5C6C5}
     42 \newcommand*{\fillrectemph}[2]{%
     43   \begin{tikzpicture}[baseline=(#1tmp.base),remember picture]
     44     \node[fill=none,inner sep=0mm] (#1tmp) {$\displaystyle\phantom{#2}$};%
     45     \node[overlay,rectangle,fill=markRed,ultra thick,draw=none, inner xsep=0mm, inner ysep=0.5mm] (#1) at (#1tmp) {$\displaystyle#2$};%
     46   \end{tikzpicture}
     47 }
     48 % down arrow
     49 \newcommand*{\spbuArrow}{%
     50 \mode<presentation>{%
     51 \begin{center}%
     52 \begin{tikzpicture}[scale=1]%
     53 \draw[
     54 	-triangle 90,
     55 	very thick,
     56 	double,
     57 	double equal sign distance,
     58 	draw=spbuWhite2,
     59 	fill=spbuWhite2
     60 ]
     61 	(0,0.1) -- (0,0);
     62 \end{tikzpicture}%
     63 \end{center}%
     64 }%
     65 }