ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: \setupfooter[color=red]: red color spills with float over next page
       [not found] <mailman.0.1480849201.24823.ntg-context@ntg.nl>
@ 2016-12-04 19:07 ` Benjamin Buchmuller
  0 siblings, 0 replies; 7+ messages in thread
From: Benjamin Buchmuller @ 2016-12-04 19:07 UTC (permalink / raw)
  To: ntg-context

Hi Hans,

thank you for your help. I tried exactly as you suggested, which worked fine, but adopting for the case being with \setupfootertexts[\strut{\color[MyColor]{footers}}\strut][][][…same…] (further, footer texts change in the course of the document and call markings, page numbers etc.), I ended up with the same result as before. 

I will provide a minimal example as soon as possible next week. 

Cheers, Benjamin 

> On 4 Dec 2016, at 12:00, ntg-context-request@ntg.nl wrote:
> 
> Send ntg-context mailing list submissions to
> 	ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> 	ntg-context-request@ntg.nl
> 
> You can reach the person managing the list at
> 	ntg-context-owner@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
> 
>   1. \setupfooter[color=red]: red color spills with float	over
>      next page (Benjamin Buchmuller)
>   2. Re: \setupfooter[color=red]: red color spills with float over
>      next page (Hans Hagen)
> 
> From: Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
> Subject: [NTG-context] \setupfooter[color=red]: red color spills with float over next page
> Date: 4 December 2016 at 04:05:49 CET
> To: ntg-context@ntg.nl
> Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> 
> 
> When I have
> 
> \setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red])
> 
> and a
> 
> tex text text
> 
> % <<<< page breaks here after typesetting >>>>
> 
> \startplacefigure[
> 	%location=force, % no matter what I do here
> 	title={Caption.}
> ]
> … something …
> \stopplacefigure
> 
> other text
> 
> that is moved to the following page as first object, the entire page including the figure’s rulers, caption, and the regular text prints in red (but not bold!?) when I incorporate the file via \component … into my project, but not when I typeset from within \startcomponent … \stopcomponent.
> 
> Since “bold” does not seem to float the same way, I guess it is related to color handling at page breaks somehow.
> 
> I already tried to \setupfloats[before=\strut] to “force” black bodyfont right before the figure (at least this is what I intended to do), but did not work.
> 
> I’m sorry not to be able to provide a more elaborate minimal example asserting the exact conditionals of this behaviour at the moment as I need to hand in a report next week. Probably the footers have to go black this time.
> 
> Any suggestions?
> 
> Thank you for your help.
> 
> 
> Benjamin
> 
> 
> 
> From: Hans Hagen <pragma@wxs.nl>
> Subject: Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page
> Date: 4 December 2016 at 11:42:19 CET
> To: ntg-context@ntg.nl
> Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> 
> 
>> On 12/4/2016 4:05 AM, Benjamin Buchmuller wrote:
>> When I have
>> 
>> \setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red])
>> 
>> and a
>> 
>> tex text text
>> 
>> % <<<< page breaks here after typesetting >>>>
>> 
>> \startplacefigure[
>> 	%location=force, % no matter what I do here
>> 	title={Caption.}
>> ]
>> … something …
>> \stopplacefigure
>> 
>> other text
>> 
>> that is moved to the following page as first object, the entire page including the figure’s rulers, caption, and the regular text prints in red (but not bold!?) when I incorporate the file via \component … into my project, but not when I typeset from within \startcomponent … \stopcomponent.
>> 
>> Since “bold” does not seem to float the same way, I guess it is related to color handling at page breaks somehow.
>> 
>> I already tried to \setupfloats[before=\strut] to “force” black bodyfont right before the figure (at least this is what I intended to do), but did not work.
>> 
>> I’m sorry not to be able to provide a more elaborate minimal example asserting the exact conditionals of this behaviour at the moment as I need to hand in a report next week. Probably the footers have to go black this time.
>> 
>> Any suggestions?
> 
> not many as i really need an example
> 
> you can try
> 
> \setupfootertexts[\strut{\red foo}\strut}
> 
> instead
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* \setupfooter[color=red]: red color spills with float over next page
@ 2016-12-19 16:00 Benjamin Buchmuller
  0 siblings, 0 replies; 7+ messages in thread
From: Benjamin Buchmuller @ 2016-12-19 16:00 UTC (permalink / raw)
  To: ntg-context

Hi Hans,

the patch solves the issue. Thank you for the fast reply.

With regard to Pablo’s question: When I would not use crop in the MWE, apparently I would get the desired output indeed. However, in the situation I was using the command to produce a document, I would need to crop some parts of a figure. I should have been a little bit more clear on this, I guess.

Thanks again,


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: \setupfooter[color=red]: red color spills with float over next page
  2016-12-18 22:00 Benjamin Buchmuller
  2016-12-18 22:34 ` Pablo Rodriguez
