diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-01-24 15:11:58 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-01-24 15:11:58 +0100 |
commit | b47e8c2cdeeab0bcdb1c4c32328c933f3f8599de (patch) | |
tree | 8e32282155744f2b0a812eff2fe88bbc919a70b4 /tex/context/base/mkxl/typo-ada.lmt | |
parent | 0caec226a633182402b349c3ac5b3bf9e0bc76c2 (diff) | |
download | context-b47e8c2cdeeab0bcdb1c4c32328c933f3f8599de.tar.gz |
2023-01-24 13:50:00
Diffstat (limited to 'tex/context/base/mkxl/typo-ada.lmt')
-rw-r--r-- | tex/context/base/mkxl/typo-ada.lmt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tex/context/base/mkxl/typo-ada.lmt b/tex/context/base/mkxl/typo-ada.lmt index 17e18f01e..37393ca77 100644 --- a/tex/context/base/mkxl/typo-ada.lmt +++ b/tex/context/base/mkxl/typo-ada.lmt @@ -8,7 +8,7 @@ if not modules then modules = { } end modules ['typo-adj'] = { } local setdimen = tex.setdimen -local setcount = tex.setcount +local isdimen = tex.isdimen local setmacro = tokens.setters.macro local expandmacro = token.expandmacro @@ -46,7 +46,12 @@ local adaptive = nodes.adaptive or { } nodes.adaptive = adaptive local enabled = false -local enableaction = nodes.tasks.enableaction +local enableaction = nodes.tasks.enableaction + +local d_adaptive_width = isdimen("d_adaptive_width") +local d_adaptive_height = isdimen("d_adaptive_height") +local d_adaptive_depth = isdimen("d_adaptive_depth") +local d_adaptive_line = isdimen("d_adaptive_line") function adaptive.set(settings) if not enabled then @@ -58,10 +63,10 @@ function adaptive.set(settings) end local function setadaptive(w,h,d,l,c) - setdimen("d_adaptive_width",w) - setdimen("d_adaptive_height",h) - setdimen("d_adaptive_depth",d) - setdimen("d_adaptive_line",l) + setdimen(d_adaptive_width,w) + setdimen(d_adaptive_height,h) + setdimen(d_adaptive_depth,d) + setdimen(d_adaptive_line,l) setmacro("m_adaptive_color",c) end |