8 Commits

Author SHA1 Message Date
ramink
2ebd254d78 Merge dba0296939 into 3e602fa71f 2025-01-23 10:40:59 +00:00
Hendrik Kleinwaechter
3e602fa71f Fix typo
Some checks are pending
Release the book and website / build-and-push-image (push) Waiting to run
Release the book and website / release-book-website (push) Blocked by required conditions
Release the book and website / invalidate-book-website-cache (push) Blocked by required conditions
2025-01-22 16:51:11 +00:00
Cedric
cbf67246e5 Add warning on future breakage
Some checks are pending
Release the book and website / build-and-push-image (push) Waiting to run
Release the book and website / release-book-website (push) Blocked by required conditions
Release the book and website / invalidate-book-website-cache (push) Blocked by required conditions
Michal will update tex4ht ditribution... this will eventually make it to
texlive then to the CI server and it will break.  Adding his comment in
the code so we know.
2025-01-22 08:20:02 +00:00
Cedric
263eb74afe Fix the chemical equation.
All credits due to @michal-h21
https://github.com/michal-h21/tex4ebook/issues/137
2025-01-22 08:20:02 +00:00
Cedric
e0b99edff6 Add latest dvisvgm drive for tex4ht
commit f1707125de2f058634523b0b3391a7c7be2d6784
Author: Michal Hoftich <michal.h21@gmail.com>
Date:   Tue Oct 29 18:12:59 2024 +0100

    use \Picture* instead of \Picture+

from:
https://github.com/michal-h21/dvisvgm4ht.git (fetch)
2025-01-22 08:20:02 +00:00
Ramin Kamal
dba0296939 Split microbial-war into two files. Restore Baker's Math Section. 2025-01-12 14:39:13 -08:00
ramink
0c3f503c5d Merge branch 'hendricius:main' into issue394_diagram_placement 2025-01-12 11:06:03 -08:00
Ramin Kamal
53c4c32acd Propose an improved layout, removing baker's math section
- Comment out Baker's math section, for now.
- Move flow chart to top of Making a Starter Section
- Move Microbe War figure to paragraph after "epic battle"
2025-01-07 14:35:37 -08:00
7 changed files with 150 additions and 32 deletions

View File

@@ -204,7 +204,7 @@ the process of alcoholic fermentation. He would prove that
yeast microorganisms are the reason for alcoholic fermentation
and not other chemical catalysts. He continued with his research and
was the first person to isolate and grow pure yeast strains.
Soon later in \num{1868} in the Fleischmann brothers Charles
Soon later in \num{1868} the Fleischmann brothers Charles
and Maximilian were the first to patent pure yeast strains
for bread making. The yeasts offered
were isolated from batches of sourdough. By \num{1879} the machinery was built

View File

@@ -0,0 +1,75 @@
% Copyright 2021-2024 by Michal Hoftich
% Copyright 2006 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.
\ProvidesFileRCS{pgfsys-dvisvgm4ht.def}
% Driver commands for tex4ht
%
% Load common pdf commands:
%
% we switched to dvisvgm driver by default. it supports patterns and other features
% dvips driver is available through the tikz+ option. It doesn't support everything,
% but it worked better with nested pictures in the past.
\ifdefined\ifOption
\ifOption{tikz+}{\input pgfsys-dvips.def}{\input pgfsys-dvisvgm.def}
\else
% load the dvips driver by default
\input pgfsys-dvisvgm.def
\fi
\catcode`\:=11%
% we must call most of these redefinitions in \AtBeginDocument, because \HLet is available
% only at that moment
\AtBeginDocument{%
% configure the output picture format to svg, as it will require dvisvgm
% post processing.
\Configure{Picture}{.svg}%
% insert picture hooks to pgfsys commands
% these redefinitions are usually called only with the \tikz command,
% they are ignored in tikzpicture environment
\def\:tempa#1{%
\texfourht@tikz@begin%
\csname o:pgfsys@typesetpicturebox:\endcsname{#1}
\texfourht@tikz@end%
}
\HLet\pgfsys@typesetpicturebox\:tempa
% we must remove Picture-alt in \pgfsys@beginpicture, because it can result in alt text included in the image
\def\:tempa{\Configure{Picture-alt}{}\texfourht@tikz@begin\o:pgfsys@beginpicture:}
\HLet\pgfsys@beginpicture\:tempa
\let\o:pgfsys@endpicture:\pgfsys@endpicture
\def\:tempa{\o:pgfsys@endpicture:}
\HLet\pgfsys@endpicture\:tempa
% start picture around TikZ and PGF environments
\ConfigureEnv{tikzpicture}{\begingroup\texfourht@tikz@begin}{\texfourht@tikz@end\endgroup}{}{}%
\ConfigureEnv{pgfpicture}{\begingroup\texfourht@tikz@begin}{\texfourht@tikz@end\endgroup}{}{}%
}
\def\texfourht@tikz@begin{
\protect\csname nested:math\endcsname% support display math
\Picture*[\csname a:Picture-alt\endcsname]{}%
}
\def\texfourht@tikz@end{\EndPicture}
\catcode`\:=12%
\endinput
%%% Local Variables:
%%% mode: latex
%%% End:

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

View File

