Fix duplicate flowchart

This combines both flowcharts into one
This commit is contained in:
Hendrik Kleinwaechter
2023-09-08 14:10:24 +02:00
parent 61af6372e0
commit 31b0841b3c
5 changed files with 40 additions and 54 deletions

View File

@@ -1,19 +1,35 @@
\begin{tikzpicture}[node distance = 3cm, auto]
\node [start] (init) {Make a starter};
\node [block, right of=init, node distance=3cm] (feed) {Feed your starter};
\path [line] (init) -- (feed);
\node [block, right of=feed, node distance=3cm] (wait_12_after_feed) {Wait\\ \qty{12}{\hour}};
\path [line] (feed) -- (wait_12_after_feed);
\node [block, right of=wait_12_after_feed, node distance=3cm] (ready_question) {Perform readiness check};
\path [line] (wait_12_after_feed) -- (ready_question);
\node [block, above of=feed, node distance=3cm] (wait_12) {Wait\\ \qty{12}{\hour}};
\path [line] (wait_12) -- (feed);
\node [decision, right of=ready_question, node distance=3.2cm] (is_bubbly) {Bubbly? Size Increase?};
\path [line] (ready_question) -- (is_bubbly);
\path [line] (is_bubbly) -- node[anchor=east, above=2pt] {no} ++(2.2,0) |- (wait_12);
\node [decision, below of=is_bubbly, node distance=4.0cm] (check_smell) {Vinegary, or yogurt smell?};
\path [line] (is_bubbly) -- node{yes} (check_smell);
\node [success, below of=wait_12_after_feed, node distance=4cm] (make_dough) {Make your dough};
\path [line] (check_smell) -- node[anchor=west, above=2pt]{yes} (make_dough);
\path [line] (check_smell) -- node[anchor=east, above=2pt] {no} ++(2.2,0) |- (wait_12);
\node [block] (init) {Make a starter};
\node [decision_start, right of=init, node distance=3.5cm] (decision_start) {Starter last fed within 3 days?};
\node [block, right of=decision_start, node distance=3.5cm] (feed_no_branch)
{Feed starter twice. \qty{48}{\hour} before and \qtyrange{6}{12}{\hour} before};
\node [block, below of=feed_no_branch, node distance=3cm] (feed_yes_branch)
{Feed starter once \qtyrange{6}{12}{\hour} before making dough};
\node [block, right of=feed_no_branch, node distance=3cm] (high_ratio)
{Use a 1:10:10 ratio. \qty{10}{\gram} starter, \qty{100}{\gram} flour, \qty{100}{\gram} water};
\node [block, right of=feed_yes_branch, node distance=3cm] (low_ratio)
{Use a 1:5:5 ratio. \qty{10}{\gram} starter, \qty{50}{\gram} flour, \qty{50}{\gram} water};
\node [block, right of=low_ratio, node distance=3cm] (check_starter)
{Check if starter is ready to be used};
\node [decision, below of=low_ratio, node distance=3cm] (size_check)
{Bubbly? Increased in size?};
\node [decision, below of=decision_start, node distance=6cm] (smell_check)
{Vinegary or yogurty smell?};
\node [success, below of=init, node distance=6cm] (make_dough)
{Prepare dough};
\path [line] (init) -- (decision_start);
\path [line] (decision_start) -- node{no} (feed_no_branch);
\path [line] (decision_start) -- node{yes} (feed_yes_branch);
\path [line] (feed_yes_branch) -- (low_ratio);
\path [line] (feed_no_branch) -- (high_ratio);
\path [line] (high_ratio) -- (check_starter);
\path [line] (low_ratio) -- (check_starter);
\path [line] (check_starter) -- (size_check);
\path [line] (size_check) -- node{no} (feed_yes_branch);
\path [line] (size_check) -- node{yes} (smell_check);
\path [line] (smell_check) -- node{no} (feed_yes_branch);
\path [line] (smell_check) -- node{yes} (make_dough);
\end{tikzpicture}