ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: \setupfooter[color=red]: red color spills with float over next page
Date: Mon, 19 Dec 2016 10:40:38 +0100	[thread overview]
Message-ID: <e11288e4-a083-9ffd-4f24-e25bc0e3201f@wxs.nl> (raw)
In-Reply-To: <D5246B2B-EBB8-4304-8A6D-5FAC96428C7D@gmail.com>

On 12/18/2016 11:00 PM, Benjamin Buchmuller wrote:
> Hi Hans,
>
> I finally managed to make a MWE. The issue is related to me using \clip{…} onto external figures I would like to crop in conjunction with a colored footer set-up:
>
> \starttext
>
> \setupfooter[color=red]
> 	
> \setupfootertexts
> 		[]
> 		[]
> 		[any text] % issue related to put something in footer ...
> 		[]
>
> \input knuth
>
> \input knuth
>
> \input knuth
>
> % … and moving to the top of the next page
>
> \startplacefigure
> 	[
> 	width=fit,
> 	title={
> \input bryson
> 	},
> 	]
> 	\clip[height=7.0cm]{ % issue related to clip
> 	\externalfigure[fig_4.jpg][height=7.0cm, width=\textwidth]
> 	}
> \stopplacefigure
>
> \stoptext

in back-pdf.mkiv you can patch this:

\unexpanded\def\dostartclipping#1#2#3%
   {\forcecolorhack % add this
    \PointsToBigPoints{#2}\width
    \PointsToBigPoints{#3}\height

and run

context --make

> Thank you for your help.
>
>
> Benjamin
> ___________________________________________________________________________________
> 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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2016-12-19  9:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-18 22:00 Benjamin Buchmuller
2016-12-18 22:34 ` Pablo Rodriguez
2016-12-19  9:40 ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-12-19 16:00 Benjamin Buchmuller
     [not found] <mailman.0.1480849201.24823.ntg-context@ntg.nl>
2016-12-04 19:07 ` Benjamin Buchmuller
2016-12-04  3:05 Benjamin Buchmuller
2016-12-04 10:42 ` Hans Hagen

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=e11288e4-a083-9ffd-4f24-e25bc0e3201f@wxs.nl \
    --to=pragma@wxs.nl \
    --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).