Re: [NTG-context] avoid space after title

2017-08-17 Thread Henning Hraban Ramm
Am 2017-08-16 um 18:50 schrieb Wolfgang Schuster :

> Play with the grid key for \setuphead.
> 
> \setuphead[section][page=no,before=,after=,grid=box]

That does the trick for me. Thank you very much!

(It doesn’t kill all the space, but the result is what I actually needed.)

Thanks for the other suggestions!

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

Re: [NTG-context] avoid space after title

2017-08-16 Thread Wolfgang Schuster

Play with the grid key for \setuphead.

\setuphead[section][page=no,before=,after=,grid=box]

Wolfgang

Henning Hraban Ramm 
15. August 2017 um 18:18
I’d like to get rid of the blank line after section titles in grid 
mode. How?


\setuplayout[grid=yes,]
\setuphead[section][page=no,before={},after={}]

\starttext

\startchapter[title={Authors}]

\startsection[title={Knuth}]
\input knuth
\stopsection

\startsection[title={Tufte}]
\input tufte
\stopsection

\startsection[title={Hawking}]
\input hawking
\stopsection

\startsection[title={Zapf}]
\input zapf
\stopsection

\stopchapter

\stoptext



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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


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

Re: [NTG-context] avoid space after title

2017-08-16 Thread Peter Münster
On Wed, Aug 16 2017, Henning Hraban Ramm wrote:

>> I’d like to get rid of the blank line after section titles in grid mode. How?
>> 
>> \setuplayout[grid=yes,]
>> \setuphead[section][page=no,before={},after={}]

Sorry, no real solution, just a workaround:

\setuphead[section][page=no,before={},after=\vskip-\lineheight]

-- 
   Peter
___
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
___

Re: [NTG-context] avoid space after title

2017-08-16 Thread Rik Kabel

On 2017-08-16 12:20, Pablo Rodriguez wrote:

On 08/16/2017 05:48 PM, Henning Hraban Ramm wrote:

Please, this is quite urgent. No hints?

Am 2017-08-15 um 18:18 schrieb Henning Hraban Ramm:

I’d like to get rid of the blank line after section titles in grid
mode. How?

Hi Hraban,

I checked it yesterday, but I didn’t found a solution.

All I can say is that if grid is enabled, (at least) a blank line before
and after \section is added. See yourself:

 \showgrid
 \setuplayout[grid=yes,]
 \setuphead[section][page=no,before=,after=]

 \starttext

 \startchapter[title={Authors}]

 \startsection[title={Knuth}]
 \input knuth
 \stopsection

 \startsection[title={Tufte}]
 \input tufte
 \stopsection

 \setuphead[section]
 [before={\blackrule[width=\textwidth,color=green,
   height=\lineheight]},
 after={\blackrule[width=\textwidth,color=red, height=\lineheight]}]

 \startsection[title={Hawking}]
 \input hawking
 \stopsection

 \startsection[title={Zapf}]
 \input zapf
 \stopsection

 \stopchapter

 \stoptext

I would say this might be a bug. But someone with more ConTeXt knowledge
should confirm my assumption.

Sorry for not providing actual help,

Pablo


Well, for this example you can do it with a simple hack:

   \setuphead[section][page=no,before={},after={\blank[-1*line]}]

You will have to test how that works for you in a more complex document.

--
Rik

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

Re: [NTG-context] avoid space after title

2017-08-16 Thread Pablo Rodriguez
On 08/16/2017 05:48 PM, Henning Hraban Ramm wrote:
> Please, this is quite urgent. No hints?
> 
> Am 2017-08-15 um 18:18 schrieb Henning Hraban Ramm:
>> I’d like to get rid of the blank line after section titles in grid
>> mode. How?

Hi Hraban,

I checked it yesterday, but I didn’t found a solution.

All I can say is that if grid is enabled, (at least) a blank line before
and after \section is added. See yourself:

\showgrid
\setuplayout[grid=yes,]
\setuphead[section][page=no,before=,after=]

\starttext

\startchapter[title={Authors}]

\startsection[title={Knuth}]
\input knuth
\stopsection

\startsection[title={Tufte}]
\input tufte
\stopsection

\setuphead[section]
[before={\blackrule[width=\textwidth,color=green,
  height=\lineheight]},
after={\blackrule[width=\textwidth,color=red, height=\lineheight]}]

\startsection[title={Hawking}]
\input hawking
\stopsection

\startsection[title={Zapf}]
\input zapf
\stopsection

\stopchapter

\stoptext

I would say this might be a bug. But someone with more ConTeXt knowledge
should confirm my assumption.

Sorry for not providing actual help,

Pablo
-- 
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
___

Re: [NTG-context] avoid space after title

2017-08-16 Thread Henning Hraban Ramm
Please, this is quite urgent. No hints?

Am 2017-08-15 um 18:18 schrieb Henning Hraban Ramm :

> I’d like to get rid of the blank line after section titles in grid mode. How?
> 
> \setuplayout[grid=yes,]
> \setuphead[section][page=no,before={},after={}]
> 
> \starttext
> 
> \startchapter[title={Authors}]
> 
> \startsection[title={Knuth}]
> \input knuth
> \stopsection
> 
> \startsection[title={Tufte}]
> \input tufte
> \stopsection
> 
> \startsection[title={Hawking}]
> \input hawking
> \stopsection
> 
> \startsection[title={Zapf}]
> \input zapf
> \stopsection
> 
> \stopchapter
> 
> \stoptext
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD

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

[NTG-context] avoid space after title

2017-08-15 Thread Henning Hraban Ramm
I’d like to get rid of the blank line after section titles in grid mode. How?

\setuplayout[grid=yes,]
\setuphead[section][page=no,before={},after={}]

\starttext

\startchapter[title={Authors}]

\startsection[title={Knuth}]
\input knuth
\stopsection

\startsection[title={Tufte}]
\input tufte
\stopsection

\startsection[title={Hawking}]
\input hawking
\stopsection

\startsection[title={Zapf}]
\input zapf
\stopsection

\stopchapter

\stoptext



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

Re: [NTG-context] a space after title

2010-05-15 Thread Peter Münster
On Fri, May 14 2010, Marius wrote:

 Thank you, Peter, but there those options come from? I can't find
 distance option here:

I've just guessed... ;)
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] a space after title

2010-05-14 Thread Marius
Hello,

There is too big spacing after subsubject in the test3.pdf file. How
to get rid of it?

Thanks,
Marius


test3.tex
Description: TeX document


test3.pdf
Description: Adobe PDF document
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a space after title

2010-05-14 Thread Peter Münster
On Fri, May 14 2010, Marius wrote:

 There is too big spacing after subsubject in the test3.pdf file. How
 to get rid of it?

 \setuphead [subsection] [alternative=text]

\setuphead [subsection] [alternative=text, distance=0pt]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a space after title

2010-05-14 Thread Marius
Thank you, Peter, but there those options come from? I can't find
distance option here:
http://www.pragma-ade.com/general/qrcs/setup-en.pdf and here
http://wiki.contextgarden.net/Reference/en/setuphead too.

Maybe, there is some logic behind some options, they just apply
globaly or something similar?

On Fri, May 14, 2010 at 10:36 PM, Peter Münster pmli...@free.fr wrote:
 On Fri, May 14 2010, Marius wrote:

 There is too big spacing after subsubject in the test3.pdf file. How
 to get rid of it?

 \setuphead [subsection] [alternative=text]

 \setuphead [subsection] [alternative=text, distance=0pt]

 Cheers, Peter

 --
 Contact information: http://pmrb.free.fr/contact/


 ___
 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  : http://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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___