Removing vertical space before heading within framed layer
Hi everyone, slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading: --- \definelayer [text] [width=\paperwidth, height=\paperheight] \setupbackgrounds [page] [background=text] \startbuffer[test] \subject{Lorem ipsum dolor sit amet, consectetur, sadipisci\dots} \input zapf \stopbuffer \setuphead [subject] [before=, after=, align=right] \starttext \setlayerframed [text] [x=1cm, y=3cm] [width=7cm, align=normal, offset=none] {\getbuffer[test]} \page[empty] \stoptext --- How do I remove this space? Best, Oliver
Am 26.12.2009 um 20:04 schrieb Oliver Buerschaper:
Hi everyone,
slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading:
you can find in the details manual better ways to set heading texts with a layer Wolfgang
slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading:
you can find in the details manual better ways to set heading texts with a layer
Well, actually I don't want to get a fancy heading using layers but rather I'd like to use layers like DTP text frames and fill them with (unnumbered) headings, paragraphs, formulas etc. Just like small pages I can position on the parent page arbitrarily. The issue arises whenever a heading (say \subject) happens to be the first piece of material I put into a layer. Any ideas to get rid of the leading vertical space? Actually, instead of a true heading I'd probably be fine with another command that gives me consistent style, line space, alignment, leading and trailing vertical space etc. After all, I'm going to use this in a poster, so I won't need an entry in the TOC, nor any markers, anchors to the "heading" etc. Best, Oliver
Am 26.12.2009 um 22:41 schrieb Oliver Buerschaper:
slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading:
you can find in the details manual better ways to set heading texts with a layer
Well, actually I don't want to get a fancy heading using layers but rather I'd like to use layers like DTP text frames and fill them with (unnumbered) headings, paragraphs, formulas etc. Just like small pages I can position on the parent page arbitrarily.
The issue arises whenever a heading (say \subject) happens to be the first piece of material I put into a layer. Any ideas to get rid of the leading vertical space?
Actually, instead of a true heading I'd probably be fine with another command that gives me consistent style, line space, alignment, leading and trailing vertical space etc. After all, I'm going to use this in a poster, so I won't need an entry in the TOC, nor any markers, anchors to the "heading" etc.
Why not just \definedfont[TitleFont][Serif sa 3] and {\TitleFont \startbuffer[test] {\TitleFont Lorem ipsum dolor sit amet, consectetur, sadipisci\unknown\par} \input zapf \stopbuffer Wolfgang
Why not just
\definedfont[TitleFont][Serif sa 3]
and
{\TitleFont
\startbuffer[test] {\TitleFont Lorem ipsum dolor sit amet, consectetur, sadipisci\unknown\par}
\input zapf \stopbuffer
You're right, that's a good way to go! I now have: --- \definefont [TopicFont] [name:MyriadPro-Semibold*default at 48pt] --- with the little typo corrected. Many thanks! Oliver
On Sat, Dec 26, 2009 at 10:41 PM, Oliver Buerschaper
slowly getting to grips with layer etc. However, some vertical space at the top of my framed layer appears whenever the first element is a heading:
you can find in the details manual better ways to set heading texts with a layer
Well, actually I don't want to get a fancy heading using layers but rather I'd like to use layers like DTP text frames and fill them with (unnumbered) headings, paragraphs, formulas etc. Just like small pages I can position on the parent page arbitrarily.
The issue arises whenever a heading (say \subject) happens to be the first piece of material I put into a layer. Any ideas to get rid of the leading vertical space?
Actually, instead of a true heading I'd probably be fine with another command that gives me consistent style, line space, alignment, leading and trailing vertical space etc. After all, I'm going to use this in a poster, so I won't need an entry in the TOC, nor any markers, anchors to the "heading" etc.
my 1cent \definelayer [text] [width=\paperwidth, height=\paperheight] \setupbackgrounds [page] [background=text] \definehead[Subject][section] \setuphead[Subject][before=\vskip-2pt,number=no] \startbuffer[test] \Subject{Lorem ipsum dolor sit amet, consectetur, sadipisci\dots} \input zapf \stopbuffer \setuphead [subject] [before=, after=, align=right] \starttext \setlayerframed [text] [x=1cm, y=3cm] [width=7cm, align=normal, offset=overlay] {\getbuffer[test]} \page[empty] \stoptext -- luigi
participants (3)
-
luigi scarso
-
Oliver Buerschaper
-
Wolfgang Schuster