[NTG-context] \setupfooter[color=red]: red color spills with float over next page

Hans Hagen pragma at wxs.nl
Mon Dec 19 10:40:38 CET 2016


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 at 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
-----------------------------------------------------------------


More information about the ntg-context mailing list