Use input figs (#123)

* Make figs includable in main document

Remove the capability to build them as standalone document but we can
include them in the main document.  It should simplify things down the
road.

* Replace tikx pics

* Remove figures compilation from makefile

No need to compile figs to pdf anymore, at least to build the books

* Delete svg figures from ebook build

* Create png for TikZ figures

    - Add export_figures back
    - Build a pdf from the the TikZ in standalone mode
    - Change the cleanup to deal with those changes
    - Remove trailing spaces..

* Replace centering by an environment

More LaTeX idomatic

* Increase clean_figures robustness

as we use temporary tex files (.tex.in) we can't run clean_figures twice in a
row

* Center TikZ figures

Because it looks better

* Remove png building

Seems to struggle on CI with \\\b or something, we don't absolutely need
it right now so let's get rid of it.

* Remove trgt_figures dependency for pdf and ebooks

This should not be needed now that we include the TikZ directly, only
needed for png generation.

* Revert "Remove png building"

This reverts commit fdd542de57.

This is now fine to add the code back, so that it can be debugged when
times come.
This commit is contained in:
cedounet
2023-06-27 10:07:19 +01:00
committed by GitHub
parent e72d6e1771
commit 05c33a76b6
26 changed files with 102 additions and 108 deletions

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (heat_oven) {\footnotesize Heat oven to 230°C (446°F) for 30 minutes};
\node [block, right of=heat_oven, node distance=3cm] (score_dough) {\footnotesize Score your dough};
@@ -24,4 +21,3 @@
\path [line] (remove_steam) -- (build_crust);
\path [line] (build_crust) -- (finish_baking);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Bulk fermentation};
\node [block, right of=init] (check_dough) {\footnotesize Check the dough};
@@ -27,4 +24,3 @@
\path [line] (stretch_fold) -- (wait_60_minutes);
\path [line] (wait_60_minutes) -- (check_dough);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Dividing required?};
\node [decision, right of=init, node distance=5cm] (more_than_one_loaf) {\footnotesize More than 1 loaf?};
@@ -10,4 +7,3 @@
\path [line] (more_than_one_loaf) -- (yes);
\path [line] (more_than_one_loaf) -- (no);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Place water tray and stone in oven};
\node [block, right of=init] (heat_oven) {\footnotesize Heat oven to 230°C (446°F) for 30 minutes};
@@ -22,4 +19,3 @@
\path [line] (bake) -- (remove_steam);
\path [line] (remove_steam) -- (finish);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Homogenize recipe ingredients};
\node [block, right of=init, node distance=3cm] (wait1) {\footnotesize Wait 15 minutes};
@@ -30,4 +27,3 @@
\node [block, below of=dough_ball, node distance=3cm] (begin_bulk) {\footnotesize Begin bulk fermentation};
\path [line] (dough_ball) -- (begin_bulk);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Make a regular or stiff starter};
\node [block, right of=init] (feed_new_ratio) {\footnotesize Mix 1g existing starter, 5g flour and 25g water};
@@ -20,4 +17,3 @@
\path [line] (ready_signs) -- node{\footnotesize yes} (last_feed);
\path [line] (last_feed) -- node{\footnotesize after 6--12 hours} (bread_dough);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Mix ingredients};
\node [block, below of=init, node distance=3cm] (bulk_ferment) {\footnotesize Bulk ferment};
@@ -14,4 +11,3 @@
\path [line] (shape) -- (proof);
\path [line] (proof) -- (bake);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto, every node/.style={inner sep=10, outer sep=0}]
\node [block] (init) {Mix ingredients};
\node [block, right of=init, node distance=5cm] (wait) {Wait for dough to be ready};
@@ -8,4 +5,3 @@
\path [line] (init) -- (wait);
\path [line] (wait) -- (bake_bread);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [decision] (init) {\footnotesize Room temperature proofing?};
\node [decision, right of=init, node distance=9cm] (retard_bake_decision) {\footnotesize Bake in less than 10 hours from now?};
@@ -23,4 +20,3 @@
\path [line] (move_to_fridge) -- (retard);
\path [line] (retard) -- (bake);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Begin shaping};
\node [decision, right of=init, node distance=5cm] (overfermented_decision) {\footnotesize Dough overly sticky or dough tears?};
@@ -18,4 +15,3 @@
\path [line] (banneton) -- (proof);
\path [line] (overfermented) -- (loafpan);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Make your bread dough};
\node [decision, below of=init, node distance=3.5cm] (all_starter_used) {\footnotesize All starter used?};
@@ -33,4 +30,3 @@
\path [line] (dry_starter) -- (reactivate_freezer);
\path [line] (freeze_starter) -- (reactivate_freezer);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Mix 50g flour + 50g water, stir};
\node [block, right of=init, node distance=3cm] (wait1) {\footnotesize Wait 24 hours};
@@ -21,4 +18,3 @@
\path [line] (wait2) -- (feed);
\path [line] (decide) -- node{yes} (use);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Make a starter};
\node [block, right of=init, node distance=3cm] (feed) {\footnotesize Feed your starter};
@@ -20,4 +17,3 @@
\path [line] (check_smell) -- node{yes} (make_dough);
\path [line] (check_smell) -- node{no} (wait_12);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Make a regular or liquid starter};
\node [block, right of=init] (feed_new_ratio) {\footnotesize Mix 10g existing starter, 50g flour and 25g water};
@@ -26,4 +23,3 @@
\path [line] (too_dry) -- node{\footnotesize yes} (add_water);
\path [line] (ready_signs) -- node{\footnotesize yes} (last_feed);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [block] (init) {\footnotesize Ready starter};
\node [block, right of=init, node distance=3cm] (mix_ingredients) {\footnotesize Mix ingredients};
@@ -23,4 +20,3 @@
\path [line] (shape) -- (proof);
\path [line] (proof) -- (bake);
\end{tikzpicture}
\end{document}

View File

@@ -1,6 +1,3 @@
\input{./vars}
\begin{document}
\begin{tikzpicture}[node distance = 3cm, auto]
\node [decision] (init) {\footnotesize Starter last fed within 3 days?};
\node [block, right of=init, node distance=4cm] (feed_no_branch)
@@ -31,4 +28,3 @@
\path [line] (smell_check) -- node{no} (feed_yes_branch);
\path [line] (smell_check) -- node{yes} (make_dough);
\end{tikzpicture}
\end{document}