Skip to content

Commit

Permalink
Merge pull request #421 from ramink/tiks_quick_debug
Browse files Browse the repository at this point in the history
Update all flowchart arrows to "Latex" arrows
  • Loading branch information
cedounet authored Jan 7, 2025
2 parents ad4d467 + 55b6191 commit 6392b59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 38 deletions.
52 changes: 16 additions & 36 deletions book/figures/fig-starter-process.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,23 @@
\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 [thick, -{Latex}] (start_n) -- (wait_n);
\draw [thick, -{Latex}] (wait_n) -- (readycheck_n);
\draw [thick, -{Latex}] (feed_n) -- (wait_n);
\draw [thick, -{Latex}] (readycheck_n) -- node { No } (limitcheck_n);
\draw [thick, -{Latex}] (limitcheck_n) -- node (feedok_n) { No } (feed_n) ;
\draw [thick, -{Latex}] (limitcheck_n) -- node { Yes } (abort_n);
\draw [thick, -{Latex}] (readycheck_n) -- node { Yes } (final_n);
\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=4.5cm] (details1) [shape=rectangle,draw,fill=white!90!black]{
\begin{tabular}{l}
\fontsize{7}{9}\selectfont For the \emph{Initial Mixture}, mix \qty{50}{\gram} flour/\qty{50}{\gram} water. \\
\fontsize{7}{9}\selectfont The Mixture is \emph{Ready} when it has \emph{grown}, has \emph{bubbles}, and \emph{smells} vinegary/yoghurty. \\
\fontsize{7}{9}\selectfont The Mixture has \emph{Failed} when you have fed it too many (eg 10) times without success. \\
\fontsize{7}{9}\selectfont To \emph{Feed the Mixture}, discard all but \qty{10}{\gram}, mix in \qty{50}{\gram} flour and \qty{50}{\gram} water.
\end{tabular}
};
\node [below of=feedok_n, node distance=2cm, align=left] (details2) [shape=rectangle,draw,fill=white!90!black]{
\fontsize{7}{9}\selectfont For the \emph{Initial Mixture}, mix \qty{50}{\gram} flour/\qty{50}{\gram} water.\\
\fontsize{7}{9}\selectfont The Mixture is \emph{Ready} when it has
\emph{grown}, has \emph{bubbles}, and \emph{smells}
vinegary/yoghurty. \\

% Feel free to comment out and see how it looks similar to above
% \node [below of=details1, node distance=1.5cm, align=left] (details2) [shape=rectangle,draw,fill=white!90!black]{
% \fontsize{7}{9}\selectfont For the \emph{Initial Mixture}, mix
% \qty{50}{\gram} flour/\qty{50}{\gram} water.\\
% \fontsize{7}{9}\selectfont The Mixture is \emph{Ready} when it has
% \emph{grown}, has \emph{bubbles}, and \emph{smells}
% vinegary/yoghurty. \\
%
% \fontsize{7}{9}\selectfont The Mixture has \emph{Failed} when you
% have fed it too many (eg 10) times without success.\\
%
% \fontsize{7}{9}\selectfont To \emph{Feed the Mixture}, discard all but \qty{10}{\gram}, mix in \qty{50}{\gram} flour and \qty{50}{\gram} water.
% };
\fontsize{7}{9}\selectfont The Mixture has \emph{Failed} when you
have fed it too many (eg 10) times without success.\\

\node [below of=details1, node distance=2.5cm] (detailsced) [shape=rectangle,draw,fill=white!90!black]{
\begin{tabular}{@{}ll@{}}
\textbf{Initial Mixture}:& Mix \qty{50}{\gram} flour/\qty{50}{\gram} water. \\
\textbf{Feed the Mixture}:& Discard all but \qty{10}{\gram}, mix in \qty{50}{\gram} flour and \qty{50}{\gram} water\\
\textbf{Ready}:& The mixture has \emph{grown}, has \emph{bubbles}, and \emph{smells} vinegary/yoghurty. \\
\textbf{Failed}: & The mixture has been fed too many (eg 10) times without success. \\
\end{tabular}
};
\fontsize{7}{9}\selectfont To \emph{Feed the Mixture}, discard all but \qty{10}{\gram}, mix in \qty{50}{\gram} flour and \qty{50}{\gram} water.
};
\end{tikzpicture}
2 changes: 1 addition & 1 deletion book/figures/fig-stiff-starter-conversion.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
\path [line] (init) -- (feed_new_ratio);
\path [line] (feed_again) -- (feed_new_ratio);
\path [line] (next_day) -- (ready_signs);
\path [line] (ready_signs) -- node{no} (feed_again |- last_feed) |- (feed_again.south);
\path [line] (ready_signs) -- node{no} (feed_again |- last_feed) -| (feed_again.south);
\path [line] (ready_signs) -- node{yes} (last_feed);
\path [line] (last_feed) -- node{after \qtyrange{6}{12}{\hour}} (bread_dough);
\path [line] (feed_new_ratio) -- (too_dry);
Expand Down
3 changes: 2 additions & 1 deletion book/figures/flowcharts_tikz.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
\tikzstyle{fail} = [rectangle, draw=codeblack, fill=redpic, text=black,
text width=5em, text centered, rounded corners, minimum height=4em,
line width=0.4mm]
\tikzstyle{line} = [draw, -latex', thick, ->,>=to]
% The arrowed connector line between nodes
\tikzstyle{line} = [draw, thick, ->, >={Latex}]

\tikzstyle{BC} = [decorate, % Brace Calligraphic
decoration={calligraphic brace, amplitude=3mm, raise=1mm},
Expand Down

0 comments on commit 6392b59

Please sign in to comment.