From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49267 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Paragraphs in Layers Date: Thu, 9 Apr 2009 22:27:27 +0200 Message-ID: <59344B1B-B15A-429A-93A5-F646DD2EECA8@gmail.com> References: <6e2989c20904091240i4f2b1573q76a2a72d0c53cb45@mail.gmail.com> <101EA219-EFCC-4000-AA0F-8158840B51AE@gmail.com> <6e2989c20904091314p427a8cc7v4217f06fabba4d89@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239308939 24273 80.91.229.12 (9 Apr 2009 20:28:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2009 20:28:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 09 22:30:17 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Ls0t6-0002I2-NO for gctc-ntg-context-518@m.gmane.org; Thu, 09 Apr 2009 22:30:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 732071FB89; Thu, 9 Apr 2009 22:28:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32026-01; Thu, 9 Apr 2009 22:28:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7AE661FB57; Thu, 9 Apr 2009 22:28:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 45C041FB57 for ; Thu, 9 Apr 2009 22:28:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31991-01 for ; Thu, 9 Apr 2009 22:28:06 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 701351FB1D for ; Thu, 9 Apr 2009 22:28:06 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n39KS5jD010338 for ; Thu, 9 Apr 2009 22:28:05 +0200 Original-Received: by fg-out-1718.google.com with SMTP id e21so298353fga.8 for ; Thu, 09 Apr 2009 13:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=pUaw5+E2lLqXjo6IGcj1iNGom2VV4T9+2vV4b4rmtZ8=; b=Pac+sr/Perfnr3NfXs6gyT72TW8iFkqhJsmB+0v72kaagG2h3t8idppr1UWfdEtXy8 QQKkHuOrmHCc8DLr6oD8mLNlZTGHWVyJ4s/27jWB+Bln8JVdx/04tx7RjpnwRZeumkNt 1eftuMx9VXezBOMztNK2tnKMuUnfJUTv8Artg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=CkxoTKwkvzBO+3cafcl7S4fu9fi8PLEV0QDeyQxYD9LJv16Ph7fn2JpSeJctY/3Qt/ ePQXgAnL6lGzN43mjck9pn6OCXZiMIvuYfy8GC53E21Yt+d6MwqN9FU8mk7qER42YBy6 XdlhR8+s/FJ31DGSbXPyBP1QqmQPCMk79yQog= Original-Received: by 10.86.95.20 with SMTP id s20mr2101902fgb.40.1239308884987; Thu, 09 Apr 2009 13:28:04 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B296D28.dip.t-dialin.net [91.41.109.40]) by mx.google.com with ESMTPS id e11sm715949fga.15.2009.04.09.13.28.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 09 Apr 2009 13:28:04 -0700 (PDT) In-Reply-To: <6e2989c20904091314p427a8cc7v4217f06fabba4d89@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.154; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 206753505 - 5d126bff4be3 - 20090409 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49267 Archived-At: Am 09.04.2009 um 22:14 schrieb Design Department: > Just tried the following snippet on the live.contextgarden.net with > no joy: > The layer content appears on a single line, whether I use \par, \\, > \endgraf, \crlf or no line ending at all. To help you I will explain why your setup did not work. TeX use boxes to place text, two different types are available and they are horizontal (\hbox) and vertical (\vbox) boxes. Text in a horizontal box is placed in a single line and \par \vskip ... is ignored, if your text is too long it runs over the right margin, only text in a vertical box is placed in multiple lines. The pure \setlayer command use a horizontal box for the content and did therefore not work for you, \setlayerframed is (simplified) a combination of \setlayer and \frame, the definition looks like \setlayer[name][setup]{\framed{text}}. The \framed command itself can act as horizontal or vertical box dependent on the setup, by default it acts like a horizontal box, to let it act as vertical box two setup need to be done (1) the alignment (format) of the text needs to be set with 'align=left|normal|...' and (2) it needs either a width or a height with is done with 'width=...' or 'height=...' or 'lines=...'. Your layer command should now look like: \setlayerframed [TicketSummary] [hoffset=.5\backspace, voffset=2.5in, width=3cm, align=right] {\bold{Client Name:}\\ Acme Corporation\\ \bold{Location of Work:} Main warehouse} Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________