@ 2016-12-19  9:40 ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2016-12-19  9:40 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: \setupfooter[color=red]: red color spills with float over next page
  2016-12-18 22:00 Benjamin Buchmuller
@ 2016-12-18 22:34 ` Pablo Rodriguez
  2016-12-19  9:40 ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2016-12-18 22:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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:

Hallo Benjamin,

my question may be stupid, but what happens if you don’t use \clip?

Pablo

> \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
> 
> 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
> ___________________________________________________________________________________
> 


-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* \setupfooter[color=red]: red color spills with  float over next page
@ 2016-12-18 22:00 Benjamin Buchmuller
  2016-12-18 22:34 ` Pablo Rodriguez
  2016-12-19  9:40 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Benjamin Buchmuller @ 2016-12-18 22:00 UTC (permalink / raw)
  To: ntg-context

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

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: \setupfooter[color=red]: red color spills with float over next page
  2016-12-04  3:05 Benjamin Buchmuller
@ 2016-12-04 10:42 ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2016-12-04 10:42 UTC (permalink / raw)
  To: ntg-context

On 12/4/2016 4:05 AM, Benjamin Buchmuller wrote:
> When I have
>
> \setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red])
>
> and a
>
> tex text text
>
> % <<<< page breaks here after typesetting >>>>
>
> \startplacefigure[
> 	%location=force, % no matter what I do here
> 	title={Caption.}
> ]
> … something …
> \stopplacefigure
>
> other text
>
> that is moved to the following page as first object, the entire page including the figure’s rulers, caption, and the regular text prints in red (but not bold!?) when I incorporate the file via \component … into my project, but not when I typeset from within \startcomponent … \stopcomponent.
>
> Since “bold” does not seem to float the same way, I guess it is related to color handling at page breaks somehow.
>
> I already tried to \setupfloats[before=\strut] to “force” black bodyfont right before the figure (at least this is what I intended to do), but did not work.
>
> I’m sorry not to be able to provide a more elaborate minimal example asserting the exact conditionals of this behaviour at the moment as I need to hand in a report next week. Probably the footers have to go black this time.
>
> Any suggestions?

not many as i really need an example

you can try

\setupfootertexts[\strut{\red foo}\strut}

instead

Hans

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* \setupfooter[color=red]: red color spills with float over next page
@ 2016-12-04  3:05 Benjamin Buchmuller
  2016-12-04 10:42 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Benjamin Buchmuller @ 2016-12-04  3:05 UTC (permalink / raw)
  To: ntg-context

When I have

\setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red])

and a

tex text text

% <<<< page breaks here after typesetting >>>>

\startplacefigure[
	%location=force, % no matter what I do here
	title={Caption.}
]
… something …
\stopplacefigure

other text

that is moved to the following page as first object, the entire page including the figure’s rulers, caption, and the regular text prints in red (but not bold!?) when I incorporate the file via \component … into my project, but not when I typeset from within \startcomponent … \stopcomponent.

Since “bold” does not seem to float the same way, I guess it is related to color handling at page breaks somehow.

I already tried to \setupfloats[before=\strut] to “force” black bodyfont right before the figure (at least this is what I intended to do), but did not work.

I’m sorry not to be able to provide a more elaborate minimal example asserting the exact conditionals of this behaviour at the moment as I need to hand in a report next week. Probably the footers have to go black this time.

Any suggestions?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-12-19 16:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.0.1480849201.24823.ntg-context@ntg.nl>
2016-12-04 19:07 ` \setupfooter[color=red]: red color spills with float over next page Benjamin Buchmuller
2016-12-19 16:00 Benjamin Buchmuller
  -- strict thread matches above, loose matches on Subject: below --
2016-12-18 22:00 Benjamin Buchmuller
2016-12-18 22:34 ` Pablo Rodriguez
2016-12-19  9:40 ` Hans Hagen
2016-12-04  3:05 Benjamin Buchmuller
2016-12-04 10:42 ` Hans Hagen

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).