ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Setuphead issue!
@ 2024-01-09 10:17 G.C.H.M. Verhaag via ntg-context
  2024-01-09 11:45 ` [NTG-context] " Mikael Sundqvist
  2024-01-09 14:39 ` G.C.H.M. Verhaag via ntg-context
  0 siblings, 2 replies; 7+ messages in thread
From: G.C.H.M. Verhaag via ntg-context @ 2024-01-09 10:17 UTC (permalink / raw)
  To: ntg-context; +Cc: G.C.H.M. Verhaag


[-- Attachment #1.1: Type: text/plain, Size: 450 bytes --]

Hi,

I'm a bit puzzled by the mkiv /setuphead/ command of ConTeXt!

The space *before* and *after* the /subject/ command can usually be set 
by the *before* and *after* arguments of the /setuphead/ command.

Now I'd like to have _no vertical space_ before and after the header. 
I've tried just that by setting either *before=* and *after=* and 
*before=\blank[none]* and *after=\blank[none]*.

But none of these seem to work. Any idea?

Gerard

-- 

[-- Attachment #1.2: Type: text/html, Size: 951 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Setuphead issue!
  2024-01-09 10:17 [NTG-context] Setuphead issue! G.C.H.M. Verhaag via ntg-context
@ 2024-01-09 11:45 ` Mikael Sundqvist
  2024-01-09 13:43   ` G.C.H.M. Verhaag via ntg-context
  2024-01-09 14:39 ` G.C.H.M. Verhaag via ntg-context
  1 sibling, 1 reply; 7+ messages in thread
From: Mikael Sundqvist @ 2024-01-09 11:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Tue, Jan 9, 2024 at 11:30 AM G.C.H.M. Verhaag via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Hi,
>
> I'm a bit puzzled by the mkiv setuphead command of ConTeXt!
>
> The space before and after the subject command can usually be set by the before and after arguments of the setuphead command.
>
> Now I'd like to have no vertical space before and after the header. I've tried just that by setting either before= and after= and before=\blank[none] and after=\blank[none].
>
> But none of these seem to work. Any idea?
>
> Gerard

Can you give a small but complete example where this happens?

/Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Setuphead issue!
  2024-01-09 11:45 ` [NTG-context] " Mikael Sundqvist
@ 2024-01-09 13:43   ` G.C.H.M. Verhaag via ntg-context
  2024-01-09 13:48     ` Mikael Sundqvist
  2024-01-09 14:29     ` Henning Hraban Ramm
  0 siblings, 2 replies; 7+ messages in thread
From: G.C.H.M. Verhaag via ntg-context @ 2024-01-09 13:43 UTC (permalink / raw)
  To: ntg-context; +Cc: verhaaggchm

Hi,
The example below works as expected, but within my product it doesn't.

% Subject example before and after!

\setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}]

\starttext
A paragraph before calling the subject.

\subject{\sc The subject}

A paragrapf after the subject was called.
\stoptext

I use the \subject command within a columnset, could that be the problem?

Gerard
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Setuphead issue!
  2024-01-09 13:43   ` G.C.H.M. Verhaag via ntg-context
@ 2024-01-09 13:48     ` Mikael Sundqvist
  2024-01-09 14:30       ` G.C.H.M. Verhaag via ntg-context
  2024-01-09 14:29     ` Henning Hraban Ramm
  1 sibling, 1 reply; 7+ messages in thread
From: Mikael Sundqvist @ 2024-01-09 13:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Tue, Jan 9, 2024 at 2:45 PM G.C.H.M. Verhaag via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Hi,
> The example below works as expected, but within my product it doesn't.
>
> % Subject example before and after!
>
> \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}]
>
> \starttext
> A paragraph before calling the subject.
>
> \subject{\sc The subject}
>
> A paragrapf after the subject was called.
> \stoptext
>
> I use the \subject command within a columnset, could that be the problem?

Take the file that is not working. Comment out as much as possible,
but so that you still have something that gives unexpected output. A
sample file that gives correct output is not so easy to help from.

/Mikael

PS The \sc could go into the style= in the setup.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Setuphead issue!
  2024-01-09 13:43   ` G.C.H.M. Verhaag via ntg-context
  2024-01-09 13:48     ` Mikael Sundqvist
@ 2024-01-09 14:29     ` Henning Hraban Ramm
  1 sibling, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2024-01-09 14:29 UTC (permalink / raw)
  To: G.C.H.M. Verhaag via ntg-context

Am 09.01.24 um 14:43 schrieb G.C.H.M. Verhaag via ntg-context:
> Hi,
> The example below works as expected, but within my product it doesn't.
> 
> % Subject example before and after!
> 
> \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}]
> 
> \starttext
> A paragraph before calling the subject.
> 
> \subject{\sc The subject}
> 
> A paragrapf after the subject was called.
> \stoptext
> 
> I use the \subject command within a columnset, could that be the problem?

Yes, because text in column(sets)s is typeset on a grid.

Try \showgrid to visualize.

You can try to reduce the interlinespace for your headline font size like
\setupbodyfontenvironment[16pt][interlinespace=12pt]

That will get ugly as soon as your headlines need more than one line.

Look into details.pdf for more information on working with grids.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Setuphead issue!
  2024-01-09 13:48     ` Mikael Sundqvist
@ 2024-01-09 14:30       ` G.C.H.M. Verhaag via ntg-context
  0 siblings, 0 replies; 7+ messages in thread
From: G.C.H.M. Verhaag via ntg-context @ 2024-01-09 14:30 UTC (permalink / raw)
  To: ntg-context; +Cc: verhaaggchm

Hi Mikael,

Figured out that the grid=yes option in the setuplayout command caused the issue. When I set it to no/off, the problem is gone!
However, I need it because of the columnset, when I switch the grid option off than the pdf-output is totally messed up, sorry!

Gerard
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Setuphead issue!
  2024-01-09 10:17 [NTG-context] Setuphead issue! G.C.H.M. Verhaag via ntg-context
  2024-01-09 11:45 ` [NTG-context] " Mikael Sundqvist
@ 2024-01-09 14:39 ` G.C.H.M. Verhaag via ntg-context
  1 sibling, 0 replies; 7+ messages in thread
From: G.C.H.M. Verhaag via ntg-context @ 2024-01-09 14:39 UTC (permalink / raw)
  To: ntg-context; +Cc: verhaaggchm

Hi,
Thanks for all your attention and suggestions! I'll give them a try!
Gerard
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-01-09 14:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 10:17 [NTG-context] Setuphead issue! G.C.H.M. Verhaag via ntg-context
2024-01-09 11:45 ` [NTG-context] " Mikael Sundqvist
2024-01-09 13:43   ` G.C.H.M. Verhaag via ntg-context
2024-01-09 13:48     ` Mikael Sundqvist
2024-01-09 14:30       ` G.C.H.M. Verhaag via ntg-context
2024-01-09 14:29     ` Henning Hraban Ramm
2024-01-09 14:39 ` G.C.H.M. Verhaag via ntg-context

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