From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55358 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Removing vertical space before heading within framed layer Date: Sat, 26 Dec 2009 23:18:06 +0100 Message-ID: References: <1D2EC0AE-36A3-4560-9098-5A2FBE2D8756@googlemail.com> <23ACFA1B-F8AE-4846-B418-B43B26217BD2@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1261865927 30746 80.91.229.12 (26 Dec 2009 22:18:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Dec 2009 22:18:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 26 23:18:40 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NOey8-0005D0-Ac for gctc-ntg-context-518@m.gmane.org; Sat, 26 Dec 2009 23:18:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8849DC9CAC; Sat, 26 Dec 2009 23:18:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yQI+ULEVxyD8; Sat, 26 Dec 2009 23:18:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F3FEC9BA5; Sat, 26 Dec 2009 23:18:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5ADC4C9BA5 for ; Sat, 26 Dec 2009 23:18:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WsdkXm0ekHFt for ; Sat, 26 Dec 2009 23:18:08 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 7C55DC9AC1 for ; Sat, 26 Dec 2009 23:18:07 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so6043839bwz.34 for ; Sat, 26 Dec 2009 14:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=UMVyYm6dT2C27uD8Iaw1G//mG2DVc0rRV7SxLe+hoeg=; b=AlCgbzFvdHqfv3BJ1I8GzdYs3eGlXTRd2ja5t5V3NBXNdP6z8ebVeSEjtaKWF6YV0h eUyGcCcvdRUzGvZQE6E/DBlmUj39s4ggDRIlGMLkqUwAtRpLHJZvK5jZJ5CXKTLJ6hvO PmzhG9zLWbEj39YLDDFqosvcKLvxDncNsC49o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=JcJ5rDJVfCUSTGSAStBhiGOXHNNOtbPQSCMrJ+rXPKkZAGwgSphJo1Ihr1AfEagniD x5gPaLYVuZ+tOTQjTU5STZBpmOoPH0N31yyklEApzHwUYqPFpVFlKHn+eu3IX/hk9EJH y0Oz1bIOMN5zpcaGJ4mNbDyIvrfYzo1dulwaM= Original-Received: by 10.204.154.207 with SMTP id p15mr4362848bkw.202.1261865886712; Sat, 26 Dec 2009 14:18:06 -0800 (PST) In-Reply-To: <23ACFA1B-F8AE-4846-B418-B43B26217BD2@mpq.mpg.de> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55358 Archived-At: On Sat, Dec 26, 2009 at 10:41 PM, Oliver Buerschaper 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 ___________________________________________________________________________________