From 7ce2243cc2f3d29b1398e4accb85ecd6de91999d Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 14:46:50 -0700 Subject: [PATCH 01/20] Common: add per-element flexibility for design-width --- xsl/pretext-common.xsl | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/xsl/pretext-common.xsl b/xsl/pretext-common.xsl index a264190e90..0870b84225 100644 --- a/xsl/pretext-common.xsl +++ b/xsl/pretext-common.xsl @@ -3082,31 +3082,40 @@ Book (with parts), "section" at level 3 - - - - - - + + + + + + + + + + + + + - + - + + + @@ -3118,7 +3127,7 @@ Book (with parts), "section" at level 3 - + From 08d6b11543e7ce2ddae21870bbfa77297400e07f Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 14:52:15 -0700 Subject: [PATCH 02/20] HTML: new pubvar for design-width --- xsl/publisher-variables.xsl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xsl/publisher-variables.xsl b/xsl/publisher-variables.xsl index d71fd546b2..22ee1fb1b9 100644 --- a/xsl/publisher-variables.xsl +++ b/xsl/publisher-variables.xsl @@ -1809,6 +1809,19 @@ along with PreTeXt. If not, see . + + + + + + + + + + + + + @@ -3232,6 +3245,7 @@ along with PreTeXt. If not, see . + From ffef51749ad354e7a9bf16f33cc19144ef8d43ca Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 14:52:44 -0700 Subject: [PATCH 03/20] HTML: use customizable design-width varaible --- xsl/pretext-html.xsl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 7487eb7c10..8ea9e3eeb8 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -170,12 +170,13 @@ along with MathBook XML. If not, see . - - - - - - + + + + + + + From 6b742eecaffcdfdda61dc6014ae56a36beef619e Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 15:52:44 -0700 Subject: [PATCH 04/20] HTML: expand max width on iframe standalone pages --- xsl/pretext-html.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 8ea9e3eeb8..9aac13ae78 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -6990,7 +6990,7 @@ along with MathBook XML. If not, see . -
+
From 7c201ffc495518cd0ca45cad078340065bd5ce92 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 14:55:33 -0700 Subject: [PATCH 05/20] Assembly: generate interactive-platform identifier for all interactives --- xsl/pretext-assembly.xsl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/xsl/pretext-assembly.xsl b/xsl/pretext-assembly.xsl index 3b79ace5c2..eb0bef665f 100644 --- a/xsl/pretext-assembly.xsl +++ b/xsl/pretext-assembly.xsl @@ -1799,6 +1799,28 @@ along with PreTeXt. If not, see . + + + + + + + + + + desmos + geogebra + calcplot3d + circuitjs + iframe + unknown + + + + + + + From df2da15cb1d1a80354affba08e52006c23e27e95 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 14:57:07 -0700 Subject: [PATCH 06/20] HTML: add resize-behavior pubvars for interactives and varients --- xsl/publisher-variables.xsl | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/xsl/publisher-variables.xsl b/xsl/publisher-variables.xsl index 22ee1fb1b9..2fa4a1b9d0 100644 --- a/xsl/publisher-variables.xsl +++ b/xsl/publisher-variables.xsl @@ -3293,6 +3293,39 @@ along with PreTeXt. If not, see . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c4f1ab4382050f3de49782a8c996d80f49674505 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 14:59:17 -0700 Subject: [PATCH 07/20] HTML: add get-resize-behavior templates for interactives --- xsl/pretext-html.xsl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 9aac13ae78..6486395a95 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -10507,6 +10507,33 @@ along with MathBook XML. If not, see . + + + + + + + + + + + + + + + + + + + + + + + + + + + From 0831735e30e3967b24b5330635e0b03d1794ef54 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 15:57:47 -0700 Subject: [PATCH 08/20] HTML: custom design-width handling for interactives and slates --- xsl/pretext-html.xsl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 6486395a95..04d6ce2e01 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -10507,6 +10507,30 @@ along with MathBook XML. If not, see . + + + + + + + + + + + + + + + + + + + + + + + + From e67dd0a19ac71b9a368d92c27e6133ef1ab36682 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 16:54:34 -0700 Subject: [PATCH 09/20] HTML: refactor size-pixels-style-attribute --- xsl/pretext-html.xsl | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 04d6ce2e01..1973881a3c 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -10570,24 +10570,27 @@ along with MathBook XML. If not, see . - + + + + + + + - - width: - - px; - height: - - px; - display: block; - box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; - + width: + + px; + height: + + px; + display: block; From 90e73619347968e9333bbb6bba736dc9b879452c Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 18 Aug 2025 17:08:09 -0700 Subject: [PATCH 10/20] HTML: interactives and slates use resize-behavior setting --- xsl/pretext-html.xsl | 155 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 136 insertions(+), 19 deletions(-) diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 1973881a3c..5d47203c72 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -9740,8 +9740,8 @@ along with MathBook XML. If not, see . @@ -9820,10 +9820,10 @@ along with MathBook XML. If not, see . - @@ -9857,7 +9857,7 @@ along with MathBook XML. If not, see . @@ -9891,7 +9891,7 @@ along with MathBook XML. If not, see . @@ -9914,7 +9914,7 @@ along with MathBook XML. If not, see . @@ -9923,7 +9923,7 @@ along with MathBook XML. If not, see .