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 --
Hi,
On Tue, Jan 9, 2024 at 11:30 AM G.C.H.M. Verhaag via ntg-context
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
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
Hi,
On Tue, Jan 9, 2024 at 2:45 PM 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?
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.
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
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
participants (4)
-
G.C.H.M. Verhaag
-
Henning Hraban Ramm
-
Mikael Sundqvist
-
verhaaggchm@ziggo.nl