From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72114 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Hello world title not flush left - beginner question? Date: Thu, 3 Nov 2011 15:33:48 +0100 Message-ID: References: <20111103141534.GC1412@iram-ha-003840.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320330853 1279 80.91.229.12 (3 Nov 2011 14:34:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2011 14:34:13 +0000 (UTC) Cc: mailing list for ConTeXt users To: Alan Braslau Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 03 15:34:09 2011 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.69) (envelope-from ) id 1RLyMq-0007V4-Cd for gctc-ntg-context-518@m.gmane.org; Thu, 03 Nov 2011 15:34:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 282CBCB0B5; Thu, 3 Nov 2011 15:34:08 +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 k4bl8Y5D1qFc; Thu, 3 Nov 2011 15:34:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 988D5CB097; Thu, 3 Nov 2011 15:34:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0057FCB097 for ; Thu, 3 Nov 2011 15:34:02 +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 aoIIdgrFaPYv for ; Thu, 3 Nov 2011 15:34:00 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 0150BCA680 for ; Thu, 3 Nov 2011 15:33:59 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA3EXx3A018123 for ; Thu, 3 Nov 2011 15:33:59 +0100 Original-Received: by faaf16 with SMTP id f16so2266364faa.14 for ; Thu, 03 Nov 2011 07:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=TA0vl/QJUWdjuO1Mq6vWVFRjvTNFTRaIoPx1rhq6p94=; b=nmKpp3pLomKuSqN/BoLzFEBtTmehVuqj8u7JfamE5f29wcVx8EvUZfgYWqO/IgrT9Z Px0pZU3XxFWy7lD1Ct16RVUhj3DG6ydQ8Chl+fjyyOs2Edg//rcnQyRpdEfbauPVwLZs okT0x+YWgImMVg566hmM2DHOfx3oX0L6CBmSg= Original-Received: by 10.223.15.13 with SMTP id i13mr16480827faa.36.1320330838966; Thu, 03 Nov 2011 07:33:58 -0700 (PDT) Original-Received: from [192.168.2.35] (p5482DC55.dip.t-dialin.net. [84.130.220.85]) by mx.google.com with ESMTPS id a21sm12379245fao.18.2011.11.03.07.33.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Nov 2011 07:33:57 -0700 (PDT) In-Reply-To: <20111103141534.GC1412@iram-ha-003840.extra.cea.fr> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0cFQCxXV5 - e5a54d3f4d65 - 20111103 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:72114 Archived-At: Am 03.11.2011 um 15:15 schrieb Alan Braslau: > On Thu, Nov 03, 2011 at 02:36:06PM +0100, Wolfgang Schuster wrote: >> = >> \def\startdictum >> {\dostartbuffer[dictum][startdictum][stopdictum]} >> = >> \setuphead >> [title] >> [insidesection=3D\texsetup{dictum}] >> = >> \startsetups dictum >> = >> \doifelsebuffer{dictum} >> {\startframedtext[right][frame=3Doff,offset=3Dnone,width=3D.5\ >> textwidth,foregroundstyle=3D\itx] >> \getbuffer [dictum] >> \resetbuffer[dictum] >> \stopframedtext} >> {\donothing} >> = >> \stopsetups >> = >> \starttext >> = >> \startdictum >> \input ward >> \stopdictum >> = >> \starttitle[title=3DThis is a heading with a epgigraph below] >> = >> \input knuth >> = >> \stoptitle >> = >> \stoptext > = > Wolfgang, > = > Looking at your message above, > I do not really understand why it is best to set a buffer > for a one-time use: to be typeset after the title and then reset. This was just a example to demonstrate the =93insidesection=94 key to add something after the heading. When you want to use it only one time the above is overkill but it=92s useful when you want a epigraph for each chapter. With \doifelsebuffer I can check if there the user set a epigraph and only when there is one i want the framedtext but I have to reset the buffer for the next chapter. > Would it not be better (or more logical, in fact) to simply use: > = > \setupframedtext [frame=3Doff,offset=3Dnone,width=3D.5\textwidth, > foregroundstyle=3D\itx] > % I did not check, but I imagine that this works... > = > \starttitle [title=3DThis is a heading with an epigraph below] > = > \startframedtext [right] > \input ward > \stopframedtext > = > = > Of course, one could (and probably should) define a special sort > of framed text? > I don't remember the proper syntax for this, though. How is a framedtext more logical than a dictum or epigraph environment, with my solution you can also change the definition of the code to place the epigraph format without any change in the text while your framed text is always a framedtext (I know you can avoid this with a named framedtext) and changes to the layout require more work. > I am interested, as in one of my documents, I do something like this > (without any special typesetting, for the moment) stupidly as: > = > \def\sectionbis#1{{\it #1}\blank} > = > \startsection [title=3DSection title] > = > \sectionbis{\input ward} > = > \input tufte \definestartstop[sectionbis][style=3Ditalic,inbetween=3D\blank] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________