Iniital commit of thesis.tex and stuff

This commit is contained in:
Christian
2019-12-03 22:44:26 +01:00
parent c6e0529668
commit 223f456ba8
169 changed files with 66879 additions and 53 deletions
@@ -0,0 +1,88 @@
% http://www.texample.net/tikz/examples/flexible-flow-chart/
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,chains}
\usepackage[version=4]{mhchem}
\usepackage{upgreek}
\begin{document}
% -------------------------------------------------
% Start the picture
\begin{tikzpicture}[%
>=triangle 60, % Nice arrows; your taste may be different
start chain=going below, % General flow is top-to-bottom
node distance=5mm and 55mm, % Global setup of box spacing
every join/.style={arrow}, % Default linetype for connecting boxes
]
% -------------------------------------------------
% Color definition from https://www.schemecolor.com/cute-lights.php
\definecolor{myred}{HTML}{FF555E}
\definecolor{myyellow}{HTML}{FFE981}
\definecolor{myblue}{HTML}{83B2FF}
% -------------------------------------------------
% Debugging Layer
% top
\pgfdeclarelayer{marx}
\pgfsetlayers{main,marx}
% A macro for marking coordinates (specific to the coordinate naming
% scheme used here). Swap the following 2 definitions to deactivate
% marks.
\providecommand{\cmark}[2][]{\relax}
\providecommand{\cmark}[2][]{%
\begin{pgfonlayer}{marx}
\node [nmark] at (c#2#1) {#2};
\end{pgfonlayer}{marx}
}
% -------------------------------------------------
% Box styles
\tikzset{
base/.style={on chain, on grid, align=center, minimum height=0.7cm, text width=4cm, font=\sffamily, draw=none, outer sep=0},
proc/.style={base, rectangle, fill=myblue},
test/.style={base, diamond, aspect=2.5, text width=3cm, inner sep=0.2mm, fill=myyellow},
startstop/.style={proc, minimum height=4ex, fill=myred},
% Debug styles
coord/.style={coordinate, on chain, on grid, node distance=6mm and 25mm},
nmark/.style={draw, cyan, circle, font={\sffamily}},
% Line styles
arrow/.style={->, draw, black},
slabel/.style={near start, xshift=1.2em, font=\sffamily},
welabel/.style={near start, yshift=-0.8em, font=\sffamily},
}
% -------------------------------------------------
% Nodes
\node [startstop] (start) {Start};
\node [proc, join] (injection) {$\upbeta$-injection};
\node [proc, right=1cm of injection.east, anchor=west, join, text width=4cm,] (process) {Process 1 from PQ
\begin{flushleft}
$\rightarrow$ Update densities \\
$\rightarrow$ Log at barrier \\
$\rightarrow$ New part. to PQ \\
\end{flushleft}
};
\node [test, right =1cm of process.east, anchor=west, join] (empty) {PQ empty?};
\node [test] (target) {Target decays?};
\node [startstop] (end) {End};
% -------------------------------------------------
% Coordinate markers
\node [coord, above=1.8 cm of empty] (c0) {}; \cmark{0}
\node [coord, left=of target] (c1) {}; \cmark{1}
% -------------------------------------------------
% North south connectors
\path (empty.south) to node [slabel] {yes} (target);
\draw [arrow] (empty.south) -- (target);
\path (target.south) to node [slabel] {yes} (end);
\draw [arrow] (target.south) -- (end);
% -------------------------------------------------
% Complicated connectors
\path (empty.north) to node [slabel] {no} (c0);
\draw [arrow] (empty.north) -- (c0) -| (process.north);
\path (target.west) to node [welabel] {no} (c1);
\draw [arrow] (target.west) --(c1) -| (injection.south);
% Markings
\end{tikzpicture}
\end{document}