ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* avoid space after title
@ 2017-08-15 16:18 Henning Hraban Ramm
  2017-08-16 15:48 ` Henning Hraban Ramm
  2017-08-16 16:50 ` Wolfgang Schuster
  0 siblings, 2 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-08-15 16:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: avoid space after title
  2017-08-15 16:18 avoid space after title Henning Hraban Ramm
@ 2017-08-16 15:48 ` Henning Hraban Ramm
  2017-08-16 16:20   ` Pablo Rodriguez
  2017-08-16 16:37   ` Peter Münster
  2017-08-16 16:50 ` Wolfgang Schuster
  1 sibling, 2 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-08-16 15:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Please, this is quite urgent. No hints?

Am 2017-08-15 um 18:18 schrieb Henning Hraban Ramm <texml@fiee.net>:

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

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

* Re: avoid space after title
  2017-08-16 15:48 ` Henning Hraban Ramm
@ 2017-08-16 16:20   ` Pablo Rodriguez
  2017-08-16 16:35     ` Rik Kabel
  2017-08-16 16:37   ` Peter Münster
  1 sibling, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-16 16:20 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: avoid space after title
  2017-08-16 16:20   ` Pablo Rodriguez
@ 2017-08-16 16:35     ` Rik Kabel
  0 siblings, 0 replies; 7+ messages in thread
From: Rik Kabel @ 2017-08-16 16:35 UTC (permalink / raw)
  To: ntg-context


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

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


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

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

___________________________________________________________________________________
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: avoid space after title
  2017-08-16 15:48 ` Henning Hraban Ramm
  2017-08-16 16:20   ` Pablo Rodriguez
@ 2017-08-16 16:37   ` Peter Münster
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Münster @ 2017-08-16 16:37 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: avoid space after title
  2017-08-15 16:18 avoid space after title Henning Hraban Ramm
  2017-08-16 15:48 ` Henning Hraban Ramm
@ 2017-08-16 16:50 ` Wolfgang Schuster
  2017-08-17 13:04   ` Henning Hraban Ramm
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2017-08-16 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Play with the grid key for \setuphead.

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

Wolfgang
> Henning Hraban Ramm <mailto:texml@fiee.net>
> 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
> ___________________________________________________________________________________


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

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

___________________________________________________________________________________
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: avoid space after title
  2017-08-16 16:50 ` Wolfgang Schuster
@ 2017-08-17 13:04   ` Henning Hraban Ramm
  0 siblings, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2017-08-17 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2017-08-16 um 18:50 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:

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

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

end of thread, other threads:[~2017-08-17 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 16:18 avoid space after title Henning Hraban Ramm
2017-08-16 15:48 ` Henning Hraban Ramm
2017-08-16 16:20   ` Pablo Rodriguez
2017-08-16 16:35     ` Rik Kabel
2017-08-16 16:37   ` Peter Münster
2017-08-16 16:50 ` Wolfgang Schuster
2017-08-17 13:04   ` Henning Hraban Ramm

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