From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104724 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Captions with background Date: Sun, 4 Aug 2019 10:33:51 +0200 Message-ID: <1cd2bd2f-abc8-6599-38f4-42fd016009f1@xs4all.nl> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------B7DC870A688525F94BEE0AC3" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="145975"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: mailing list for ConTeXt users , Henning Hraban Ramm Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 04 10:34:24 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1huByC-000brI-LF for gctc-ntg-context-518@m.gmane.org; Sun, 04 Aug 2019 10:34:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B923E152634; Sun, 4 Aug 2019 10:33:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5cNlAAC9DcBx; Sun, 4 Aug 2019 10:33:54 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DBB33153122; Sun, 4 Aug 2019 10:33:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BF607152910 for ; Sun, 4 Aug 2019 10:33:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XNMOAqirdaPd for ; Sun, 4 Aug 2019 10:33:53 +0200 (CEST) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=213.125.29.162; helo=smtp.ziggozakelijk.nl; envelope-from=j.hagen@xs4all.nl; receiver= Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0050F152634 for ; Sun, 4 Aug 2019 10:33:52 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by smtp.ziggozakelijk.nl (SurgeMail 7.3o4) with ESMTP (TLS) id 7951-1713362 for multiple; Sun, 04 Aug 2019 10:33:52 +0200 In-Reply-To: Content-Language: en-US X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:104724 Archived-At: This is a multi-part message in MIME format. --------------B7DC870A688525F94BEE0AC3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 8/3/2019 5:22 PM, Henning Hraban Ramm wrote: > Hi, > > in my books I typeset captions onto full page images, therefore I need a background; in the attached example it’s just a white box, usually I use a MetaPost shadow (some of you helped me with that a few years ago, current code see https://wiki.contextgarden.net/Drop_shadows). > > Now, the background should just enclose the text, not more. Since I don’t know how long the caption will be (I use the whole setup in a macro), I need a \vbox within \setlayer, but that always uses the full \textwidth, regardless of width settings of \framed. > > If the caption is short, the box should be minimal. Is this possible? > > > Even better would be a textbackground just behind the text lines. > > Unfortunately my MP foo is not up to the task, the rectangular shadow was hard enough, but I’d try. > There’s an example in details.pdf, but I don’t understand how I could manipulate the path around the text (not: paragraph). > > > The example shows another problem: If you run it with --mode=arrange, the bleed is cut off. > Is this a matter of settings or a bug? > > > Greetlings, Hraban > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- --------------B7DC870A688525F94BEE0AC3 Content-Type: text/plain; charset=UTF-8; name="pages-001.tex" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pages-001.tex" XHVzZW1vZHVsZVt2aXN1YWxdDQoNClxzZXR1cHBhcGVyc2l6ZVtBNl1bQTYsb3ZlcnNpemVk XQ0KDQpcc2V0dXBsYXlvdXQNCiAgIFtsb2NhdGlvbj1taWRkbGUsDQoJbWFya2luZz1vbiwN CglncmlkPXllc10NCg0KXHNldHVwcGFnZW51bWJlcmluZw0KICBbYWx0ZXJuYXRpdmU9ZG91 Ymxlc2lkZWRdDQoNClxzdGFydHRleHQNCg0KXGRlZmluZWxheWVyDQogIFtwYWdlXQ0KICBb d2lkdGg9XHBhcGVyd2lkdGgsDQogICBoZWlnaHQ9XHBhcGVyaGVpZ2h0XQ0KDQpcZGVmaW5l bGF5ZXINCiAgW2Zvb3Rlcl0NCiAgW3dpZHRoPVx0ZXh0d2lkdGgsDQogICBoZWlnaHQ9XGZv b3RlcmhlaWdodF0NCg0KXHNldHVwYmFja2dyb3VuZHMNCiAgW3BhZ2VdDQogIFtiYWNrZ3Jv dW5kPXBhZ2UsDQogICBzdGF0ZT1zdGFydF0NCg0KXHNldHVwYmFja2dyb3VuZHMNCiAgW2Zv b3Rlcl1bdGV4dF0NCiAgW2JhY2tncm91bmQ9Zm9vdGVyLA0KICAgc3RhdGU9c3RhcnRdDQoN ClxzZXR1cGZvb3RlcltzdHJ1dD1ub10NCg0KXHVzZU1QbGlicmFyeVtkdW1dDQoNClxzaG93 ZnJhbWVbZnJhbWU9b25dDQoNClxkb3JlY3Vyc2V7MTB9IHsNCg0KICAgIHRlc3QNCg0KICAg IFxwYWdlW2xlZnRdDQoNCiAgICBcc2V0bGF5ZXINCiAgICAgIFtwYWdlXQ0KICAgICAgW3g9 LTJtbSwNCiAgICAgICB5PS0ybW0sDQogICAgICAgcHJlc2V0PWxlZnR0b3BdDQogICAgICB7 XGV4dGVybmFsZmlndXJlDQogICAgICAgICBbYm9ndXNdDQogICAgICAgICBbd2lkdGg9XGRp bWV4cHJccGFwZXJ3aWR0aCsybW0sDQogICAgICAgICAgaGVpZ2h0PVxkaW1leHByXHBhcGVy aGVpZ2h0KzRtbV0NCiAgICAgICAgIFtmcmFtZT1vbl19DQoNCiAgICBcc2V0bGF5ZXJmcmFt ZWQNCiAgICAgIFtmb290ZXJdDQogICAgICBbcHJlc2V0PWxlZnRib3R0b21dDQogICAgICBb ZnJhbWU9b2ZmLA0KICAgICAgIGFsaWduPW5vcm1hbCwNCiAgICAgICBiYWNrZ3JvdW5kPWNv bG9yLA0KICAgICAgIGJhY2tncm91bmRjb2xvcj13aGl0ZV0NCiAgICAgIHtcZmFrZXdvcmRz eyMxfXsjMX19DQoNCiAgICBccGFnZVtlbXB0eV0NCg0KICAgIHRlc3QNCg0KfQ0KDQpcc3Rv cHRleHQNCg== --------------B7DC870A688525F94BEE0AC3 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --------------B7DC870A688525F94BEE0AC3--