From eea69bb8546adec63688d453f8eaea4f4e7195fd Mon Sep 17 00:00:00 2001 From: Ramin Kamal <21167874+ramink@users.noreply.github.com> Date: Mon, 13 Jan 2025 09:35:40 -0800 Subject: [PATCH] Layout "Repeat 3 Times" loops in better way. --- book/figures/fig-liquid-starter-conversion.tex | 6 +++--- book/figures/fig-stiff-starter-conversion.tex | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/book/figures/fig-liquid-starter-conversion.tex b/book/figures/fig-liquid-starter-conversion.tex index bd8811c7..c758ad8b 100644 --- a/book/figures/fig-liquid-starter-conversion.tex +++ b/book/figures/fig-liquid-starter-conversion.tex @@ -11,7 +11,7 @@ \path [line] (ready_signs) -- node{No} (feed_again); \path [line] (ready_signs) -- node[above=2pt]{~Yes} (last_feed); \path [line] (last_feed) -- node{after \qtyrange{6}{12}{\hour}} (bread_dough); - % TODO: find a better way to position the Repeat 3 times text and arrow. Hard-coded values are finicky and don't work well across media. - \draw [line] ($ (feed_again.north) +(0.7cm, 1cm)$) arc (-45:220:1cm); - \node [anchor=north, text width=5em] at ($(feed_again.north west)+(1.55cm, 2.2cm)$) {Repeat 3~times}; + + \node [above of=feed_again, text width=5em, align=center, node distance=3cm] (repeat_text) {Repeat 3~times}; + \draw [line] ($(repeat_text) +(0, 1 cm)$) arc (90:420:1cm); \end{tikzpicture} diff --git a/book/figures/fig-stiff-starter-conversion.tex b/book/figures/fig-stiff-starter-conversion.tex index b37928de..fe8d3d9d 100644 --- a/book/figures/fig-stiff-starter-conversion.tex +++ b/book/figures/fig-stiff-starter-conversion.tex @@ -19,7 +19,7 @@ \path [line] (too_dry) -- node{No} (next_day); \path [line] (too_dry) -- node{Yes} (add_water); \path [line] (ready_signs) -- node{Yes} (last_feed); - % TODO: find a better way to position the Repeat 3 times text and arrow. Hard-coded values are finicky and don't work well across media. - \draw [line] ($ (feed_again.east) +(0.7cm, 0.9cm)$) arc (220:-45:1cm); - \node [anchor=north, text width=5em] at ($(feed_again.east)+(1.9cm, 2cm)$) {Repeat 3~times}; + + \node [text width=5em, align=center] (repeat_text) at ($(feed_new_ratio)!0.5!(next_day)$) {Repeat 3~times}; + \draw [line] ($(repeat_text) +(0, 1 cm)$) arc (90:-210:1cm); \end{tikzpicture}