diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-08-25 17:57:42 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-08-25 17:57:42 +0200 |
commit | a389a16197fed7803672a8e16fd31d634725d49a (patch) | |
tree | ff79e88e68f213d0a226f57caa23809e720d3c5c /tex/context/base/mkxl/typo-lin.lmt | |
parent | 178de9556e3cb519672f9b54db7b5b29eec43c69 (diff) | |
download | context-a389a16197fed7803672a8e16fd31d634725d49a.tar.gz |
2022-08-25 17:40:00
Diffstat (limited to 'tex/context/base/mkxl/typo-lin.lmt')
-rw-r--r-- | tex/context/base/mkxl/typo-lin.lmt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/typo-lin.lmt b/tex/context/base/mkxl/typo-lin.lmt index 783faeabf..0824a8079 100644 --- a/tex/context/base/mkxl/typo-lin.lmt +++ b/tex/context/base/mkxl/typo-lin.lmt @@ -144,7 +144,7 @@ local function finalize(prop,key) -- delayed calculations end local function normalize(line,islocal) -- assumes prestine lines, nothing pre/appended - local prop = getnormalizedline(line) -- we also can have "lineproperties" set but for a different porpose + local prop = getnormalizedline(line) -- we also can have "lineproperties" set but for a different purpose local width = getwidth(line) local hsize = islocal and width or tex.hsize noflines = noflines + 1 @@ -214,6 +214,12 @@ local function addtoline(n,list,option) delta = line.lefthangskip + line.leftskip end end + + -- this is a quick hack for line numbering in aligned math but maybe we need + -- a signal in the properties: if getprops(n,"repositioned") + local xoffset = nuts.getoffsets(n) + delta = delta - xoffset + -- always kerns, also when 0 so that we can adapt but we can optimize if needed -- by keeping a hash as long as we use the shiftinline helper .. no need to -- optimize now .. we can also decide to put each blob in a hlist |