[***SPAM***] heading in margin -> strange extra vertical spaces
![](https://secure.gravatar.com/avatar/8e959e34d3ee752e8d7453cce6f85fdd.jpg?s=120&d=mm&r=g)
Hi, I want to display the lowest heading in the outer margin. But as soon the simple text becomes a heading, a strange extra line appears on top of the margin. In my minimum example below the first paragraph shows how it should look like in the pdf-file; the second paragraph is with a heading in the margin. Can anyone tell me, a) how to get rid of the unwanted extra vertical space? b) Why is the line-break in the margin of the second paragraph different than above? Thanks, H. ------8<--------------------------------------- \definesection[section-8] \definehead[myheader][][number=no,before=,style=\bf,aligntitle=yes,section=section-8] \starttext \inouter{Hasselt makes headlines} \input tufte \inouter{\myheader{Hasselt makes headlines}} \input tufte \stoptext
![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
On 2013–05–04 Zenlima wrote:
I want to display the lowest heading in the outer margin. But as soon the simple text becomes a heading, a strange extra line appears on top of the margin.
In my minimum example below the first paragraph shows how it should look like in the pdf-file; the second paragraph is with a heading in the margin.
Can anyone tell me,
a) how to get rid of the unwanted extra vertical space?
You can use a custom headalternative setup: \definesection [section-8] \definehead [myheader] [] [alternative=myheader, section=section-8] \defineheadalternative [myheader] [alternative=horizontal, renderingsetup=setup:myheader] \startsetups [setup:myheader] \inouter{\headtextcontent} \stopsetups \starttext \inouter{Hasselt makes headlines} \input tufte \myheader{Hasselt makes headlines} \input tufte \stoptext
b) Why is the line-break in the margin of the second paragraph different than above?
The margin box itself is positioned correctly, but I have no clue where the empty line comes from. You can visualise the box with: \setupmarginframed [inouter] [frame=on] Marco
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 05.05.2013 um 00:54 schrieb Marco Patzer
On 2013–05–04 Zenlima wrote:
I want to display the lowest heading in the outer margin. But as soon the simple text becomes a heading, a strange extra line appears on top of the margin.
In my minimum example below the first paragraph shows how it should look like in the pdf-file; the second paragraph is with a heading in the margin.
Can anyone tell me,
a) how to get rid of the unwanted extra vertical space?
You can use a custom headalternative setup:
\definesection [section-8]
\definehead [myheader] [] [alternative=myheader, section=section-8]
\usemodule[subsub] \definehead [myheader] [alternative=myheader, section=section-8] Wolfgang
participants (3)
-
Marco Patzer
-
Wolfgang Schuster
-
Zenlima