Textbackground offset with multi-col paragraphs
Hi, I noticed that with one of the recent betas the right offset of my textbackgrounds doesn’t work properly anymore when the textbackground contains a multi-column “paragraph”. A minimal: \defineparagraphs [TestPar][n=2, distance=7mm] \setupparagraphs [TestPar][1][width=2em] \definetextbackground [CB][ location=paragraph, backgroundcolor=gray, leftoffset=.3em, rightoffset=.3em, topoffset=.3em, bottomoffset=.3em, frame=off ] \starttext \starttextbackground [CB] \dorecurse {40} {a b c } \stoptextbackground text \starttextbackground [CB] \startTestPar img \TestPar \dorecurse {40} {a b c } \stopTestPar \stoptextbackground \stoptext The first box is OK and as expected. But with the second one (containing a “paragraph”) the right offset gets miscalculated, so that the text runs into the edge of the background. With a beta from July or so the behavior was still OK. Thanks for any advice, best, -- Tom http://dflect.net/context-typeset-tool/
On 11/02/2017 03:17 PM, Thomas Floeren wrote:
Hi,
I noticed that with one of the recent betas the right offset of my textbackgrounds doesn’t work properly anymore when the textbackground contains a multi-column “paragraph”.
The first box is OK and as expected. But with the second one (containing a “paragraph”) the right offset gets miscalculated, so that the text runs into the edge of the background.
With a beta from July or so the behavior was still OK.
Hi Thomas, I can confirm the bug. It works fine with ConTeXt from TeX Live 2017, but not with latest beta (that I get to work) from 2017.10.29 15:44. Pablo -- http://www.ousia.tk
On 2. Nov 2017, at 18:55, Pablo Rodriguez
wrote: On 11/02/2017 03:17 PM, Thomas Floeren wrote:
Hi,
I noticed that with one of the recent betas the right offset of my textbackgrounds doesn’t work properly anymore when the textbackground contains a multi-column “paragraph”.
The first box is OK and as expected. But with the second one (containing a “paragraph”) the right offset gets miscalculated, so that the text runs into the edge of the background.
With a beta from July or so the behavior was still OK.
Hi Thomas,
I can confirm the bug. It works fine with ConTeXt from TeX Live 2017, but not with latest beta (that I get to work) from 2017.10.29 15:44.
Hi Pablo, thanks for testing. For me it’s still fine with 2017.07.30 19:30. Not fine with 2017.10.29 15:44 and 2017.11.01 15:58. -- Tom
On 2. Nov 2017, at 15:17, Thomas Floeren
wrote: Hi,
I noticed that with one of the recent betas the right offset of my textbackgrounds doesn’t work properly anymore when the textbackground contains a multi-column “paragraph”.
A minimal:
\defineparagraphs [TestPar][n=2, distance=7mm] \setupparagraphs [TestPar][1][width=2em]
\definetextbackground [CB][ location=paragraph, backgroundcolor=gray, leftoffset=.3em, rightoffset=.3em, topoffset=.3em, bottomoffset=.3em, frame=off ]
\starttext
\starttextbackground [CB] \dorecurse {40} {a b c } \stoptextbackground
text
\starttextbackground [CB] \startTestPar img \TestPar \dorecurse {40} {a b c } \stopTestPar \stoptextbackground
\stoptext
The first box is OK and as expected. But with the second one (containing a “paragraph”) the right offset gets miscalculated, so that the text runs into the edge of the background.
With a beta from July or so the behavior was still OK.
Any news on this? Just to know if I should wait for a fix, or rather adapt my existing documents. Thanks, -- Tom
participants (2)
-
Pablo Rodriguez
-
Thomas Floeren