Skip to content

Commit

Permalink
Rearrange starter process flowchart
Browse files Browse the repository at this point in the history
- Added an extra state for clarity
- Made it more compact
- Added details section
  • Loading branch information
ramink authored and cedounet committed Jan 9, 2025
1 parent 1166f6d commit 2afe5cf
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
28 changes: 28 additions & 0 deletions book/figures/fig-starter-process.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,32 @@
\path [line] (decide) -- node{no} (timeout);
\path [line] (wait2) -- (feed);
\path [line] (decide) -- node{yes} (use);

\node [start, below of=discard, left of=discard] (start_n) { Start with Initial Mixture };
\node [block, right of=start_n, node distance = 3.2cm] (wait_n) { Wait\\ \qty{24}{\hour} };
\node [decision, right of=wait_n, node distance = 3.2cm] (readycheck_n) { Ready? };
\node [block, below of=wait_n, node distance = 3cm] (feed_n) { Feed the Mixture };
\node [decision, right of=feed_n, node distance = 3.2cm] (limitcheck_n) { Failed? };
\node [fail, right of=limitcheck_n, node distance = 3.2cm] (abort_n) { Discard All, Start Over };
\node [success, right of=readycheck_n, node distance = 3.2cm] (final_n) { Done };

\draw [line] (start_n) -- (wait_n);
\draw [line] (wait_n) -- (readycheck_n);
\draw [line] (feed_n) -- (wait_n);
\draw [line] (readycheck_n) -- node { No } (limitcheck_n);
\draw [line] (limitcheck_n) -- node (feedok_n) { No } (feed_n) ;
\draw [line] (limitcheck_n) -- node { Yes } (abort_n);
\draw [line] (readycheck_n) -- node { Yes } (final_n);

\node [below of=feedok_n, node distance=2cm, align=left] (details2) [shape=rectangle,draw,fill=maingray]{
For the \emph{Initial Mixture}, mix \qty{50}{\gram} flour/\qty{50}{\gram} water.\\
The Mixture is \emph{Ready} when it has
\emph{grown}, has \emph{bubbles}, and \emph{smells}
vinegary/yoghurty. \\

The Mixture has \emph{Failed} when you
have fed it too many (\eg~10) times without success.\\

To \emph{Feed the Mixture}, discard all but \qty{10}{\gram}, mix in \qty{50}{\gram} flour and \qty{50}{\gram} water.
};
\end{tikzpicture}
49 changes: 49 additions & 0 deletions book/mwe.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
\documentclass[paper=a4, twoside=false, fontsize=12pt, parskip=half,
bibliography=totoc, listof=totoc]{scrbook}

% General packages
\usepackage{pgfplots}
\usepackage{fontspec}
\usepackage[mode=match, reset-text-family=false]{siunitx}
\usepackage{fontspec}
\usepackage{calc}
\input{colors.tex}
% Define flowcharts macros independently so we can build them as png files
% for the website or something. This is supported in the makefile
\input{figures/flowcharts_tikz.tex}
% Fonts
\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX}
% Define Semi-bold
\DeclareRobustCommand\sbseries{\fontseries{sb}\selectfont}
% Fonts for accessibility
\ifdefined\isaccessible
\setmainfont{Open Sans}[
Scale=MatchLowercase]
\else
\setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc.
% TODO not available on github CI
% \setmonofont{Andale Mono}[Scale=MatchLowercase]
\fi
% Opens Sans in both case..
\setsansfont{Open Sans}[
Scale=MatchLowercase,
FontFace = {sb}{it}{* Semibold Italic},
FontFace = {sb}{n}{*-semibold}]
\usepackage{layouts}

\newcommand{\printsizes}{
Width: \printinunitsof{in}\prntlen{\textwidth}in \\
Height: \printinunitsof{in}\prntlen{\textheight}in
}

\begin{document}
\begin{figure}[!htb]
\centering
\input{figures/fig-starter-process.tex}
\caption[Dough strength over time with kneading]{A schematic visualization
of gluten development in sourdoughs with different kneading techniques.
A combination of techniques can be utilized to achieve maximum dough
strength.}%
\label{fig:dough-strength-sourdough}
\end{figure}
\end{document}

0 comments on commit 2afe5cf

Please sign in to comment.