@@ -1,6 +1,15 @@
\chapter{Making a sourdough starter}%
\label{chapter:sourdough-starter}
\begin{quoting}
\begin{figure}[!htb]
\centering
\includegraphics[width=\textwidth]{sourdough-starter-activity-indicators}
\caption[Very active sourdough]{A very active sourdough starter shown by the
bubbles in the dough.}%
\label{fig:sourdough-starter}
\end{figure}
In this chapter you will learn how to make your
own sourdough starter, but before doing so you will
quickly learn about baker's math. Don't worry,
@@ -12,6 +21,8 @@ your starter's readiness, as well as
how to prepare your starter for long-term storage.
\end{quoting}
%\iffalse
\section{Baker's math}%
\label{section:bakers-math}
@@ -80,20 +91,23 @@ hungry family arrives. You are tasked with making pasta
for \num{20} people. How would you calculate the amount of sauce
you need? You go to the internet and check a recipe and then
are completely lost when trying to scale it up.
% \fi
\section{The process of making a starter}
\begin{figure}[!htb]
\centering
\includegraphics[width=\textwidth]{sourdough-starter-activity-indicators}
\caption[Very active sourdough]{A very active sourdough starter shown by the
bubbles in the dough.}%
\label{fig:sourdough-starter}
\end{figure}
Making a sourdough starter is very easy, all you need
is a little bit of patience. It is in fact so easy that it can be summarized
in a simple flowchart~\ref{fig:sourdough-starter-process} The flour you should
in a simple flowchart~\ref{fig:sourdough-starter-process}.
\begin{flowchart}[!htb]
\centering
\input{figures/fig-starter-process.tex}
\caption[The full sourdough starter process]{The process of making a sourdough
starter from scratch.}%
\label{fig:sourdough-starter-process}
\end{flowchart}
The flour you should
use to bootstrap your starter is ideally a whole flour.
You could use whole-wheat, whole-rye, whole-spelt or
any other flour you have. In fact gluten free flours such
@@ -131,14 +145,6 @@ not airtight. You still want some gas exchange to be possible.
I~like to use a glass and place another
inverted one on top.
\begin{flowchart}[!htb]
\centering
\input{figures/fig-starter-process.tex}
\caption[The full sourdough starter process]{The process of making a sourdough
starter from scratch.}%
\label{fig:sourdough-starter-process}
\end{flowchart}
Now an epic battle begins. In one study~\cite{yeasts+biocontrol+agent}
scientists have identified more than \num{150}~different yeast species living
on a single leaf of a plant.
@@ -147,6 +153,14 @@ the upper hand in this battle. Other pathogens such as mold
are also being activated as we added water. Only the strongest
most adaptable microorganisms will survive.
\begin{figure}[!htb]
\includegraphics[width=\textwidth]{sourdough-starter-microbial-war-i}
\caption[Microbial warfare during sourdough early days]{A simple
visualization of the microbial warfare that happens during the early days of making of
a sourdough starter.}
\label{fig:sourdough-starter-microbial-war-i}
\end{figure}
By adding water to the
flour the starches start to degrade. The seedling tries to
sprout but it no longer can. Essential for this process is the
@@ -188,20 +202,6 @@ days my new starter seems to be quite alive already. This might
be due to previous contamination of flour fermenting microbes in
my kitchen.
\begin{figure}[!htb]
\includegraphics[width=\textwidth]{sourdough-starter-microbial-war}
\caption[Microbial warfare during sourdough early days]{A simple
visualization of the microbial warfare that happens during the making of
a sourdough starter. The wild spores on the plant and flour become
activated the moment flour and water is mixed. Only the most adapted
flour-fermenting microbes will survive. Because of unwanted microbial
fermentation it is advised to discard the feeding-leftovers of the first
days. The surviving yeast and bacteria continuously try to outcompete
each other for resources. New microbes have a hard time entering the
starter and are eliminated.}%
\label{fig:sourdough-starter-microbial-war}
\end{figure}
Wait for around 24~hours and observe what happens to your starter.
You might see some early signs of fermentation already. Use your nose
to smell the dough. Look for bubbles in the dough. Your dough
@@ -252,6 +252,14 @@ great option if the starter was accidentally depleted. A practical approach
is to store all discard in a single jar in the fridge, adding new discard on
top as needed and using it whenever required.}
\begin{figure}[!htb]
\includegraphics[width=\textwidth]{sourdough-starter-microbial-war-ii}
\caption[Microbial warfare during sourdough later days]{A simple
visualization of the microbial warfare that happens during the later days of making of
a sourdough starter.}
\label{fig:sourdough-starter-microbial-war-ii}
\end{figure}
You should hopefully again see some bubbles, the starter increasing
in size and/or the starter changing its smell. Some people give
up after the second or third day, because the signs might no longer

View File

@@ -19,4 +19,27 @@
font-family: 'Open Sans';
}
</style>}}
% Deal with chemical equations in a single svg
\ExplSyntaxOn
\def\standaloneenv#1{}
\pend:def\schemestart{\Picture+{}}
\append:def\CF_schemestop{\EndPicture}
\ExplSyntaxOff
\makeatletter
\def\texfourht@tikz@begin{
\protect\csname nested:math\endcsname% support display math
\Picture+[\csname a:Picture-alt\endcsname]{}%
}
\makeatother
% Warnig from Michal: Note that once you get the updated TeX Live with a new
% `chemfig.4ht` file, you can remove this from the config file:
%
%```latex \pend:def\schemestart{\Picture+{}}
%\append:def\CF_schemestop{\EndPicture} ```
%
%You could get an error otherwise, as there would be nested `\Picture+{}` and
%`\EndPicture` commands.
\EndPreamble

View File

@@ -47,5 +47,17 @@
}
\ConfigureToc{loc}{\HCode{<span class="lofToc">}}{\ }{}{\HCode{</span><br />}}
\ExplSyntaxOn
\def\standaloneenv#1{}
\pend:def\schemestart{\Picture+{}}
\append:def\CF_schemestop{\EndPicture}
\ExplSyntaxOff
\makeatletter
\def\texfourht@tikz@begin{
\protect\csname nested:math\endcsname% support display math
\Picture+[\csname a:Picture-alt\endcsname]{}%
}
\makeatother
\begin{document}
\EndPreamble