\vskip-\baselineskip after section header in mkIV
Hello, \vskip-\baselineskip behaves strangely when put after a section header. Here is a minimal example. \setuphead[subject][after=] \starttext \subject{Header} \vskip-\baselineskip Text \stoptext One would expect to have "Header" overprinted by "Text". This is the case in mkII, but not in mkIV where we get "Header" followed by "Text" on the same line. Is this a bug or a feature? Also interesting is when you add \setuphead[subject][style=] in the preample, then the behavior is like mkII. BTW, if you wonder why I'm using this, I want to put some additional info on the right side of the title when there is room left. Otherwise it should be put just below. Thanks, Vianney
On 22-5-2010 9:53, Vianney le Clément wrote:
Hello,
\vskip-\baselineskip behaves strangely when put after a section header. Here is a minimal example.
\setuphead[subject][after=] \starttext \subject{Header} \vskip-\baselineskip Text \stoptext
One would expect to have "Header" overprinted by "Text". This is the case in mkII, but not in mkIV where we get "Header" followed by "Text" on the same line. Is this a bug or a feature? Also interesting is when you add \setuphead[subject][style=] in the preample, then the behavior is like mkII.
BTW, if you wonder why I'm using this, I want to put some additional info on the right side of the title when there is room left. Otherwise it should be put just below.
weird indeed ... \setuphead[subject][after=] \starttext \subject{Header} \vskip-\the\baselineskip \par Text \subject{Header} \vskip-\the\dimexpr\baselineskip+10sp\relax \par Text \subject{Header} \vskip-\the\dimexpr\baselineskip+1sp\relax \par Text \subject{Header} \vskip-2\baselineskip \par Text \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
On 22-5-2010 9:53, Vianney le Clément wrote:
Hello,
\vskip-\baselineskip behaves strangely when put after a section header. Here is a minimal example.
\setuphead[subject][after=] \starttext \subject{Header} \vskip-\baselineskip Text \stoptext
One would expect to have "Header" overprinted by "Text". This is the case in mkII, but not in mkIV where we get "Header" followed by "Text" on the same line. Is this a bug or a feature? Also interesting is when you add \setuphead[subject][style=] in the preample, then the behavior is like mkII.
BTW, if you wonder why I'm using this, I want to put some additional info on the right side of the title when there is room left. Otherwise it should be put just below.
weird indeed ...
This appears to be a bug in the luatex pdf backend. Best wishes, Taco
On Mon, 24 May 2010, Taco Hoekwater wrote:
Hans Hagen wrote:
On 22-5-2010 9:53, Vianney le Clément wrote:
\vskip-\baselineskip behaves strangely when put after a section header. Here is a minimal example.
\setuphead[subject][after=] \starttext \subject{Header} \vskip-\baselineskip Text \stoptext
One would expect to have "Header" overprinted by "Text". This is the case in mkII, but not in mkIV where we get "Header" followed by "Text" on the same line. Is this a bug or a feature? Also interesting is when you add \setuphead[subject][style=] in the preample, then the behavior is like mkII.
BTW, if you wonder why I'm using this, I want to put some additional info on the right side of the title when there is room left. Otherwise it should be put just below.
weird indeed ...
This appears to be a bug in the luatex pdf backend.
fixed in trunk, SVN 3699. Regards, Hartmut
participants (4)
-
Hans Hagen
-
Hartmut Henkel
-
Taco Hoekwater
-
Vianney le Clément