On Sat, Dec 26, 2009 at 10:41 PM, Oliver Buerschaper
<[email protected]> wrote:
>>> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________