From 07bb0edcba7efbb71b9c60dda761b04371ad0f72 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 16 May 2026 01:20:03 +0200 Subject: [PATCH] fix(quality-house): compute WHAT-label width via pgfmath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit text width={\qfdWhatW - 0.2}cm doesn't parse — the braces don't evaluate the arithmetic, so TikZ sees "4.6 - 0.2cm" which isn't a valid dimension. Pre-compute the narrower width with \pgfmathsetmacro and reference the resulting macro instead. --- docs/quality-house.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/quality-house.md b/docs/quality-house.md index 4f7ca7f..c3225be 100644 --- a/docs/quality-house.md +++ b/docs/quality-house.md @@ -286,6 +286,9 @@ market"), not as a fair head-to-head buyer's guide. \begin{qfdhouse} % ---------- WHATs (left column) ---------- + % Box width is 0.2 cm narrower than the column so labels have 0.1 cm + % clearance on each side and don't bleed into the Weight column. + \pgfmathsetmacro{\qfdWhatTextW}{\qfdWhatW - 0.2} \foreach \r/\t in {% 1/{W1 Sub-second visible response to typing}, 2/{W2 Publishing is one deliberate action away}, @@ -302,7 +305,7 @@ market"), not as a fair head-to-head buyer's guide. 13/{W13 Typography sets a writing-tool tone}% } \node[anchor=west, font=\scriptsize, - text width={\qfdWhatW - 0.2}cm, align=left] + text width=\qfdWhatTextW cm, align=left] at ({\qfdLeftEdge + 0.1}, {-\r + 0.5}) {\t}; % ---------- Importance (raw 1-10 weight) ----------