From 87a22978d36e4f24aff2e5e928321e624e3d16ae Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 25 Dec 2025 18:36:51 +0100 Subject: [PATCH 1/5] fix: add dezi and centi for units --- assets/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/script.js b/assets/script.js index 6b03a9c..e9ab5f4 100644 --- a/assets/script.js +++ b/assets/script.js @@ -9,6 +9,8 @@ document.addEventListener("DOMContentLoaded", function() { "\\giga": "G", "\\mega": "M", "\\kilo": "k", + "\\dezi": "d", + "\\centi": "c", "\\milli": "m", "\\micro": "\\text{μ}", "\\nano": "n", From 900ddc237aba294e754f809ba8aa82cfcc0104c7 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 25 Dec 2025 19:59:36 +0100 Subject: [PATCH 2/5] feature: add \unit{} command --- build.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/build.py b/build.py index d43e22b..0392803 100644 --- a/build.py +++ b/build.py @@ -10,27 +10,27 @@ dl = download.Download(api, content_api, conf) bd = build.Build(conf) # Download the text files: -dl.download_edition("N") +# dl.download_edition("N") dl.download_edition("E") -dl.download_edition("A") +# dl.download_edition("A") dl.download_edition("NE") -dl.download_edition("EA") -dl.download_edition("NEA") +# dl.download_edition("EA") +# dl.download_edition("NEA") # Download additional files: # dl.download_question_metadata() # (now constant file metadata3b.json) -dl.download_photos() -dl.download_pictures() -dl.download_includes() -dl.download_snippets() -dl.download_content() +# dl.download_photos() +# dl.download_pictures() +# dl.download_includes() +# dl.download_snippets() +# dl.download_content() # Build Everything: bd.build_website() -bd.build_edition("N") +# bd.build_edition("N") bd.build_edition("E") -bd.build_edition("A") +# bd.build_edition("A") bd.build_edition("NE") -bd.build_edition("EA") -bd.build_edition("NEA") +# bd.build_edition("EA") +# bd.build_edition("NEA") bd.build_assets() From cd45154c60939d541586d4c87ff664b78bfef770 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 25 Dec 2025 22:37:22 +0100 Subject: [PATCH 3/5] Revert "feature: add \unit{} command" This reverts commit 900ddc237aba294e754f809ba8aa82cfcc0104c7. --- build.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/build.py b/build.py index 0392803..d43e22b 100644 --- a/build.py +++ b/build.py @@ -10,27 +10,27 @@ dl = download.Download(api, content_api, conf) bd = build.Build(conf) # Download the text files: -# dl.download_edition("N") +dl.download_edition("N") dl.download_edition("E") -# dl.download_edition("A") +dl.download_edition("A") dl.download_edition("NE") -# dl.download_edition("EA") -# dl.download_edition("NEA") +dl.download_edition("EA") +dl.download_edition("NEA") # Download additional files: # dl.download_question_metadata() # (now constant file metadata3b.json) -# dl.download_photos() -# dl.download_pictures() -# dl.download_includes() -# dl.download_snippets() -# dl.download_content() +dl.download_photos() +dl.download_pictures() +dl.download_includes() +dl.download_snippets() +dl.download_content() # Build Everything: bd.build_website() -# bd.build_edition("N") +bd.build_edition("N") bd.build_edition("E") -# bd.build_edition("A") +bd.build_edition("A") bd.build_edition("NE") -# bd.build_edition("EA") -# bd.build_edition("NEA") +bd.build_edition("EA") +bd.build_edition("NEA") bd.build_assets() From eb8f2aa91fc1e076e85c61d13cebdfb01654909e Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 25 Dec 2025 22:37:52 +0100 Subject: [PATCH 4/5] feature: add \unit{} command --- assets/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/script.js b/assets/script.js index e9ab5f4..74592bc 100644 --- a/assets/script.js +++ b/assets/script.js @@ -2,6 +2,7 @@ document.addEventListener("DOMContentLoaded", function() { var macros = { ",": (context) => context.future()?.text === " " ? "{\\char`,}" : "\\char`,", "\\qty": "{#1\\,\\mathrm{#2}}", + "\\unit": "{\\mathrm{#1}}", "\\squared": "{^{2}}", "\\cubed": "{^{3}}", "\\per": "/", From 0ce73d93dc51d94d1c77b9820936a20fd2f80113 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Fri, 26 Dec 2025 21:48:11 +0100 Subject: [PATCH 5/5] feature: add pico as unit prefix --- assets/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/script.js b/assets/script.js index 74592bc..0ec2a3b 100644 --- a/assets/script.js +++ b/assets/script.js @@ -15,6 +15,7 @@ document.addEventListener("DOMContentLoaded", function() { "\\milli": "m", "\\micro": "\\text{μ}", "\\nano": "n", + "\\pico": "p", "\\kilogram": "\\text{kg}", "\\meter": "\\text{m}", "\\second": "\\text{s}",