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 commit dac7f8f21d.

* Revert "Make ebook the default target"

This reverts commit e92e464459.

---------

Co-authored-by: Ced <ced@sdf.org>
This commit is contained in:
Hendrik Kleinwaechter
2023-09-12 07:25:34 +02:00
committed by GitHub
parent 07edb414e1
commit 722449c5ac
6 changed files with 49 additions and 54 deletions

View File

@@ -168,7 +168,7 @@ any flour, including gluten-free options.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-process-flat-bread.tex}
\caption[Flat bread process]{The process of making a flatbread is very
\caption[The process to make a sourdough flatbread]{The process of making a flatbread is very
simple, requiring very little effort. This type of bread is especially
handy for busy bakers.}%
\label{fig:flat-bread-process}

View File

@@ -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}

View File

@@ -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}

View File

@@ -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} ]

View File

@@ -134,7 +134,7 @@ you still want some gas exchange to be possible.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-starter-process.tex}
\caption[Process for starter from scratch]{The process of making a sourdough
\caption[The full sourdough starter process]{The process of making a sourdough
starter from scratch.}%
\label{fig:sourdough-starter-process}
\end{center}
@@ -259,7 +259,7 @@ starters.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-starter-readiness.tex}
\caption[Sourdough readiness flow chart]{A flow chart showing you how to
\caption[Determining sourdough starter readiness]{A flow chart showing you how to
determine if your sourdough starter is ready to be used. For checking
readiness look at a size increase and take note of your starter's smell.
Both are important indicators to check for readiness.}%

View File

@@ -100,7 +100,7 @@ main dough.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-wheat-sourdough-starter-process.tex}
\input{figures/fig-starter-readiness.tex}
\caption[Process to prepare your starter before baking]{The process to check
your sourdough starter when making wheat-based doughs. In practice
I~frequently use a stiff sourdough starter. The stiff starter features
@@ -1114,7 +1114,7 @@ batch. It is optional if you are making a single loaf.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-dividing-preshaping.tex}
\caption[Dividing decision tree]{Dividing is only required when you are
\caption[Is dividing your dough required check]{Dividing is only required when you are
making multiple loaves in a single dough batch.}%
\label{fig:dividing-decision-tree}
\end{center}
@@ -1229,7 +1229,7 @@ your environment.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-shaping-process.tex}
\caption[Shaping process]{A schematic visualization of the shaping process
\caption[Sourdough shaping process]{A schematic visualization of the shaping process
including checks for an overfermented dough.}%
\label{fig:shaping-decision-tree}
\end{center}
@@ -1454,7 +1454,7 @@ of retarding and flavor development.
\begin{flowchart}[!htb]
\begin{center}
\input{figures/fig-proofing-process.tex}
\caption[Proofing process]{A schematic overview of the different steps of
\caption[Sourdough proofing process]{A schematic overview of the different steps of
the sourdough proofing process. The proofing technique to choose depends
on your availability and schedule.}%
\label{fig:proofing-process}