From: Thomas Floeren <thfl@mac.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Textbackground offset with multi-col paragraphs
Date: Thu, 02 Nov 2017 15:17:25 +0100 [thread overview]
Message-ID: <BAF069ED-52CC-4098-A4F4-31DC9C215A5B@mac.com> (raw)
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/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2017-11-02 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-02 14:17 Thomas Floeren [this message]
2017-11-02 17:55 ` Pablo Rodriguez
2017-11-02 19:22 ` Thomas Floeren
2017-11-23 11:29 ` Thomas Floeren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAF069ED-52CC-4098-A4F4-31DC9C215A5B@mac.com \
--to=thfl@mac.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).