mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2026-03-22 04:47:16 -05:00
Fix duplicate flowchart (#222)
* Fix duplicate flowchart This combines both flowcharts into one * Start on pink for starter readiness flowchart * Add braces to TikZ flowcharts * Rewired flowchart with right-angled transitions * Change Arrows from right-angled to star connected As I could not really find a way not to have diagonal arrows... I decided to embrace it instead. YMMV * Homogenize box sizes * Align on unit inside the flowchart node * Fix code typo in starter readiness flowchart * Create a MWE showing (known) ebook issues Those issues are: - Temp in flowchart - No front image - Chemical formula - No list of flowcharts - Weird looking table Also test fonts, accents, etc.. seems ok. * Make ebook the default target * Revert "Create a MWE showing (known) ebook issues" This reverts commitdac7f8f21d. * Revert "Make ebook the default target" This reverts commite92e464459. --------- Co-authored-by: Ced <ced@sdf.org>
This commit is contained in:
committed by
GitHub
parent
07edb414e1
commit
722449c5ac
@@ -1,19 +1,40 @@
|
||||
\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 [decision, right of=init, node distance=3.5cm] (decision_start) {Starter last fed within 3~days?};
|
||||
\node [block, right of=decision_start, text width=7em, node distance=4cm] (feed_no_branch)
|
||||
{Feed starter twice:\par \qty{48}{\hour} before\par \qtyrange{6}{12}{\hour} before};
|
||||
\node [block, below of=feed_no_branch, text width=7em, node distance=2.7cm] (feed_yes_branch)
|
||||
{Feed starter \qtyrange{6}{12}{\hour} before making dough.};
|
||||
\node [block, right of=feed_no_branch, text width=7em, node distance=4cm] (high_ratio)
|
||||
{Use a 1:10:10 ratio:\par \begin{tabular}{r@{}l}
|
||||
10&~g starter,\\
|
||||
100&~g flour, \\
|
||||
100&~g water.\end{tabular}};
|
||||
\node [block, right of=feed_yes_branch, text width=7em, node distance=4cm] (low_ratio)
|
||||
{Use a 1:5:5 ratio:\par \begin{tabular}{r@{}l}
|
||||
10&~g starter,\\
|
||||
50&~g flour, \\
|
||||
50&~g water.\end{tabular}};
|
||||
\node [decision, below of=high_ratio, node distance=6cm] (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[below=2pt]{yes} (feed_yes_branch.north west);
|
||||
\path [line] (feed_yes_branch) -- (low_ratio);
|
||||
\path [line] (feed_no_branch) -- (high_ratio);
|
||||
\path [line] (high_ratio) -- node[anchor=east, above=2pt] {} ++(2.2,0) |-(size_check);
|
||||
\path [line] (low_ratio) -- (size_check);
|
||||
\path [line] (size_check) -- node{no} (feed_yes_branch.south east);
|
||||
\path [line] (size_check) -- node{yes} (smell_check);
|
||||
\path [line] (smell_check) -- node{no} (feed_yes_branch.south west);
|
||||
\path [line] (smell_check) -- node{yes} (make_dough);
|
||||
|
||||
% braces
|
||||
\draw[BC] (size_check.south) --
|
||||
node[below=1em]{Check if starter is ready to be used}(smell_check.south);
|
||||
\end{tikzpicture}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
\begin{tikzpicture}[node distance = 3cm, auto]
|
||||
\node [decision_start] (init) {Starter last fed within 3 days?};
|
||||
\node [block, right of=init, node distance=4cm] (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=6cm] (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, below of=high_ratio, node distance=6cm] (check_starter)
|
||||
{Check if starter is ready to be used};
|
||||
\node [decision, below of=init, node distance=6cm] (size_check)
|
||||
{Bubbly? Increased in size?};
|
||||
\node [decision, below of=size_check, node distance=5cm] (smell_check)
|
||||
{Vinegary or yogurty smell?};
|
||||
\node [success, right of=smell_check, node distance=6cm] (make_dough)
|
||||
{Prepare dough};
|
||||
\path [line] (init) -- node{no} (feed_no_branch);
|
||||
\path [line] (init) -- 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}
|
||||
@@ -1,5 +1,5 @@
|
||||
\tikzstyle{every picture}+=[font=\footnotesize\sffamily]
|
||||
\usetikzlibrary{shapes,arrows}
|
||||
\usetikzlibrary{shapes, arrows, decorations.pathreplacing,calligraphy, calligraphy}
|
||||
\tikzstyle{decision} = [diamond, draw=codeblack, fill=codeblack, text=white,
|
||||
text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt,
|
||||
line width=2mm]
|
||||
@@ -19,3 +19,7 @@
|
||||
text width=5em, text centered, rounded corners, minimum height=4em,
|
||||
line width=0.4mm]
|
||||
\tikzstyle{line} = [draw, -latex', thick, ->,>=to]
|
||||
|
||||
\tikzstyle{BC} = [decorate, % Brace Calligraphic
|
||||
decoration={calligraphic brace, amplitude=3mm, raise=1mm},
|
||||
very thick, pen colour={black} ]
|
||||
|
||||
Reference in New Issue
Block a user