summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/mlib-int.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-12-27 21:56:16 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-12-27 21:56:16 +0100
commitdb25374e65d39dc254ddce11b40ad4a95e6a385b (patch)
tree9e0c569395847f1db266ea0e80660e8680d26318 /tex/context/base/mkxl/mlib-int.lmt
parent32ca60de005df4b45e8904ab63e0e03978331c6f (diff)
downloadcontext-db25374e65d39dc254ddce11b40ad4a95e6a385b.tar.gz
2022-12-27 21:04:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-int.lmt')
-rw-r--r--tex/context/base/mkxl/mlib-int.lmt12
1 files changed, 8 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/mlib-int.lmt b/tex/context/base/mkxl/mlib-int.lmt
index ea9092611..3d71db82f 100644
--- a/tex/context/base/mkxl/mlib-int.lmt
+++ b/tex/context/base/mkxl/mlib-int.lmt
@@ -244,10 +244,14 @@ end
do
- local d_adaptive_width = isdimen("d_adaptive_width") registerdirect("AdaptiveWidth", function() return d_adaptive_width * factor end)
- local d_adaptive_height = isdimen("d_adaptive_height") registerdirect("AdaptiveHeight", function() return d_adaptive_height * factor end)
- local d_adaptive_depth = isdimen("d_adaptive_depth") registerdirect("AdaptiveDepth", function() return d_adaptive_depth * factor end)
- local d_adaptive_line = isdimen("d_adaptive_line") registerdirect("AdaptiveThickness", function() return d_adaptive_line * factor end)
+ local d_adaptive_width = isdimen("d_adaptive_width") registerdirect("AdaptiveWidth", function() return getdimen(d_adaptive_width) * factor end)
+ local d_adaptive_height = isdimen("d_adaptive_height") registerdirect("AdaptiveHeight", function() return getdimen(d_adaptive_height) * factor end)
+ local d_adaptive_depth = isdimen("d_adaptive_depth") registerdirect("AdaptiveDepth", function() return getdimen(d_adaptive_depth) * factor end)
+ local d_adaptive_line = isdimen("d_adaptive_line") registerdirect("AdaptiveThickness", function() return getdimen(d_adaptive_line) * factor end)
registerdirect("AdaptiveColor", function() return getmacro("m_adaptive_color") end)
+ registerdirect("AdaptiveTotal", function()
+ return (getdimen(d_adaptive_height) + getdimen(d_adaptive_depth)) * factor
+ end)
+
end