ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Removing vertical space before heading within framed layer
Date: Sat, 26 Dec 2009 23:18:06 +0100	[thread overview]
Message-ID: <fe8d59da0912261418k70952f2cg831e689c69544896@mail.gmail.com> (raw)
In-Reply-To: <23ACFA1B-F8AE-4846-B418-B43B26217BD2@mpq.mpg.de>

On Sat, Dec 26, 2009 at 10:41 PM, Oliver Buerschaper
<oliver.buerschaper@mpq.mpg.de> 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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________


      parent reply	other threads:[~2009-12-26 22:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26 19:04 Oliver Buerschaper
2009-12-26 19:18 ` Wolfgang Schuster
2009-12-26 21:41   ` Oliver Buerschaper
2009-12-26 21:52     ` Wolfgang Schuster
2009-12-29 17:35       ` Oliver Buerschaper
2009-12-26 22:18     ` luigi scarso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe8d59da0912261418k70952f2cg831e689c69544896@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).