diff --git a/book/booklet.tex b/book/booklet.tex deleted file mode 100644 index e6c8f00..0000000 --- a/book/booklet.tex +++ /dev/null @@ -1,174 +0,0 @@ -\documentclass[paper=a4, twoside=false, fontsize=12pt]{scrbook} - -% General packages -\usepackage{sourdough} -\usepackage[ - paperwidth=210mm, - paperheight=260mm, - top=10mm, - bottom=80mm, - inner=10mm, - outer=10mm, - marginparsep=7mm, - marginparwidth=48mm, -]{geometry} -\usepackage{subcaption} - -\pagenumbering{gobble} -% Basic attributes -\author{Hendrik Kleinwächter} -\title{The Sourdough Framework\\\texttt{tl;dr Booklet Version}} -\begin{document} -\maketitle - -\section*{Sourdough starter} -\begin{flowchart}[!htb] - \centering - \input{figures/fig-starter-process.tex} - \caption*{How to setup a sourdough starter} -\end{flowchart} - -\begin{flowchart}[!htb] - \centering - \input{figures/fig-starter-readiness.tex} - \caption*{Preparing your starter for baking} -\end{flowchart} - -\begin{flowchart}[!htb] - \centering - \input{figures/fig-starter-maintenance.tex} - \caption*{Maintaining your starter, change ratio as per starter hydration - type} -\end{flowchart} - -\clearpage{} -\section*{Baker's math} -\begin{table}[!htb] - \centering - \input{tables/table-bakers-math-example.tex} - \caption*{An example table demonstrating how to properly calculate using - baker's math. All the ingredients are calculated as a percentage of the -flour quantity.} -\end{table} - -\section*{Basic recipes} -\subsection*{Flat bread} -\input{recipes/flat-bread.tex} -\clearpage{} - -\subsection*{Freestanding \& sandwich wheat-based breads} -\begin{table}[!htb] -\centering - \begin{tabular}{@{}lrrrp{0.4\linewidth}@{}} - \toprule - \thead{Ingredient}& & \thead{Percentage} & \thead{Calculation} & \thead{Comments} \\ \midrule - Flour & \qty{400}{g} & & & \\ - Whole-wheat flour & \qty{100}{g} & & & \\ - Total flour & & \qty{100}{\percent} & \qty{500}{g} & \\ - Water & & \qty{60}{\percent} & \qty{300}{g} & \\ - Sourdough starter & & \qty{10}{\percent} & \qty{50}{g} & \\ - Salt & & \qty{2}{\percent} & \qty{10}{g} & \\ \midrule - Flour & & \qty{100}{\percent} & & \\ - Water & & & & \\ - Sourdough starter & & & & \\ - Salt & & & & \\ \midrule - Flour & & & & \\ - & & & & \\ - & & & & \\ - & & & & \\ - & & & & \\ \bottomrule - \end{tabular} -\caption*{Table for your own calculation using baker's math} -\end{table} - -\begin{flowchart}[!htb] - \centering - \input{figures/fig-wheat-sourdough-process.tex} - \caption*{The whole process of making wheat based sourdough breads} -\end{flowchart} - -\begin{flowchart}[!htb] - \centering - \input{figures/fig-kneading-process.tex} - \caption*{The kneading process to create dough strength} -\end{flowchart} - -\begin{flowchart}[!htb] - \centering - \input{figures/fig-bulk-fermentation.tex} - \caption*{How to properly manage bulk fermentation} -\end{flowchart} - -\begin{figure*}[!htb] - \centering - \includegraphics[width=\textwidth]{stretch-and-fold-steps} - \caption*{An overview of the steps involved to perform stretch and folds for - wheat-based doughs. They are optional and should only be done when the dough -flattened out a lot.}% -\end{figure*} -\clearpage{} - -\section*{Shaping} - -\begin{figure*}[!htb] -\centering - \begin{subfigure}{.475\linewidth} - \includegraphics[width=\linewidth]{preshape-direction} - \caption*{Preshaping: Drag the dough in the direction of the rough - surface area.}% - \end{subfigure} - \begin{subfigure}{.475\linewidth} - \includegraphics[width=\linewidth]{step-1-flour-applied} - \caption*{Step 1: Apply flour to the dough's surface.}% - \end{subfigure}\hfill % <-- "\hfill" - \medskip % create some *vertical* separation between the graphs - \begin{subfigure}{.475\linewidth} - \includegraphics[width=\linewidth]{step-2-flipped-over} - \caption*{Step 2: Flipp-over dough. Note how the sticky side is facing - you while the floured side is facing the countertop.} - \end{subfigure}\hfill % <-- "\hfill" - \begin{subfigure}{.475\linewidth} - \includegraphics[width=\linewidth]{step-3-rectangular} - \caption*{Step 3: Make the dough rectangular, keep the sticky side - facing you while the floured side is facing the countertop.}% - \end{subfigure} - \caption*{First steps of shaping process} -\end{figure*} - -\begin{figure*}[htb!] - \centering - \includegraphics[width=\textwidth]{step-4-folding} - \caption*{Step 4: The process of folding a batard. Note how the rectangle - is first glued together and then rolled inwards to create a dough roll. - Ultimately the edges are sealed to create a more uniform dough.}% -\end{figure*} -\clearpage{} - -\section*{Proofing} -\begin{flowchart}[!htb] - \centering - \input{figures/fig-proofing-process.tex} -\end{flowchart} -\clearpage{} - -\section*{Baking} -\begin{flowchart}[!htb] - \centering - \input{figures/fig-baking-process.tex} - \caption*{Summary of different bread baking processes} -\end{flowchart} - - -\begin{flowchart}[!htb] - \centering - \input{figures/fig-inverted-tray-method.tex} - \caption*{Baking with the inverted tray method} -\end{flowchart} - -\begin{flowchart*}[!htb] - \centering - \input{figures/fig-dutch-oven-process.tex} - \caption*{Baking with a Dutch Oven} -\end{flowchart*} -\clearpage{} -\end{document} diff --git a/book/makefile b/book/makefile index e99abc3..6be1230 100644 --- a/book/makefile +++ b/book/makefile @@ -84,11 +84,6 @@ website_assets := $(wildcard ../website/assets/*) ruby_src := ../website/modify_build.rb $(website_assets) ruby_pkg := ../website/Gemfile ../website/Gemfile.lock -# This is more than what is actually needed but keeps the makefile simple -booklet_src := $(src_figures) $(src_tables) $(src_recipes) $(images) -booklet_src += booklet.tex -# }}} - # Flowcharts {{{ # TODO: check if it works on github CI %.png: %.tex @@ -113,12 +108,6 @@ book_serif/book.pdf: $(src_all) book_sans_serif/book_sans_serif.pdf: $(src_all) $(LATEX) -output-directory=book_sans_serif book_sans_serif.tex - -# We don't want to use latexmk as there is no biber nor references and it -# seems to make it somehow unhappy -booklet/booklet.pdf: $(booklet_src) - mkdir -p booklet - lualatex --output-directory=booklet booklet.tex # }}} # Ebook {{{ @@ -199,11 +188,10 @@ export_figures: pdf $(tgt_figures) all: bake # Finally actual project targets (i.e. build pdf and ebooks) -.PHONY: pdf booklet serif sans_serif ebook +.PHONY: pdf serif sans_serif ebook pdf: serif sans_serif -booklet: booklet/booklet.pdf serif: book_serif/book.pdf sans_serif: book_sans_serif/book_sans_serif.pdf @@ -213,7 +201,6 @@ low_res_ebook: epub/low_res_book.epub # We keep the old target names for backward compatibility build_pdf: pdf -build_booklet: booklet build_serif_pdf: serif build_sans_serif_pdf: sans_serif build_ebook: ebook @@ -222,7 +209,7 @@ build_low_res_ebook: low_res_ebook # top level releases rules .PHONY: bake release_serif release_sans_serif -bake: release_serif release_sans_serif release_booklet website +bake: release_serif release_sans_serif website release: mkdir -p release @@ -239,9 +226,6 @@ release_serif: serif ebook bw_ebook low_res_ebook | release release_sans_serif: sans_serif | release cp book_sans_serif/book_sans_serif.pdf release/TheBreadCode-The-Sourdough-Framework-sans-serif.pdf - -release_booklet: booklet | release - cp booklet/booklet.pdf release/TheBreadCode-The-Sourdough-Framework-booklet.pdf # }}} # Clean up {{{ @@ -274,20 +258,17 @@ clean_website_build: clean: clean_ebook_build clean_figures clean_website_build $(CLEAN) -output-directory=book_serif book.tex $(CLEAN) -output-directory=book_sans_serif book_sans_serif.tex - $(CLEAN) -output-directory=booklet booklet.tex -rm book*/*.{bbl,loc,run.xml} mrproper: clean $(CLEAN) -C $(src_figures) $(CLEAN) -C -output-directory=book_serif book.tex $(CLEAN) -C -output-directory=book_sans_serif book_sans_serif.tex - $(CLEAN) -C -output-directory=booklet booklet.tex -rm figures/*.png -rm -rf epub/ -rm -rf release/ -rm -rf book_serif/ -rm -rf book_sans_serif/ - -rm -rf booklet/ -rm -rf *book-epub/ -rm -rf epub_build/ -rm -rf website_build/ @@ -338,7 +319,6 @@ help: @echo "Quick builds:" @echo " quick: compiles serif_pdf but runs lulatex only once" @echo " quick_ebook: compiles ebook but runs lulatex only once" - @echo " quick_booklet: compiles booklet but runs lulatex only once" @echo "" @echo "Checks:" @echo " tex-check: runs static analysis checker on LaTeX source to spot" @@ -383,9 +363,6 @@ spell-check: $(src_tex) spelling_exceptions.txt quick: # run latex only once no biber, no references etc... $(LATEX) -e '$$max_repeat=1' -halt-on-error -output-directory=book_serif book.tex -quick_booklet: - $(LATEX) -e '$$max_repeat=1' -halt-on-error -output-directory=booklet booklet.tex - quick_ebook: cover/cover-page.xbb # run latex only once no biber, ref etc... $(EBOOK) --mode draft book.tex diff --git a/makefile b/makefile index 30ad878..23b31df 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ DOCKER_CMD := docker run --rm -it -v $(PWD):/opt/repo --platform linux/x86_64 $( .PHONY: bake build_pdf build_docker_image push_docker_image validate website .PHONY: print_os_version start_shell printvars show_tools_version mrproper -.PHONY: build_serif_pdf build_ebook booklet +.PHONY: build_serif_pdf build_ebook # Dockers targets build_docker_image: @@ -30,9 +30,6 @@ bake: website: $(DOCKER_CMD) "cd /opt/repo/book && make website" -booklet: - $(DOCKER_CMD) "cd /opt/repo/book && make booklet" - mrproper: $(DOCKER_CMD) "cd /opt/repo/book && make mrproper"