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
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
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
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
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
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 ___________________________________________________________________________________
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
participants (5)
-
Henning Hraban Ramm
-
Pablo Rodriguez
-
Peter Münster
-
Rik Kabel
-
Wolfgang Schuster